Model Railroad System
2.2.1
|
Select or enter a Locomotive address. More...
Public Member Functions | |
SelectLocomotive (name,...) | |
Constructor. More... | |
currentLocomotive () | |
Method to return the current locomotive address. More... | |
invoke () | |
Method to invoke the widget. More... | |
Private Member Functions | |
_trimList (option, value) | |
Configure method for -maxsaved. More... | |
_addnewloco () | |
Add new loco. More... | |
Private Attributes | |
lf | |
LabelFrame component. More... | |
locoList | |
Locolist Combobox component. More... | |
Select or enter a Locomotive address.
This widget implements a Locomotive address selection widget. A Locomotive is selected from a drop down or a new address is entered. When a new address is entered, it is saved in the drop down list. The maximum number of saved addresses is configurable.
path | Pathname of the widget. |
... | Options:
|
CabWidgets::SelectLocomotive::SelectLocomotive | ( | name | , |
... | |||
) |
Constructor.
path | Widget path. |
... | Options. |
|
private |
Add new loco.
Bound to the locoList ComboBox entry.
|
private |
Configure method for -maxsaved.
Trim the list if needed.
option | The option name. |
value | The new value. |
CabWidgets::SelectLocomotive::currentLocomotive | ( | ) |
Method to return the current locomotive address.
CabWidgets::SelectLocomotive::invoke | ( | ) |
Method to invoke the widget.
This calls the script (if any) defined by the -command option.
|
private |
LabelFrame component.
|
private |
Locolist Combobox component.