8 #ifndef __ScenarioSelectDialog_H__
9 #define __ScenarioSelectDialog_H__
12 #include "vtlib/vtlib.h"
13 #include "vtlib/core/Terrain.h"
29 m_pScenarios = Rhs.m_pScenarios;
32 virtual bool Validate(wxWindow *pParent) {
return true; }
33 virtual bool TransferToWindow();
34 virtual bool TransferFromWindow();
37 std::vector<ScenarioParams> *m_pScenarios;
49 const wxPoint& pos = wxDefaultPosition,
50 const wxSize& size = wxDefaultSize,
51 long style = wxDEFAULT_DIALOG_STYLE );
54 virtual bool TransferDataToWindow();
55 void ActivateCurrent();
58 wxButton* GetApply() {
return (wxButton*) FindWindow( wxID_APPLY ); }
59 wxButton* GetScenarioNext() {
return (wxButton*) FindWindow( ID_SCENARIO_NEXT ); }
60 wxButton* GetScenarioPrevious() {
return (wxButton*) FindWindow( ID_SCENARIO_PREVIOUS ); }
61 wxButton* GetMovedownScenario() {
return (wxButton*) FindWindow( ID_MOVEDOWN_SCENARIO ); }
62 wxButton* GetMoveupScenario() {
return (wxButton*) FindWindow( ID_MOVEUP_SCENARIO ); }
63 wxButton* GetEditScenario() {
return (wxButton*) FindWindow( ID_EDIT_SCENARIO ); }
64 wxButton* GetDeleteScenario() {
return (wxButton*) FindWindow( ID_DELETE_SCENARIO ); }
65 wxButton* GetNewScenario() {
return (wxButton*) FindWindow( ID_NEW_SCENARIO ); }
66 wxListBox* GetScenarioList() {
return (wxListBox*) FindWindow( ID_SCENARIO_LIST ); }
73 void OnScenarioNext( wxCommandEvent &
event );
74 void OnScenarioPrevious( wxCommandEvent &event );
75 void OnMoveDownScenario( wxCommandEvent &event );
76 void OnMoveUpScenario( wxCommandEvent &event );
77 void OnEditScenario( wxCommandEvent &event );
78 void OnDeleteScenario( wxCommandEvent &event );
79 void OnNewScenario( wxCommandEvent &event );
80 void OnScenarioList( wxCommandEvent &event );
81 void OnApply(wxCommandEvent& event);
82 void OnOK(wxCommandEvent& event);
83 void OnCancel(wxCommandEvent& event);
90 void UpdateEnableState();
92 std::vector<ScenarioParams> m_Scenarios;