00001
00007 #ifndef _StopConditionControl_h
00008 #define _StopConditionControl_h
00009
00010 #define ID_CHOICE_STOPCONDITION 1
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include "../StopConditionBase.h"
00020
00021 #include "ObjectChoice.h"
00022
00023
00024
00025
00026
00027 class StopConditionControl
00028 : public wxPanel
00029 {
00030 public:
00031
00032
00035 StopConditionControl(wxWindow* pParent,
00036 wxWindowID id,
00037 const wxPoint& pos = wxDefaultPosition,
00038 const wxSize& size = wxDefaultSize,
00039 long style = 0);
00040
00043 ~StopConditionControl(void);
00044
00045
00046
00047
00048
00049
00052 void Insert(CountedPtr<StopConditionBase> cpCondition);
00053
00056 void SetList(StopConditions conditions);
00057
00063 std::auto_ptr<StopConditionBase> CreateSelected();
00064
00070 int SelectName(const wxString& name);
00071
00072 void OnConditionSelected(wxCommandEvent& event);
00073
00074
00075
00078 DoubleParameter& rEpsilon();
00079
00080
00081
00082 protected:
00083 private:
00084 DoubleParameter mEpsilon;
00085 ObjectChoice<StopConditionBase>* mpConditionChoice;
00086 wxTextCtrl* mpEpsilonControl;
00087
00088 DECLARE_EVENT_TABLE();
00089 };
00090
00091
00092
00093
00094
00095
00096
00097 #endif // _StopConditionControl_h