RangeControl.h

00001 
00008 #ifndef _RangeControl_h
00009 #define _RangeControl_h
00010 
00011 // SYSTEM INCLUDES
00012 //
00013 
00014 // PROJECT INCLUDES
00015 //
00016 
00017 // LOCAL INCLUDES
00018 //
00019 #include "../VariableNames.h"
00020 
00021 // FORWARD REFERENCES
00022 //
00023 
00024 
00025 class RangeControl
00026     : public wxPanel
00027 {
00028 public:
00029 // LIFECYCLE
00030 
00033     RangeControl(wxWindow*          pParent,
00034                  wxWindowID         id = -1,
00035                  const wxPoint&     pos = wxDefaultPosition,
00036                  const wxSize&      size = wxDefaultSize,
00037                  long               style = 0,
00038                  const wxString&    name = wxT("Point Control"));
00039 
00042     ~RangeControl(void);
00043 
00044 
00045 // OPERATORS
00046 
00047 // OPERATIONS
00048 
00059     void            Init(const VariableNames&   variables,
00060                          ColumnVector&          rMinBounds,
00061                          ColumnVector&          rMaxBounds,
00062                          double                 initialMinValue = -10.0,
00063                          double                 initialMaxValue = 10.0);
00064 
00065 // ACCESS
00066 
00069     void            SetCaption(const wxString& caption);
00070 
00071 // INQUIRY
00072 
00073 protected:
00074 
00077     void            AddRow(const wxString&  label,
00078                                  double&    rMinBound,
00079                                  double&    rMaxBound);
00080 
00083     void            Clear();
00084 
00085 
00086 private:
00087 
00088     wxScrolledWindow*   mpScrolledPanel;
00089     wxStaticBoxSizer*   mpMainSizer;
00090     wxFlexGridSizer*    mpGridSizer;
00091 
00092     const static int mMinHeight;    
00093 };
00094 
00095 // INLINE METHODS
00096 //
00097 
00098 // EXTERNAL REFERENCES
00099 //
00100 
00101 #endif  // _RangeControl_h

Wygenerowano Fri Sep 29 21:04:49 2006 dla EduOptim2 programem  doxygen 1.4.6