00001
00007 #ifndef _PointControl_h
00008 #define _PointControl_h
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "../VariableNames.h"
00019
00020
00021
00022
00023
00024 class PointControl
00025 : public wxPanel
00026 {
00027 public:
00028
00029
00032 PointControl(wxWindow* pParent,
00033 wxWindowID id = -1,
00034 const wxPoint& pos = wxDefaultPosition,
00035 const wxSize& size = wxDefaultSize,
00036 long style = 0,
00037 const wxString& name = wxT("Point Control"));
00038
00041 ~PointControl(void);
00042
00043
00044
00045
00046
00047
00059 void Init(const VariableNames& variables,
00060 ColumnVector& rValues,
00061 double initialValue=0);
00062
00063
00066 void SetCaption(const wxString& caption);
00067
00068
00069
00070 protected:
00071
00074 void AddRow(const wxString& label, double& rValue);
00075
00078 void Clear();
00079
00080
00081 private:
00082 wxScrolledWindow* mpScrolledPanel;
00083 wxStaticBoxSizer* mpMainSizer;
00084 wxFlexGridSizer* mpGridSizer;
00085
00086 const static int mMinHeight;
00087 };
00088
00089
00090
00091
00092
00093
00094
00095 #endif // _PointControl_h