#include <EditationWindowObject.h>
Inheritance diagram for GUI::EditationWindowObject:
Public Member Functions | |
virtual void | OnMenuFileSave (wxCommandEvent &event) |
virtual void | OnMenuFileExit (wxCommandEvent &event) |
virtual void | OnOkButton (wxCommandEvent &event) |
EditationWindowObject (wxWindow *parent, Object::Config &editedConfig, const string &windowTitle="Editation window") | |
Constructor. | |
virtual | ~EditationWindowObject () |
Destructor. | |
Protected Types | |
ID_MenuFileSave = wxID_SAVE | |
ID_MenuFileExit = wxID_EXIT | |
ID_ObjectName = 15000 | |
ID_ObjectNameText | |
ID_ObjectDescription | |
ID_ObjectDescriptionText | |
ID_ObjectImage | |
ID_ObjectImageText | |
enum | { ID_MenuFileSave = wxID_SAVE, ID_MenuFileExit = wxID_EXIT, ID_ObjectName = 15000, ID_ObjectNameText, ID_ObjectDescription, ID_ObjectDescriptionText, ID_ObjectImage, ID_ObjectImageText } |
Event ID's. More... | |
Protected Member Functions | |
virtual void | CreateMenu () |
Creates menu. | |
virtual void | CreateBasicForm () |
Creates basic form (object name, description and image file). | |
virtual void | CreateDirectionRadios () |
Creates direction radios. | |
virtual bool | SaveConfig () |
Saves edited info into config. | |
string | GetObjectName () const |
Returns object name (saveable format). | |
string | GetObjectDescription () const |
Returns object description (saveable format). | |
string | GetObjectImageFile () const |
Returns object image file (saveable format). | |
int | GetObjectDirection () const |
Returns object direction (saveable format). | |
wxMenuBar * | GetMenubar () |
Returns pointer to the menubar. | |
string | ObjectName2FileName (const string &objectName) const |
Returns transformed object name so it can be used as filename. | |
Private Attributes | |
Object::Config & | config |
Config that will be edited. | |
wxMenuBar * | menuBar |
Menubar. | |
wxTextCtrl * | textName |
Object name. | |
wxTextCtrl * | textDescription |
Object description. | |
wxTextCtrl * | textImageFile |
Object image file. | |
wxRadioBox * | directionRadio |
Direction radio. |
anonymous enum [protected] |
GUI::EditationWindowObject::EditationWindowObject | ( | wxWindow * | parent, | |
Object::Config & | editedConfig, | |||
const string & | windowTitle = "Editation window" | |||
) |
Constructor.
parent | Parent window | |
editedConfig | Config that wil be edited | |
windowTitle | Title of the window |
GUI::EditationWindowObject::~EditationWindowObject | ( | ) | [virtual] |
Destructor.
void GUI::EditationWindowObject::CreateBasicForm | ( | ) | [protected, virtual] |
Creates basic form (object name, description and image file).
Implements GUI::EditationWindowBase.
Reimplemented in GUI::EditationWindowObjectAgent.
void GUI::EditationWindowObject::CreateDirectionRadios | ( | ) | [protected, virtual] |
Creates direction radios.
void GUI::EditationWindowObject::CreateMenu | ( | ) | [protected, virtual] |
Creates menu.
wxMenuBar* GUI::EditationWindowObject::GetMenubar | ( | ) | [inline, protected] |
Returns pointer to the menubar.
string GUI::EditationWindowObject::GetObjectDescription | ( | ) | const [inline, protected] |
Returns object description (saveable format).
int GUI::EditationWindowObject::GetObjectDirection | ( | ) | const [inline, protected] |
Returns object direction (saveable format).
string GUI::EditationWindowObject::GetObjectImageFile | ( | ) | const [inline, protected] |
Returns object image file (saveable format).
string GUI::EditationWindowObject::GetObjectName | ( | ) | const [inline, protected] |
Returns object name (saveable format).
string GUI::EditationWindowObject::ObjectName2FileName | ( | const string & | objectName | ) | const [protected] |
Returns transformed object name so it can be used as filename.
objectName | Name of the object |
void GUI::EditationWindowObject::OnMenuFileExit | ( | wxCommandEvent & | event | ) | [virtual] |
void GUI::EditationWindowObject::OnMenuFileSave | ( | wxCommandEvent & | event | ) | [virtual] |
Reimplemented in GUI::EditationWindowObjectAgent.
void GUI::EditationWindowObject::OnOkButton | ( | wxCommandEvent & | event | ) | [virtual] |
bool GUI::EditationWindowObject::SaveConfig | ( | ) | [protected, virtual] |
Saves edited info into config.
Implements GUI::EditationWindowBase.
Reimplemented in GUI::EditationWindowObjectAgent.
Object::Config& GUI::EditationWindowObject::config [private] |
Config that will be edited.
Reimplemented from GUI::EditationWindowBase.
Reimplemented in GUI::EditationWindowObjectAgent.
wxRadioBox* GUI::EditationWindowObject::directionRadio [private] |
Direction radio.
wxMenuBar* GUI::EditationWindowObject::menuBar [private] |
Menubar.
wxTextCtrl* GUI::EditationWindowObject::textDescription [private] |
Object description.
wxTextCtrl* GUI::EditationWindowObject::textImageFile [private] |
Object image file.
wxTextCtrl* GUI::EditationWindowObject::textName [private] |
Object name.