Skyscraper 2.0
Skyscraper::ObjectInfo Class Reference

#include <objectinfo.h>

Inheritance diagram for Skyscraper::ObjectInfo:
Collaboration diagram for Skyscraper::ObjectInfo:

Public Member Functions

 ObjectInfo (DebugPanel *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize)
 
virtual ~ObjectInfo ()
 
void Loop ()
 
void PopulateTree ()
 

Public Attributes

wxButton * bCreate
 
wxButton * bDelete
 
wxButton * bMove
 
wxButton * bOK
 
wxButton * bReset
 
wxButton * bSave
 
wxButton * bViewScript
 
wxStaticLine * StaticLine1
 
wxStaticText * StaticText10
 
wxStaticText * StaticText11
 
wxStaticText * StaticText12
 
wxStaticText * StaticText1
 
wxStaticText * StaticText2
 
wxStaticText * StaticText3
 
wxStaticText * StaticText4
 
wxStaticText * StaticText5
 
wxStaticText * StaticText6
 
wxStaticText * StaticText7
 
wxStaticText * StaticText8
 
wxStaticText * StaticText9
 
wxTextCtrl * tContext
 
wxTextCtrl * tIncludeFile
 
wxTextCtrl * tLineNum
 
wxTextCtrl * tName
 
wxTextCtrl * tNumber
 
wxTextCtrl * tParent
 
wxTextCtrl * tParentName
 
wxTextCtrl * tParentType
 
wxTextCtrl * tPermanent
 
wxTextCtrl * tScriptCommand2
 
wxTextCtrl * tScriptCommand
 
wxTextCtrl * tType
 
wxTreeCtrl * ObjectTree
 
int oldobject
 
int oldcamobject
 
bool deleted
 

Protected Member Functions

void OnInit ()
 

Static Protected Attributes

static const long ID_ObjectTree = wxNewId()
 
static const long ID_bDelete = wxNewId()
 
static const long ID_bMove = wxNewId()
 
static const long ID_bCreate = wxNewId()
 
static const long ID_bViewScript = wxNewId()
 
static const long ID_bReset = wxNewId()
 
static const long ID_bOK = wxNewId()
 
static const long ID_bSave = wxNewId()
 
static const long ID_STATICTEXT1 = wxNewId()
 
static const long ID_tNumber = wxNewId()
 
static const long ID_STATICTEXT5 = wxNewId()
 
static const long ID_tName = wxNewId()
 
static const long ID_STATICTEXT2 = wxNewId()
 
static const long ID_tType = wxNewId()
 
static const long ID_STATICTEXT11 = wxNewId()
 
static const long ID_tPermanent = wxNewId()
 
static const long ID_STATICTEXT3 = wxNewId()
 
static const long ID_tParent = wxNewId()
 
static const long ID_STATICTEXT6 = wxNewId()
 
static const long ID_tParentName = wxNewId()
 
static const long ID_STATICTEXT4 = wxNewId()
 
static const long ID_tParentType = wxNewId()
 
static const long ID_STATICLINE1 = wxNewId()
 
static const long ID_STATICTEXT7 = wxNewId()
 
static const long ID_tLineNum = wxNewId()
 
static const long ID_STATICTEXT12 = wxNewId()
 
static const long ID_tIncludeFile = wxNewId()
 
static const long ID_STATICTEXT10 = wxNewId()
 
static const long ID_tContext = wxNewId()
 
static const long ID_STATICTEXT8 = wxNewId()
 
static const long ID_tScriptCommand = wxNewId()
 
static const long ID_STATICTEXT9 = wxNewId()
 
static const long ID_tScriptCommand2 = wxNewId()
 

Private Member Functions

void On_bOK_Click (wxCommandEvent &event)
 
void On_ObjectTree_SelectionChanged (wxTreeEvent &event)
 
void On_bDelete_Click (wxCommandEvent &event)
 
void On_bCreate_Click (wxCommandEvent &event)
 
void On_bModify_Click (wxCommandEvent &event)
 
void On_bSave_Click (wxCommandEvent &event)
 
void On_bViewScript_Click (wxCommandEvent &event)
 
void On_bMove_Click (wxCommandEvent &event)
 
void On_bReset_Click (wxCommandEvent &event)
 
void AddChildren (SBS::Object *parent, const wxTreeItemId &treeparent)
 

Private Attributes

bool changed
 
