|
OpenASIP 2.2
|
#include <ProDeBusOrderDialog.hh>


Public Member Functions | |
| ProDeBusOrderDialog (wxWindow *parent, TTAMachine::Machine &machine) | |
| virtual | ~ProDeBusOrderDialog () |
Private Types | |
| enum | { ID_UP = 10000 , ID_DOWN , ID_LINE , ID_LIST } |
Private Member Functions | |
| void | onUp (wxCommandEvent &event) |
| void | onDown (wxCommandEvent &event) |
| void | onBusSelectionChanged (wxListEvent &event) |
| void | updateBusList () |
| int | selectedBus () const |
| wxSizer * | createContents (wxWindow *parent, bool call_fit, bool set_sizer) |
Private Attributes | |
| TTAMachine::Machine & | machine_ |
| Machine containing the buses to sort. | |
| wxListCtrl * | list_ |
| List widget for the buses. | |
Dialog for modifying order of transport buses in a machine.
Definition at line 48 of file ProDeBusOrderDialog.hh.
|
private |
| ProDeBusOrderDialog::ProDeBusOrderDialog | ( | wxWindow * | parent, |
| TTAMachine::Machine & | machine | ||
| ) |
The Constructor.
| parent | Parent window of the dialog. |
| machine | Machine containing the buses to order. |
Definition at line 53 of file ProDeBusOrderDialog.cc.
|
virtual |
|
private |
Creates the dialog widgets.
Definition at line 192 of file ProDeBusOrderDialog.cc.
|
private |
Enables and disables Up/Down buttons according to bus selection.
Definition at line 149 of file ProDeBusOrderDialog.cc.
References TTAMachine::Machine::busNavigator(), TTAMachine::Machine::Navigator< ComponentType >::count(), ID_DOWN, ID_UP, machine_, and selectedBus().

|
private |
Moves the selected bus one position down (increases the index by one).
Definition at line 124 of file ProDeBusOrderDialog.cc.
References TTAMachine::Machine::busNavigator(), TTAMachine::Machine::Navigator< ComponentType >::count(), TTAMachine::Machine::Navigator< ComponentType >::item(), list_, machine_, selectedBus(), TTAMachine::Machine::setBusPosition(), and updateBusList().

|
private |
Moves the selected bus one position up (decreases the index by one).
Definition at line 99 of file ProDeBusOrderDialog.cc.
References TTAMachine::Machine::busNavigator(), TTAMachine::Machine::Navigator< ComponentType >::item(), list_, machine_, selectedBus(), TTAMachine::Machine::setBusPosition(), and updateBusList().

|
private |
Returns index of the selected bus, or -1 if no bs is selected.
Definition at line 181 of file ProDeBusOrderDialog.cc.
References list_.
Referenced by onBusSelectionChanged(), onDown(), and onUp().
|
private |
Updates the bus list order.
Definition at line 83 of file ProDeBusOrderDialog.cc.
References TTAMachine::Machine::busNavigator(), TTAMachine::Machine::Navigator< ComponentType >::count(), TTAMachine::Machine::Navigator< ComponentType >::item(), list_, machine_, and WxConversion::toWxString().
Referenced by onDown(), and onUp().

|
private |
List widget for the buses.
Definition at line 71 of file ProDeBusOrderDialog.hh.
Referenced by onDown(), onUp(), selectedBus(), and updateBusList().
|
private |
Machine containing the buses to sort.
Definition at line 69 of file ProDeBusOrderDialog.hh.
Referenced by onBusSelectionChanged(), onDown(), onUp(), and updateBusList().