MatOCAD Logo

Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

PnlFoglio.h

Go to the documentation of this file.
00001 
00002 
00003 #ifndef __PnlFoglio_
00004 #define __PnlFoglio_
00005 
00006 
00007 
00008 #include "../Grafico2D/PnlGraphFrame.h"
00009 
00010 #include "../TxtFunzione/PnlFunzione.h"
00011 #include "../FunctionGrid/FunctionGrid.h"
00012 #include "../Grafico3d/Graph3DFrame.h"
00013 #include "../wxIFM/manager.h"
00014 
00015 
00016 
00018 
00020 class PnlFoglio : public  wxResizeableControlCanvas
00021 {
00022 private:
00023     DECLARE_CLASS(PnlFoglio)
00024     DECLARE_EVENT_TABLE()
00025 
00026     
00027     int ident;
00028 
00030     wxPen penna;
00031 
00033     wxClientDC* foglio;
00034 
00036     wxPoint posizionevirtuale;
00037 
00039     wxPoint posizionereale;
00040 
00042     wxPoint posizionescroll;
00043 
00045     void DisegnaCrocetta();
00046 
00048     void CancellaCrocetta();
00049 
00051     bool DISEGNA; //Flag utilizzato per bloccare l'esecuzione automatica dell'evento paint in determinati casi
00052 
00054     void OnRightDown(wxMouseEvent& event);
00055 
00057     void OnLeftDown(wxMouseEvent& event);
00058 
00060     void PnlMove(wxMouseEvent& event);
00061 
00063     void PnlFoglioPaint(wxPaintEvent& event);
00064 
00066     void RimuoviSelezione();
00067 
00069     wxTreeItemId TreeId;
00070 
00072     wxMenu *PopFoglio; //menĂ¹ a comparsa
00073 
00074 public:
00075 
00077     PnlFoglio(wxWindow* parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL
00078               , const wxString& name = "panel");
00079 
00081     ~PnlFoglio();
00082 
00084 
00087     void MnuAggiungiGrafico2DClick(wxCommandEvent& event);
00088 
00090 
00093     void MnuAggiungiGrafico3DClick(wxCommandEvent& event);
00094 
00096 
00099     void MnuAggiungiEtichettaClick(wxCommandEvent& event);
00100 
00102     void OnChar(wxKeyEvent& event);
00103 
00105 
00108     wxMenu* GetPopUp();
00109 
00111     void OnGraphInfo(GraphInfoEvent& event);
00112 
00114     gestione* gestionepannello;
00115 
00117     void Elimina();
00118 
00120 
00123     wxTreeItemId GetTreeItemId();
00124 
00126 
00129     void SetTreeItemId(wxTreeItemId Id);
00130 
00131 
00132 
00133 
00134 
00135 
00136 };
00137 #endif

 

SourceForge Logo