int lastcount
 
SBS::SBSSimcore
 
DebugPanelpanel
 
CreateObjectcreateobject
 
ParameterViewermodifyobject
 
MoveObjectmoveobject
 

Detailed Description

Definition at line 38 of file objectinfo.h.

Constructor & Destructor Documentation

◆ ObjectInfo()

Skyscraper::ObjectInfo::ObjectInfo ( DebugPanel * parent,
wxWindowID id = wxID_ANY,
const wxPoint & pos = wxDefaultPosition,
const wxSize & size = wxDefaultSize )

◆ ~ObjectInfo()

Skyscraper::ObjectInfo::~ObjectInfo ( )
virtual

Definition at line 213 of file objectinfo.cpp.

References createobject, modifyobject, and moveobject.

Member Function Documentation

◆ AddChildren()

void Skyscraper::ObjectInfo::AddChildren ( SBS::Object * parent,
const wxTreeItemId & treeparent )
private

Definition at line 341 of file objectinfo.cpp.

References AddChildren(), SBS::Object::GetChild(), SBS::Object::GetChildrenCount(), SBS::ObjectBase::GetName(), SBS::Object::GetNumber(), ObjectTree, and SBS::ToString().

Referenced by AddChildren(), and PopulateTree().

Here is the call graph for this function:

◆ Loop()

◆ On_bCreate_Click()

void Skyscraper::ObjectInfo::On_bCreate_Click ( wxCommandEvent & event)
private

Definition at line 390 of file objectinfo.cpp.

References createobject, and panel.

Referenced by ObjectInfo().

◆ On_bDelete_Click()

void Skyscraper::ObjectInfo::On_bDelete_Click ( wxCommandEvent & event)
private

Definition at line 369 of file objectinfo.cpp.

References deleted, SBS::SBS::DeleteObject(), Skyscraper::TreeItemData::GetDesc(), ObjectTree, and Simcore.

Referenced by ObjectInfo().

Here is the call graph for this function:

◆ On_bModify_Click()

void Skyscraper::ObjectInfo::On_bModify_Click ( wxCommandEvent & event)
private

Definition at line 398 of file objectinfo.cpp.

References modifyobject, panel, tParentType, and tType.

◆ On_bMove_Click()

void Skyscraper::ObjectInfo::On_bMove_Click ( wxCommandEvent & event)
private

Definition at line 434 of file objectinfo.cpp.

References Skyscraper::VM::GetActiveEngine(), Skyscraper::TreeItemData::GetDesc(), Skyscraper::DebugPanel::GetRoot(), moveobject, ObjectTree, and panel.

Referenced by ObjectInfo().

Here is the call graph for this function:

◆ On_bOK_Click()

void Skyscraper::ObjectInfo::On_bOK_Click ( wxCommandEvent & event)
private

Definition at line 239 of file objectinfo.cpp.

Referenced by ObjectInfo().

◆ On_bReset_Click()

void Skyscraper::ObjectInfo::On_bReset_Click ( wxCommandEvent & event)
private

Definition at line 455 of file objectinfo.cpp.

References Skyscraper::TreeItemData::GetDesc(), SBS::SBS::GetObject(), ObjectTree, SBS::Object::ResetState(), and Simcore.

Referenced by ObjectInfo().

Here is the call graph for this function:

◆ On_bSave_Click()

void Skyscraper::ObjectInfo::On_bSave_Click ( wxCommandEvent & event)
private

Definition at line 406 of file objectinfo.cpp.

Referenced by ObjectInfo().

◆ On_bViewScript_Click()

void Skyscraper::ObjectInfo::On_bViewScript_Click ( wxCommandEvent & event)
private

◆ On_ObjectTree_SelectionChanged()

void Skyscraper::ObjectInfo::On_ObjectTree_SelectionChanged ( wxTreeEvent & event)
private

Definition at line 364 of file objectinfo.cpp.

References changed.

Referenced by ObjectInfo().

◆ OnInit()

void Skyscraper::ObjectInfo::OnInit ( )
protected

Definition at line 229 of file objectinfo.cpp.

References changed, deleted, Skyscraper::DebugPanel::GetSystem(), lastcount, oldcamobject, oldobject, panel, and Simcore.

Referenced by Loop().

Here is the call graph for this function:

◆ PopulateTree()

void Skyscraper::ObjectInfo::PopulateTree ( )

