00001
00002
00003 #include <wx/wx.h>
00004 #include <wx/image.h>
00005
00006 #ifndef UNCONSTRAINEDPROBLEMPANEL_H
00007 #define UNCONSTRAINEDPROBLEMPANEL_H
00008
00009
00010
00011
00012 #include <memory>
00013 #include "../FunctionBase.h"
00014 #include "../UnconstrainedProblem.h"
00015 #include "../VariableNames.h"
00016
00017 class UnconstrainedProblemPanel: public wxPanel {
00018 public:
00019 enum {
00020 ID_COMBO_FUNCTION = 1
00021 };
00022
00023
00024
00025
00026 UnconstrainedProblemPanel(
00027 wxWindow* parent,
00028 int id,
00029 UnconstrainedProblem* pProblem,
00030 const wxPoint& pos=wxDefaultPosition,
00031 const wxSize& size=wxDefaultSize,
00032 long style=0);
00033
00034 void ValidateFunction(wxCommandEvent& event);
00035
00036 private:
00037
00038 void set_properties();
00039 void do_layout();
00040
00041
00044 static wxPanel* CreatePanel(ProblemBase* pProblem, wxWindow* pParent);
00045
00046 static const void* mpRegistrationDummy;
00047
00048 protected:
00049
00050 wxStaticBox* p_function_sizer_staticbox;
00051 wxComboBox* mpFunctionCombo;
00052
00053
00054 DECLARE_EVENT_TABLE();
00055 };
00056
00057
00058 #endif // UNCONSTRAINEDPROBLEMPANEL_H