00001
00007 #ifndef _LineSearchControl_h
00008 #define _LineSearchControl_h
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "../LineSearch.h"
00019
00020 #include "AutoChoice.h"
00021
00022
00023
00024
00025
00026 class LineSearchControl
00027 : public wxPanel
00028 {
00029 public:
00030 enum {
00031 ID_SETTINGS_BUTTON = 1
00032 };
00033
00034
00035
00038 LineSearchControl(wxWindow* pParent,
00039 wxWindowID id,
00040 const ProblemBase& problem,
00041 const wxPoint& pos = wxDefaultPosition,
00042 const wxSize& size = wxDefaultSize,
00043 long style = 0);
00044
00047 ~LineSearchControl(void);
00048
00049
00050
00051
00052
00053
00056 std::auto_ptr<const LineSearch> CreateSelected() const;
00057
00060 void SelectName(const wxString& name);
00061
00064 void Reset(const ProblemBase* pProblem);
00065
00066
00071 void OnSettings(wxCommandEvent& event);
00072
00073
00074
00075
00076 protected:
00077 private:
00078 AutoChoice<LineSearch>* mpLineSearchChoice;
00079 wxButton* mpSettingsButton;
00080
00081 DECLARE_EVENT_TABLE()
00082 };
00083
00084
00085
00086
00087
00088
00089
00090 #endif // _LineSearchControl_h