00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef __PnlGraphFrame_
00017
00018 #define __PnlGraphFrame_
00019
00020 #define deltax_2D 60
00021 #define deltay_2D 20
00022
00023 #include "../BasePanel/TBasePanel.h"
00024 #include "../TxtValore/TxtValue.h"
00025 #include "PnlGraph.h"
00026
00027
00028
00030
00034 class PnlGraphFrame : public TBasePanel
00035 {
00036 private:
00037
00038 DECLARE_CLASS(PnlGraphFrame)
00039 DECLARE_EVENT_TABLE()
00040
00041
00042 TxtValue *TxtYMax, *TxtYMin, *TxtXMax, *TxtXMin;
00043
00044
00045 public:
00047 PnlGraph* Grafico;
00048
00050 void OnSize(wxSizeEvent& event);
00051
00053 PnlGraphFrame(wxWindow* parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL, const wxString& name = _T("panel"),gestione* gpannello=-1);
00054
00056
00059 int GetMinWidth();
00060
00062
00065 int GetMinHeight();
00066
00068
00071 void WxdeleteClick(wxCommandEvent& event);
00072
00074 void PointerMoved(wxMouseEvent& event);
00075
00077 void OnGraphLClick(wxMouseEvent& event,int i);
00078
00080 void OnGraphRClick(wxMouseEvent& event);
00081
00083 void CheckOptions();
00084
00086 void PnlGraphFrame::TxtValueChanged(ValueChangedEvent& event);
00087 };
00088
00089
00090
00091 class GraphInfoEvent: public wxEvent
00092 {
00093 public:
00094 GraphInfoEvent( wxEventType commandType = wxEVT_NULL);
00095 GraphInfoEvent *Clone() const { return new GraphInfoEvent(*this); }
00096
00097 char* GetObjectName()
00098 { return strobject; }
00099
00100 char* GetPosX()
00101 { return strposx; }
00102 char* GetPosY()
00103 { return strposy; }
00104
00105 char strobject[20];
00106 char strposx[20];
00107 char strposy[20];
00108 private:
00109
00110 };
00111
00112
00113
00114
00115
00116 typedef void (wxEvtHandler::*GraphInfoFunction)(GraphInfoEvent&);
00118
00121 DECLARE_EVENT_TYPE(EVT_GRAPH_INFO,-1)
00122
00123
00124
00125 #define EVT_GRAPH_INFO(fn) \
00126 DECLARE_EVENT_TABLE_ENTRY( EVT_GRAPH_INFO, -1, -1, \
00127 (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) \
00128 wxStaticCastEvent(GraphInfoFunction, & fn ), (wxObject *) NULL ),
00129
00130
00131 #endif
00132
00133
00134
00135
00136
00137
00138
00139