Definition at line 327 of file objectinfo.cpp.

References AddChildren(), SBS::ObjectBase::GetName(), SBS::Object::GetNumber(), ObjectTree, Simcore, and SBS::ToString().

Referenced by Loop().

Here is the call graph for this function:

Member Data Documentation

◆ bCreate

wxButton* Skyscraper::ObjectInfo::bCreate

Definition at line 46 of file objectinfo.h.

◆ bDelete

wxButton* Skyscraper::ObjectInfo::bDelete

Definition at line 47 of file objectinfo.h.

◆ bMove

wxButton* Skyscraper::ObjectInfo::bMove

Definition at line 48 of file objectinfo.h.

◆ bOK

wxButton* Skyscraper::ObjectInfo::bOK

Definition at line 49 of file objectinfo.h.

◆ bReset

wxButton* Skyscraper::ObjectInfo::bReset

Definition at line 50 of file objectinfo.h.

◆ bSave

wxButton* Skyscraper::ObjectInfo::bSave

Definition at line 51 of file objectinfo.h.

◆ bViewScript

wxButton* Skyscraper::ObjectInfo::bViewScript

Definition at line 52 of file objectinfo.h.

◆ changed

bool Skyscraper::ObjectInfo::changed
private

Definition at line 139 of file objectinfo.h.

Referenced by Loop(), On_ObjectTree_SelectionChanged(), and OnInit().

◆ createobject

CreateObject* Skyscraper::ObjectInfo::createobject
private

Definition at line 144 of file objectinfo.h.

Referenced by On_bCreate_Click(), and ~ObjectInfo().

◆ deleted

bool Skyscraper::ObjectInfo::deleted

Definition at line 84 of file objectinfo.h.

Referenced by Loop(), On_bDelete_Click(), and OnInit().

◆ ID_bCreate

const long Skyscraper::ObjectInfo::ID_bCreate = wxNewId()
staticprotected

Definition at line 92 of file objectinfo.h.

◆ ID_bDelete

const long Skyscraper::ObjectInfo::ID_bDelete = wxNewId()
staticprotected

Definition at line 90 of file objectinfo.h.

◆ ID_bMove

const long Skyscraper::ObjectInfo::ID_bMove = wxNewId()
staticprotected

Definition at line 91 of file objectinfo.h.

◆ ID_bOK

const long Skyscraper::ObjectInfo::ID_bOK = wxNewId()
staticprotected

Definition at line 95 of file objectinfo.h.

◆ ID_bReset

const long Skyscraper::ObjectInfo::ID_bReset = wxNewId()
staticprotected

Definition at line 94 of file objectinfo.h.

◆ ID_bSave

const long Skyscraper::ObjectInfo::ID_bSave = wxNewId()
staticprotected

Definition at line 96 of file objectinfo.h.

◆ ID_bViewScript

const long Skyscraper::ObjectInfo::ID_bViewScript = wxNewId()
staticprotected

Definition at line 93 of file objectinfo.h.

◆ ID_ObjectTree

const long Skyscraper::ObjectInfo::ID_ObjectTree = wxNewId()
staticprotected

Definition at line 89 of file objectinfo.h.

◆ ID_STATICLINE1

const long Skyscraper::ObjectInfo::ID_STATICLINE1 = wxNewId()
staticprotected

Definition at line 111 of file objectinfo.h.

◆ ID_STATICTEXT1

const long Skyscraper::ObjectInfo::ID_STATICTEXT1 = wxNewId()
staticprotected

Definition at line 97 of file objectinfo.h.

◆ ID_STATICTEXT10

const long Skyscraper::ObjectInfo::ID_STATICTEXT10 = wxNewId()
staticprotected

Definition at line 116 of file objectinfo.h.

◆ ID_STATICTEXT11

const long Skyscraper::ObjectInfo::ID_STATICTEXT11 = wxNewId()
staticprotected

Definition at line 103 of file objectinfo.h.

◆ ID_STATICTEXT12

const long Skyscraper::ObjectInfo::ID_STATICTEXT12 = wxNewId()
staticprotected

Definition at line 114 of file objectinfo.h.

◆ ID_STATICTEXT2

const long Skyscraper::ObjectInfo::ID_STATICTEXT2 = wxNewId()
staticprotected

Definition at line 101 of file objectinfo.h.

◆ ID_STATICTEXT3

