Model Railroad System
2.2.2
|
Locomotive Direction widget. More...
Public Member Functions | |
direction () | |
Return the current direction. More... | |
LocomotiveDirection (name,...) | |
Build and install all component widgets and process configuration. More... | |
invoke () | |
Method to invoke the widget. More... | |
direction_sense (dir) | |
Method to set the sensed direction. More... | |
Private Member Functions | |
_setdirection (dir) | |
Set the current direction. More... | |
Private Attributes | |
reverse | |
Reverse button component. More... | |
currentDirection | |
Current direction label component. More... | |
forward | |
Forward button component. More... | |
_direction | |
The current direction. More... | |
Static Private Attributes | |
static | _left |
Left bitmap (reverse button). More... | |
static | _right |
Right bitmap (forward button). More... | |
Locomotive Direction widget.
This widget implements Locomotive Direction control / display. There are buttons for selecting the direction and the current direction is displayed.
path | Pathname of the widget. |
... | Options:
|
CabWidgets::LocomotiveDirection::LocomotiveDirection | ( | name | , |
... | |||
) |
Build and install all component widgets and process configuration.
... | Argument list (option value pairs). Gets passed to the implicitly defined configurelist method. |
|
private |
Set the current direction.
Bound to direction buttons.
dir | Localized string containing the direction. |
CabWidgets::LocomotiveDirection::direction | ( | ) |
Return the current direction.
CabWidgets::LocomotiveDirection::direction_sense | ( | dir | ) |
Method to set the sensed direction.
dir | The localized direction to set. |
CabWidgets::LocomotiveDirection::invoke | ( | ) |
Method to invoke the widget.
This calls the script (if any) defined by the -command option.
|
private |
The current direction.
|
staticprivate |
Left bitmap (reverse button).
|
staticprivate |
Right bitmap (forward button).
|
private |
Current direction label component.
|
private |
Forward button component.
|
private |
Reverse button component.