GUI::EditationWindowObject Class Reference

Basic object editation window. More...

#include <EditationWindowObject.h>

Inheritance diagram for GUI::EditationWindowObject:

GUI::EditationWindowBase GUI::EditationWindowObjectAgent GUI::EditationWindowObjectFixed GUI::EditationWindowObjectTrail GUI::EditationWindowObjectTransferable List of all members.

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::Configconfig
 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.

Detailed Description

Basic object editation window.


Member Enumeration Documentation

anonymous enum [protected]

Event ID's.

Enumerator:
ID_MenuFileSave 
ID_MenuFileExit 
ID_ObjectName 
ID_ObjectNameText 
ID_ObjectDescription 
ID_ObjectDescriptionText 
ID_ObjectImage 
ID_ObjectImageText 


Constructor & Destructor Documentation

GUI::EditationWindowObject::EditationWindowObject ( wxWindow *  parent,
Object::Config editedConfig,
const string &  windowTitle = "Editation window" 
)

Constructor.

Parameters:
parent Parent window
editedConfig Config that wil be edited
windowTitle Title of the window

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

Destructor.


Member Function Documentation

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.

Parameters:
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]

Implements GUI::EditationWindowBase.

Reimplemented in GUI::EditationWindowObjectAgent.

bool GUI::EditationWindowObject::SaveConfig (  )  [protected, virtual]

Saves edited info into config.

Returns:
Returns true if everything was saved ok

Implements GUI::EditationWindowBase.

Reimplemented in GUI::EditationWindowObjectAgent.


Member Data Documentation

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.


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