#include <EditationWindowObjectAgent.h>
Inheritance diagram for GUI::EditationWindowObjectAgent:

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::Config & | config |
| Config that will be edited. | |
| wxTextCtrl * | textTrailImageFile |
| Trail image file. | |
| wxSpinCtrl * | durationSpin |
| Duration of the trail. | |
| wxTextCtrl * | textBehavior |
| Behavior (script). | |
anonymous enum [protected] |
| GUI::EditationWindowObjectAgent::EditationWindowObjectAgent | ( | wxWindow * | parent, | |
| ObjectAgent::Config & | editedConfig, | |||
| const string & | windowTitle = "Agent editation window" | |||
| ) |
Constructor.
| parent | Parent window | |
| editedConfig | Config that wil be edited | |
| windowTitle | Title of the window |
| GUI::EditationWindowObjectAgent::~EditationWindowObjectAgent | ( | ) | [virtual] |
Destructor.
| 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.
Reimplemented from GUI::EditationWindowObject.
const wxSize GUI::EditationWindowObjectAgent::BEHAVIOR_BOX_SIZE = wxSize(400, 200) [static, protected] |
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.
1.4.7