const long Skyscraper::ObjectInfo::ID_STATICTEXT3 = wxNewId()
staticprotected

Definition at line 105 of file objectinfo.h.

◆ ID_STATICTEXT4

const long Skyscraper::ObjectInfo::ID_STATICTEXT4 = wxNewId()
staticprotected

Definition at line 109 of file objectinfo.h.

◆ ID_STATICTEXT5

const long Skyscraper::ObjectInfo::ID_STATICTEXT5 = wxNewId()
staticprotected

Definition at line 99 of file objectinfo.h.

◆ ID_STATICTEXT6

const long Skyscraper::ObjectInfo::ID_STATICTEXT6 = wxNewId()
staticprotected

Definition at line 107 of file objectinfo.h.

◆ ID_STATICTEXT7

const long Skyscraper::ObjectInfo::ID_STATICTEXT7 = wxNewId()
staticprotected

Definition at line 112 of file objectinfo.h.

◆ ID_STATICTEXT8

const long Skyscraper::ObjectInfo::ID_STATICTEXT8 = wxNewId()
staticprotected

Definition at line 118 of file objectinfo.h.

◆ ID_STATICTEXT9

const long Skyscraper::ObjectInfo::ID_STATICTEXT9 = wxNewId()
staticprotected

Definition at line 120 of file objectinfo.h.

◆ ID_tContext

const long Skyscraper::ObjectInfo::ID_tContext = wxNewId()
staticprotected

Definition at line 117 of file objectinfo.h.

◆ ID_tIncludeFile

const long Skyscraper::ObjectInfo::ID_tIncludeFile = wxNewId()
staticprotected

Definition at line 115 of file objectinfo.h.

◆ ID_tLineNum

const long Skyscraper::ObjectInfo::ID_tLineNum = wxNewId()
staticprotected

Definition at line 113 of file objectinfo.h.

◆ ID_tName

const long Skyscraper::ObjectInfo::ID_tName = wxNewId()
staticprotected

Definition at line 100 of file objectinfo.h.

◆ ID_tNumber

const long Skyscraper::ObjectInfo::ID_tNumber = wxNewId()
staticprotected

Definition at line 98 of file objectinfo.h.

◆ ID_tParent

const long Skyscraper::ObjectInfo::ID_tParent = wxNewId()
staticprotected

Definition at line 106 of file objectinfo.h.

◆ ID_tParentName

const long Skyscraper::ObjectInfo::ID_tParentName = wxNewId()
staticprotected

Definition at line 108 of file objectinfo.h.

◆ ID_tParentType

const long Skyscraper::ObjectInfo::ID_tParentType = wxNewId()
staticprotected

Definition at line 110 of file objectinfo.h.

◆ ID_tPermanent

const long Skyscraper::ObjectInfo::ID_tPermanent = wxNewId()
staticprotected

Definition at line 104 of file objectinfo.h.

◆ ID_tScriptCommand

const long Skyscraper::ObjectInfo::ID_tScriptCommand = wxNewId()
staticprotected

Definition at line 119 of file objectinfo.h.

◆ ID_tScriptCommand2

const long Skyscraper::ObjectInfo::ID_tScriptCommand2 = wxNewId()
staticprotected

Definition at line 121 of file objectinfo.h.

◆ ID_tType

const long Skyscraper::ObjectInfo::ID_tType = wxNewId()
staticprotected

Definition at line 102 of file objectinfo.h.

◆ lastcount

int Skyscraper::ObjectInfo::lastcount
private

Definition at line 140 of file objectinfo.h.

Referenced by Loop(), and OnInit().

◆ modifyobject

ParameterViewer* Skyscraper::ObjectInfo::modifyobject
private

Definition at line 145 of file objectinfo.h.

Referenced by On_bModify_Click(), and ~ObjectInfo().

◆ moveobject

MoveObject* Skyscraper::ObjectInfo::moveobject
private

Definition at line 146 of file objectinfo.h.

Referenced by Loop(), On_bMove_Click(), and ~ObjectInfo().

◆ ObjectTree

wxTreeCtrl* Skyscraper::ObjectInfo::ObjectTree

◆ oldcamobject

int Skyscraper::ObjectInfo::oldcamobject

Definition at line 83 of file objectinfo.h.

Referenced by Loop(), and OnInit().

◆ oldobject

int Skyscraper::ObjectInfo::oldobject

Definition at line 82 of file objectinfo.h.

