00001
00009 #ifndef _ProblemDialog_h
00010 #define _ProblemDialog_h
00011
00012
00013
00014
00015
00016
00017 #include <wx/dialog.h>
00018
00019
00020
00021 #include "../ProblemBase.h"
00022
00023 #include "ProblemChoice.h"
00024
00025
00026
00027
00028
00029 class ProblemDialog
00030 : public wxDialog
00031 {
00032 public:
00033
00034 enum {
00035 ID_PROBLEMCHOICE = 1
00036 };
00037
00038
00039
00042
00043
00056 ProblemDialog(wxWindow* pParent,
00057 wxWindowID id,
00058 ProblemBase*& rpProblem,
00059 bool exitOnCancel);
00060
00061
00064 ~ProblemDialog(void);
00065
00066
00067
00068
00069
00070
00071
00072
00077 void OnProblemChoice(wxCommandEvent& event);
00078
00081 void OnOk(wxCommandEvent& event);
00082
00085 void OnExit(wxCommandEvent& event);
00086
00089 void OnClose(wxCloseEvent& event);
00090
00091
00092
00093
00094 protected:
00095 private:
00097 ProblemBase*& mrpProblem;
00098
00102 ProblemBase* mpTempProblem;
00103
00104
00105 wxButton* mpOkButton;
00106 wxButton* mpCancelButton;
00107 wxStaticBox* mpProblemStaticBox;
00108 ProblemChoice* mpProblemChoice;
00109 wxPanel* mpProblemPanel;
00110 wxSizer* mpSizer;
00111
00112 bool mExitOnClose;
00113
00114 DECLARE_EVENT_TABLE()
00115 };
00116
00117
00118
00119
00120
00121
00122
00123 #endif // _ProblemDialog_h