00001
00002
00003 #include <wx/wx.h>
00004 #include <wx/image.h>
00005
00006 #include "../Constraint.h"
00007 #include "../CountedPtr.h"
00008 #include "../History.h"
00009 #include "../Parser.h"
00010 #include "../VariableNames.h"
00011
00012 #ifndef CONSTRAINTDIALOG_H
00013 #define CONSTRAINTDIALOG_H
00014
00015
00016
00017
00018
00019 class ConstraintDialog: public wxDialog {
00020 public:
00021
00022
00023
00024 ConstraintDialog(
00025 wxWindow* parent,
00026 int id,
00027 Constraint& rConstraint,
00028 const VariableNames& variables,
00029 const ProblemBase* pProblem,
00030 CountedPtr<const Parser> cpParser,
00031 History& rHistory,
00032 const wxString& title = wxT(""),
00033 const wxPoint& pos=wxDefaultPosition,
00034 const wxSize& size=wxDefaultSize,
00035 long style=wxDEFAULT_DIALOG_STYLE);
00036
00037 void OnOk(wxCommandEvent& event);
00038
00039 private:
00040
00041 void set_properties();
00042 void do_layout();
00043
00044
00045 Constraint& mrConstraint;
00046
00047
00048 CountedPtr<const VariableNames> mcpVariables;
00049
00050 DECLARE_EVENT_TABLE()
00051 protected:
00052
00053 wxComboBox* mpFunctionCombo;
00054 wxChoice* mpTypeChoice;
00055 wxButton* mpOkButton;
00056 wxButton* mpCancelButton;
00057
00058 };
00059
00060
00061 #endif // CONSTRAINTDIALOG_H