Referenced by Loop(), and OnInit().

◆ panel

DebugPanel* Skyscraper::ObjectInfo::panel
private

◆ Simcore

SBS::SBS* Skyscraper::ObjectInfo::Simcore
private

Definition at line 141 of file objectinfo.h.

Referenced by Loop(), On_bDelete_Click(), On_bReset_Click(), OnInit(), and PopulateTree().

◆ StaticLine1

wxStaticLine* Skyscraper::ObjectInfo::StaticLine1

Definition at line 53 of file objectinfo.h.

◆ StaticText1

wxStaticText* Skyscraper::ObjectInfo::StaticText1

Definition at line 57 of file objectinfo.h.

◆ StaticText10

wxStaticText* Skyscraper::ObjectInfo::StaticText10

Definition at line 54 of file objectinfo.h.

◆ StaticText11

wxStaticText* Skyscraper::ObjectInfo::StaticText11

Definition at line 55 of file objectinfo.h.

◆ StaticText12

wxStaticText* Skyscraper::ObjectInfo::StaticText12

Definition at line 56 of file objectinfo.h.

◆ StaticText2

wxStaticText* Skyscraper::ObjectInfo::StaticText2

Definition at line 58 of file objectinfo.h.

◆ StaticText3

wxStaticText* Skyscraper::ObjectInfo::StaticText3

Definition at line 59 of file objectinfo.h.

◆ StaticText4

wxStaticText* Skyscraper::ObjectInfo::StaticText4

Definition at line 60 of file objectinfo.h.

◆ StaticText5

wxStaticText* Skyscraper::ObjectInfo::StaticText5

Definition at line 61 of file objectinfo.h.

◆ StaticText6

wxStaticText* Skyscraper::ObjectInfo::StaticText6

Definition at line 62 of file objectinfo.h.

◆ StaticText7

wxStaticText* Skyscraper::ObjectInfo::StaticText7

Definition at line 63 of file objectinfo.h.

◆ StaticText8

wxStaticText* Skyscraper::ObjectInfo::StaticText8

Definition at line 64 of file objectinfo.h.

◆ StaticText9

wxStaticText* Skyscraper::ObjectInfo::StaticText9

Definition at line 65 of file objectinfo.h.

◆ tContext

wxTextCtrl* Skyscraper::ObjectInfo::tContext

Definition at line 66 of file objectinfo.h.

Referenced by Loop().

◆ tIncludeFile

wxTextCtrl* Skyscraper::ObjectInfo::tIncludeFile

Definition at line 67 of file objectinfo.h.

Referenced by Loop().

◆ tLineNum

wxTextCtrl* Skyscraper::ObjectInfo::tLineNum

Definition at line 68 of file objectinfo.h.

Referenced by Loop().

◆ tName

wxTextCtrl* Skyscraper::ObjectInfo::tName

Definition at line 69 of file objectinfo.h.

Referenced by Loop().

◆ tNumber

wxTextCtrl* Skyscraper::ObjectInfo::tNumber

Definition at line 70 of file objectinfo.h.

Referenced by Loop().

◆ tParent

wxTextCtrl* Skyscraper::ObjectInfo::tParent

Definition at line 71 of file objectinfo.h.

Referenced by Loop().

◆ tParentName

wxTextCtrl* Skyscraper::ObjectInfo::tParentName

Definition at line 72 of file objectinfo.h.

Referenced by Loop().

◆ tParentType

wxTextCtrl* Skyscraper::ObjectInfo::tParentType

Definition at line 73 of file objectinfo.h.

Referenced by Loop(), and On_bModify_Click().

◆ tPermanent

wxTextCtrl* Skyscraper::ObjectInfo::tPermanent

Definition at line 74 of file objectinfo.h.

Referenced by Loop().

◆ tScriptCommand

wxTextCtrl* Skyscraper::ObjectInfo::tScriptCommand

Definition at line 76 of file objectinfo.h.

Referenced by Loop().

◆ tScriptCommand2

wxTextCtrl* Skyscraper::ObjectInfo::tScriptCommand2

Definition at line 75 of file objectinfo.h.

Referenced by Loop().

◆ tType

wxTextCtrl* Skyscraper::ObjectInfo::tType

Definition at line 77 of file objectinfo.h.

Referenced by Loop(), and On_bModify_Click().


The documentation for this class was generated from the following files: