00001
00002
00003 #include <wx/wx.h>
00004 #include <wx/image.h>
00005 #include <wx/valgen.h>
00006
00007 #include "../methods/AlphaDivision.h"
00008
00009 #include "InitialSectionControl.h"
00010 #include "MethodPanelInfo.h"
00011
00012 #ifndef ALPHADIVISIONPANEL_H
00013 #define ALPHADIVISIONPANEL_H
00014
00015 #define ID_CHECKBOX_GOLDENSECTION 1
00016 #define ID_TEXT_ALPHA 2
00017
00018
00019
00020
00021 class AlphaDivisionPanel: public wxPanel {
00022 public:
00023
00024
00025
00026 AlphaDivisionPanel(wxWindow* parent,
00027 int id,
00028 AlphaDivision* pMethod,
00029 bool standalone,
00030 const wxPoint& pos=wxDefaultPosition,
00031 const wxSize& size=wxDefaultSize,
00032 long style=0);
00033
00034 void OnGoldenSectionChecked(wxCommandEvent& event);
00035
00040 static wxPanel* CreatePanel(MethodPanelInfo panelInfo);
00041
00042 private:
00043
00044 void set_properties();
00045 void do_layout();
00046
00047
00048 static const void* mpRegistrationDummy;
00049
00050 protected:
00051
00052 wxStaticText* mpAlphaLabel;
00053 wxTextCtrl* mpAlphaTextCtrl;
00054 wxCheckBox* mpGoldenSectionCheckBox;
00055 wxStaticText* mpEpsilonLabel;
00056 wxTextCtrl* mpEpsilonTextCtrl;
00057
00058 DoubleParameter mLeftBound;
00059 DoubleParameter mRightBound;
00060
00061 InitialSectionControl* mpInitialSectionControl;
00062
00063 DECLARE_EVENT_TABLE();
00064 };
00065
00066
00067 #endif // ALPHADIVISIONPANEL_H