|
Model Railroad System 2.2.2
|
Push Button object type. More...
Public Member Functions | |
| PushButton (name, _ctcpanel, _canvas,...) | |
| Construct a PushButton object. More... | |
| ~PushButton () | |
| Clean up all data objects and free up all resources. More... | |
| getv () | |
| Method to get our value (PushButton state). More... | |
| setv (newstate) | |
| Method to set out value (PushButton state). More... | |
| geti (ind) | |
| Method to get the state of one of our indicators. More... | |
| seti (ind, value) | |
| Method to set an indicator's state (none). More... | |
| invoke () | |
| Method to invoke the PushButton. More... | |
Private Member Functions | |
| _configureLabel (option, value) | |
| Method to update the label option. More... | |
Private Attributes | |
| ctcpanel | |
| The CTC Panel component (parent widget). More... | |
| canvas | |
| The canvas component (parent widget component). More... | |
Push Button object type.
These are on the control panel and represent simple push buttons.
| _ctcpanel | The CTCPanel megawidget. |
| _canvas | The control panel canvas to draw the PushButton on. |
| ... | Options:
|
| CTCPanel::PushButton::PushButton | ( | name | , |
| _ctcpanel | , | ||
| _canvas | , | ||
| ... | |||
| ) |
Construct a PushButton object.
| _ctcpanel | The CTCPanel megawidget. |
| _canvas | The control panel canvas to draw the PushButton on. |
| ... | Option list. |
| CTCPanel::PushButton::~PushButton | ( | ) |
Clean up all data objects and free up all resources.
|
private |
Method to update the label option.
| CTCPanel::PushButton::geti | ( | ind | ) |
Method to get the state of one of our indicators.
| CTCPanel::PushButton::getv | ( | ) |
Method to get our value (PushButton state).
| CTCPanel::PushButton::invoke | ( | ) |
Method to invoke the PushButton.
| CTCPanel::PushButton::seti | ( | ind | , |
| value | |||
| ) |
Method to set an indicator's state (none).
| CTCPanel::PushButton::setv | ( | newstate | ) |
Method to set out value (PushButton state).
| newstate | The new PushButton state. |
|
private |
The canvas component (parent widget component).
|
private |
The CTC Panel component (parent widget).