#include <NewSimulationDialog.h>
Public Member Functions | |
| void | OnOkButton (wxCommandEvent &event) |
| void | OnCancelButton (wxCommandEvent &event) |
| NewSimulationDialog (wxWindow *parent) | |
| Constructor. | |
| virtual | ~NewSimulationDialog () |
| Destructor. | |
| string | GetSimulationName () const |
| Returns simulation name. | |
| Matrix::SizeType | GetSceneWidth () const |
| Returns scene width. | |
| Matrix::SizeType | GetSceneHeight () const |
| Returns scene height. | |
Private Member Functions | |
| void | CreateBasicForm () |
| Creates basic dialog form (e.g. simulation name). | |
| void | CreateSceneSpins () |
| Creates scene width/height spins. | |
| void | CreateButtons () |
| Creates buttons. | |
Private Attributes | |
| wxBoxSizer * | sizerTop |
| Top (main) sizer. | |
| wxGridSizer * | gridSizer |
| Grid sizer (for indention). | |
| wxTextCtrl * | simulationName |
| Simulation name. | |
| wxSpinCtrl * | sceneWidth |
| Scene width. | |
| wxSpinCtrl * | sceneHeight |
| Scene height. | |
Static Private Attributes | |
| static const int | GRIDER_BASIC_FORM_COLS = 2 |
| static const int | MAIN_SIZER_BORDER_SIZE = 5 |
| static const wxSize | FORM_TEXT_BOX_SIZE = wxSize(120, 25) |
Allows user to set new simulation properties.
| GUI::NewSimulationDialog::NewSimulationDialog | ( | wxWindow * | parent | ) |
Constructor.
| parent | Parent window |
| GUI::NewSimulationDialog::~NewSimulationDialog | ( | ) | [virtual] |
Destructor.
| void GUI::NewSimulationDialog::CreateBasicForm | ( | ) | [private] |
Creates basic dialog form (e.g. simulation name).
| void GUI::NewSimulationDialog::CreateButtons | ( | ) | [private] |
Creates buttons.
| void GUI::NewSimulationDialog::CreateSceneSpins | ( | ) | [private] |
Creates scene width/height spins.
| Matrix::SizeType GUI::NewSimulationDialog::GetSceneHeight | ( | ) | const [inline] |
Returns scene height.
| Matrix::SizeType GUI::NewSimulationDialog::GetSceneWidth | ( | ) | const [inline] |
Returns scene width.
| string GUI::NewSimulationDialog::GetSimulationName | ( | ) | const [inline] |
Returns simulation name.
| void GUI::NewSimulationDialog::OnCancelButton | ( | wxCommandEvent & | event | ) |
| void GUI::NewSimulationDialog::OnOkButton | ( | wxCommandEvent & | event | ) |
const wxSize GUI::NewSimulationDialog::FORM_TEXT_BOX_SIZE = wxSize(120, 25) [static, private] |
const int GUI::NewSimulationDialog::GRIDER_BASIC_FORM_COLS = 2 [static, private] |
wxGridSizer* GUI::NewSimulationDialog::gridSizer [private] |
Grid sizer (for indention).
const int GUI::NewSimulationDialog::MAIN_SIZER_BORDER_SIZE = 5 [static, private] |
wxSpinCtrl* GUI::NewSimulationDialog::sceneHeight [private] |
Scene height.
wxSpinCtrl* GUI::NewSimulationDialog::sceneWidth [private] |
Scene width.
wxTextCtrl* GUI::NewSimulationDialog::simulationName [private] |
Simulation name.
wxBoxSizer* GUI::NewSimulationDialog::sizerTop [private] |
Top (main) sizer.
1.4.7