Skyscraper 2.0
Skyscraper::EscalatorControl Class Reference

#include <escalatorcontrol.h>

Inheritance diagram for Skyscraper::EscalatorControl:
Collaboration diagram for Skyscraper::EscalatorControl:

Public Member Functions

 EscalatorControl (DebugPanel *parent, wxWindowID id=wxID_ANY)
 
virtual ~EscalatorControl ()
 
void Loop ()
 

Public Attributes

wxButton * bOK
 
wxListBox * ListBox1
 
wxSlider * Slider1
 
wxStaticText * StaticText1
 
wxStaticText * StaticText2
 
wxStaticText * txtRun
 
wxTextCtrl * txtName
 
wxTextCtrl * txtParent
 

Static Protected Attributes

static const long ID_LISTBOX1 = wxNewId()
 
static const long ID_STATICTEXT1 = wxNewId()
 
static const long ID_txtName = wxNewId()
 
static const long ID_STATICTEXT2 = wxNewId()
 
static const long ID_txtParent = wxNewId()
 
static const long ID_txtRun = wxNewId()
 
static const long ID_SLIDER1 = wxNewId()
 
static const long ID_bOK = wxNewId()
 

Private Member Functions

void On_chkRun_Click (wxCommandEvent &event)
 
void On_bOK_Click (wxCommandEvent &event)
 
void On_Slider1_Scroll (wxCommandEvent &event)
 
void BuildList (bool restore_selection=false)
 
void UpdateRunState ()
 

Private Attributes

SBS::SBSSimcore
 
DebugPanelpanel
 
int lastcount
 
SBS::Escalatorescalator
 

Detailed Description

Definition at line 39 of file escalatorcontrol.h.

Constructor & Destructor Documentation

◆ EscalatorControl()

Skyscraper::EscalatorControl::EscalatorControl ( DebugPanel * parent,
wxWindowID id = wxID_ANY )

Definition at line 51 of file escalatorcontrol.cpp.

References On_bOK_Click(), and On_Slider1_Scroll().

Here is the call graph for this function:

◆ ~EscalatorControl()

Skyscraper::EscalatorControl::~EscalatorControl ( )
virtual

Definition at line 102 of file escalatorcontrol.cpp.

Member Function Documentation

◆ BuildList()

void Skyscraper::EscalatorControl::BuildList ( bool restore_selection = false)
private

Definition at line 149 of file escalatorcontrol.cpp.

References SBS::SBS::GetEscalator(), SBS::SBS::GetEscalatorCount(), SBS::ObjectBase::GetName(), lastcount, ListBox1, Simcore, Slider1, SBS::ToString(), txtName, and txtParent.

Referenced by Loop().

Here is the call graph for this function:

◆ Loop()

◆ On_bOK_Click()

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

Definition at line 108 of file escalatorcontrol.cpp.

Referenced by EscalatorControl().

◆ On_chkRun_Click()

void Skyscraper::EscalatorControl::On_chkRun_Click ( wxCommandEvent & event)
private

◆ On_Slider1_Scroll()

void Skyscraper::EscalatorControl::On_Slider1_Scroll ( wxCommandEvent & event)
private

Definition at line 183 of file escalatorcontrol.cpp.

References escalator, SBS::Escalator::SetRun(), Slider1, and UpdateRunState().

Referenced by EscalatorControl().

Here is the call graph for this function:

◆ UpdateRunState()

void Skyscraper::EscalatorControl::UpdateRunState ( )
private

Definition at line 190 of file escalatorcontrol.cpp.

References escalator, SBS::Escalator::GetRun(), and txtRun.

Referenced by Loop(), and On_Slider1_Scroll().

Here is the call graph for this function:

Member Data Documentation

◆ bOK

wxButton* Skyscraper::EscalatorControl::bOK

Definition at line 48 of file escalatorcontrol.h.

◆ escalator

SBS::Escalator* Skyscraper::EscalatorControl::escalator
private

Definition at line 84 of file escalatorcontrol.h.

Referenced by Loop(), On_Slider1_Scroll(), and UpdateRunState().

◆ ID_bOK

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

Definition at line 68 of file escalatorcontrol.h.

◆ ID_LISTBOX1

const long Skyscraper::EscalatorControl::ID_LISTBOX1 = wxNewId()
staticprotected

Definition at line 61 of file escalatorcontrol.h.

◆ ID_SLIDER1

const long Skyscraper::EscalatorControl::ID_SLIDER1 = wxNewId()
staticprotected

Definition at line 67 of file escalatorcontrol.h.

◆ ID_STATICTEXT1

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

Definition at line 62 of file escalatorcontrol.h.

◆ ID_STATICTEXT2

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

Definition at line 64 of file escalatorcontrol.h.

◆ ID_txtName

const long Skyscraper::EscalatorControl::ID_txtName = wxNewId()
staticprotected

Definition at line 63 of file escalatorcontrol.h.

◆ ID_txtParent

const long Skyscraper::EscalatorControl::ID_txtParent = wxNewId()
staticprotected

Definition at line 65 of file escalatorcontrol.h.

◆ ID_txtRun

const long Skyscraper::EscalatorControl::ID_txtRun = wxNewId()
staticprotected

Definition at line 66 of file escalatorcontrol.h.

◆ lastcount

int Skyscraper::EscalatorControl::lastcount
private

Definition at line 83 of file escalatorcontrol.h.

Referenced by BuildList().

◆ ListBox1

wxListBox* Skyscraper::EscalatorControl::ListBox1

Definition at line 49 of file escalatorcontrol.h.

Referenced by BuildList(), and Loop().

◆ panel

DebugPanel* Skyscraper::EscalatorControl::panel
private

Definition at line 82 of file escalatorcontrol.h.

Referenced by Loop().

◆ Simcore

SBS::SBS* Skyscraper::EscalatorControl::Simcore
private

Definition at line 81 of file escalatorcontrol.h.

Referenced by BuildList(), and Loop().

◆ Slider1

wxSlider* Skyscraper::EscalatorControl::Slider1

Definition at line 50 of file escalatorcontrol.h.

Referenced by BuildList(), Loop(), and On_Slider1_Scroll().

◆ StaticText1

wxStaticText* Skyscraper::EscalatorControl::StaticText1

Definition at line 51 of file escalatorcontrol.h.

◆ StaticText2

wxStaticText* Skyscraper::EscalatorControl::StaticText2

Definition at line 52 of file escalatorcontrol.h.

◆ txtName

wxTextCtrl* Skyscraper::EscalatorControl::txtName

Definition at line 54 of file escalatorcontrol.h.

Referenced by BuildList(), and Loop().

◆ txtParent

wxTextCtrl* Skyscraper::EscalatorControl::txtParent

Definition at line 55 of file escalatorcontrol.h.

Referenced by BuildList(), and Loop().

◆ txtRun

wxStaticText* Skyscraper::EscalatorControl::txtRun

Definition at line 53 of file escalatorcontrol.h.

Referenced by UpdateRunState().


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