|
Model Railroad System 2.2.2
|
Code button object type. More...
Public Member Functions | |
| CodeButton (name, _ctcpanel, _canvas,...) | |
| Construct a Code Button object. More... | |
| ~CodeButton () | |
| Clean up all data objects and free up all resources. More... | |
| getv () | |
| Method to get our value (none). More... | |
| setv (state) | |
| Method to set our value (none). More... | |
| geti (ind) | |
| Method to get an indicator state (none). More... | |
| seti (ind, value) | |
| Method to set an indicator state (none). More... | |
| invoke () | |
| Method to invoke the code button. More... | |
Private Attributes | |
| ctcpanel | |
| The CTC Panel component (parent widget). More... | |
| canvas | |
| The canvas component (parent widget component). More... | |
Code button object type.
These are on the control panel and represent buttons that enact the settings of the SWPlates and SIGPlates for a given control point.
| _ctcpanel | The CTCPanel megawidget. |
| _canvas | The control panel canvas to draw the switch plate on. |
| ... | Options:
|
| CTCPanel::CodeButton::CodeButton | ( | name | , |
| _ctcpanel | , | ||
| _canvas | , | ||
| ... | |||
| ) |
Construct a Code Button object.
| _ctcpanel | The CTCPanel megawidget. |
| _canvas | The control panel canvas to draw the Code Button on. |
| ... | Option list. |
| CTCPanel::CodeButton::~CodeButton | ( | ) |
Clean up all data objects and free up all resources.
| CTCPanel::CodeButton::geti | ( | ind | ) |
Method to get an indicator state (none).
| CTCPanel::CodeButton::getv | ( | ) |
Method to get our value (none).
| CTCPanel::CodeButton::invoke | ( | ) |
Method to invoke the code button.
The command script is executed.
| CTCPanel::CodeButton::seti | ( | ind | , |
| value | |||
| ) |
Method to set an indicator state (none).
| CTCPanel::CodeButton::setv | ( | state | ) |
Method to set our value (none).
|
private |
The canvas component (parent widget component).
|
private |
The CTC Panel component (parent widget).