GUI::NewSimulationDialog Class Reference

Dialog that will be shown int OnNewSimulation handler. More...

#include <NewSimulationDialog.h>

List of all members.

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)


Detailed Description

Dialog that will be shown int OnNewSimulation handler.

Allows user to set new simulation properties.


Constructor & Destructor Documentation

GUI::NewSimulationDialog::NewSimulationDialog ( wxWindow *  parent  ) 

Constructor.

Parameters:
parent Parent window

GUI::NewSimulationDialog::~NewSimulationDialog (  )  [virtual]

Destructor.


Member Function Documentation

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  ) 


Member Data Documentation

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.


The documentation for this class was generated from the following files:
Generated on Sun Apr 29 11:46:11 2007 for IPP/ICP2007 by  doxygen 1.4.7