GUI::EditationWindowObjectAgent Class Reference

ObjectAgent editation window. More...

#include <EditationWindowObjectAgent.h>

Inheritance diagram for GUI::EditationWindowObjectAgent:

GUI::EditationWindowObject GUI::EditationWindowBase List of all members.

Public Member Functions

virtual void OnMenuFileSave (wxCommandEvent &event)
virtual void OnOkButton (wxCommandEvent &event)
 EditationWindowObjectAgent (wxWindow *parent, ObjectAgent::Config &editedConfig, const string &windowTitle="Agent editation window")
 Constructor.
virtual ~EditationWindowObjectAgent ()
 Destructor.

Protected Types

 ID_TrailImageFile = 14000
 ID_TrailImageFileText
 ID_TrailDuration
 ID_TrailDurationText
 ID_Script
 ID_ScriptText
enum  {
  ID_TrailImageFile = 14000, ID_TrailImageFileText, ID_TrailDuration, ID_TrailDurationText,
  ID_Script, ID_ScriptText
}
 Event IDs. More...

Protected Member Functions

virtual void CreateBasicForm ()
 Creates basic agent's form (trail image and trail duration).
virtual void CreateBehaviorForm ()
 Creates form to edit agent's behavior.
virtual bool SaveConfig ()
 Saves edited info into config.
string GetObjectTrailImageFile () const
 Returns trail image file (saveable format).
int GetObjectTrailDuration () const
 Returns trail duration (saveable format).
string GetObjectBehavior () const
 Returns object behavior script (saveable format).

Static Protected Attributes

static const wxSize BEHAVIOR_BOX_SIZE = wxSize(400, 200)
static const wxSize DURATION_SPIN_SIZE = FORM_TEXT_BOX_SIZE

Private Attributes

ObjectAgent::Configconfig
 Config that will be edited.
wxTextCtrl * textTrailImageFile
 Trail image file.
wxSpinCtrl * durationSpin
 Duration of the trail.
wxTextCtrl * textBehavior
 Behavior (script).

Detailed Description

ObjectAgent editation window.


Member Enumeration Documentation

anonymous enum [protected]

Event IDs.

Enumerator:
ID_TrailImageFile 
ID_TrailImageFileText 
ID_TrailDuration 
ID_TrailDurationText 
ID_Script 
ID_ScriptText 


Constructor & Destructor Documentation

GUI::EditationWindowObjectAgent::EditationWindowObjectAgent ( wxWindow *  parent,
ObjectAgent::Config editedConfig,
const string &  windowTitle = "Agent editation window" 
)

Constructor.

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

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

Destructor.


Member Function Documentation

void GUI::EditationWindowObjectAgent::CreateBasicForm (  )  [protected, virtual]

Creates basic agent's form (trail image and trail duration).

Reimplemented from GUI::EditationWindowObject.

void GUI::EditationWindowObjectAgent::CreateBehaviorForm (  )  [protected, virtual]

Creates form to edit agent's behavior.

string GUI::EditationWindowObjectAgent::GetObjectBehavior (  )  const [inline, protected]

Returns object behavior script (saveable format).

int GUI::EditationWindowObjectAgent::GetObjectTrailDuration (  )  const [inline, protected]

Returns trail duration (saveable format).

string GUI::EditationWindowObjectAgent::GetObjectTrailImageFile (  )  const [inline, protected]

Returns trail image file (saveable format).

void GUI::EditationWindowObjectAgent::OnMenuFileSave ( wxCommandEvent &  event  )  [virtual]

Reimplemented from GUI::EditationWindowObject.

void GUI::EditationWindowObjectAgent::OnOkButton ( wxCommandEvent &  event  )  [virtual]

Reimplemented from GUI::EditationWindowObject.

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

Saves edited info into config.

Returns:
Returns true if everything was saved ok

Reimplemented from GUI::EditationWindowObject.


Member Data Documentation

const wxSize GUI::EditationWindowObjectAgent::BEHAVIOR_BOX_SIZE = wxSize(400, 200) [static, protected]

ObjectAgent::Config& GUI::EditationWindowObjectAgent::config [private]

Config that will be edited.

Reimplemented from GUI::EditationWindowObject.

const wxSize GUI::EditationWindowObjectAgent::DURATION_SPIN_SIZE = FORM_TEXT_BOX_SIZE [static, protected]

wxSpinCtrl* GUI::EditationWindowObjectAgent::durationSpin [private]

Duration of the trail.

wxTextCtrl* GUI::EditationWindowObjectAgent::textBehavior [private]

Behavior (script).

wxTextCtrl* GUI::EditationWindowObjectAgent::textTrailImageFile [private]

Trail image file.


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