Model Railroad System
2.2.2
|
Locomotive Speed widget. More...
Public Member Functions | |
speed () | |
Method to return the current speed. More... | |
setspeed (speed) | |
Method to set the sensed speed. More... | |
LocomotiveSpeed (name,...) | |
Build and install all component widgets and process configuration. More... | |
invoke () | |
Method to invoke the widget. More... | |
Private Member Functions | |
_setspeed (newspeed) | |
Set the speed, bound to the bar -command option. More... | |
_stop () | |
Stop method, bound to the stop button. More... | |
_up1 () | |
Up by one method, bound to the slow up button. More... | |
_up10 () | |
Up by 10 method, bound to the fast up button. More... | |
_down1 () | |
Down by one method, bound to the slow down button. More... | |
_down10 () | |
Down by one method, bound to the fast down button. More... | |
Private Attributes | |
leftbuttons | |
Left buttons component (small incrments). More... | |
up1 | |
Up by one button. More... | |
down1 | |
Down by one button. More... | |
rightbuttons | |
Right buttons component (larger incrments). More... | |
up10 | |
Up by ten button. More... | |
down10 | |
Down by one button. More... | |
bar | |
Current speed bar. More... | |
stop | |
Stop button. More... | |
_speed | |
The current speed. More... | |
Static Private Attributes | |
static | _up |
Bitmap for up button. More... | |
static | _down |
Bitmap for down button. More... | |
static | _up10 |
Bitmap for fast up button. More... | |
static | _down10 |
Bitmap for fast down button. More... | |
static | _stop |
Bitmap for fast down button. More... | |
Locomotive Speed widget.
This widget implements Locomotive Speed control / display. There are buttons for increasing or decreasing speed either by units of 1 or by units of 10. Plus there is a bar showing the current relative speed.
path | Pathname of the widget. |
... | Options:
|
CabWidgets::LocomotiveSpeed::LocomotiveSpeed | ( | name | , |
... | |||
) |
Build and install all component widgets and process configuration.
... | Argument list (option value pairs). Gets passed to the implicitly defined configurelist method. |
|
private |
Down by one method, bound to the slow down button.
|
private |
Down by one method, bound to the fast down button.
|
private |
Set the speed, bound to the bar -command option.
|
private |
Stop method, bound to the stop button.
|
private |
Up by one method, bound to the slow up button.
|
private |
Up by 10 method, bound to the fast up button.
CabWidgets::LocomotiveSpeed::invoke | ( | ) |
Method to invoke the widget.
This calls the script (if any) defined by the -command option.
CabWidgets::LocomotiveSpeed::setspeed | ( | speed | ) |
Method to set the sensed speed.
CabWidgets::LocomotiveSpeed::speed | ( | ) |
Method to return the current speed.
|
staticprivate |
Bitmap for down button.
|
staticprivate |
Bitmap for fast down button.
|
private |
The current speed.
|
staticprivate |
Bitmap for fast down button.
|
staticprivate |
Bitmap for up button.
|
staticprivate |
Bitmap for fast up button.
|
private |
Current speed bar.
|
private |
Down by one button.
|
private |
Down by one button.
|
private |
Left buttons component (small incrments).
|
private |
Right buttons component (larger incrments).
|
private |
Stop button.
|
private |
Up by one button.
|
private |
Up by ten button.