![]() |
SUMO - Simulation of Urban MObility
|
Dialog for edit calibrators. More...
#include <GNECalibratorDialog.h>
Public Member Functions | |
GNECalibrator * | getEditedCalibrator () const |
get edited calibrator More... | |
GNECalibratorDialog (GNECalibrator *editedCalibrator) | |
FOX-declaration. More... | |
~GNECalibratorDialog () | |
destructor More... | |
FOX-callbacks | |
event after press accept button | |
long | onCmdAccept (FXObject *, FXSelector, void *) |
long | onCmdCancel (FXObject *, FXSelector, void *) |
event after press cancel button More... | |
long | onCmdReset (FXObject *, FXSelector, void *) |
event after press reset button More... | |
long | onCmdAddRoute (FXObject *, FXSelector, void *) |
add new route More... | |
long | onCmdClickedRoute (FXObject *, FXSelector, void *) |
remove or edit route More... | |
long | onCmdAddFlow (FXObject *, FXSelector, void *) |
add new flow More... | |
long | onCmdClickedFlow (FXObject *, FXSelector, void *) |
remove or edit flow More... | |
long | onCmdAddVehicleType (FXObject *, FXSelector, void *) |
add new vehicle type More... | |
long | onCmdClickedVehicleType (FXObject *, FXSelector, void *) |
remove or edit vehicle type More... | |
FOX-callbacks | |
event after press accept button | |
long | onKeyPress (FXObject *sender, FXSelector sel, void *ptr) |
event after press a key More... | |
long | onKeyRelease (FXObject *sender, FXSelector sel, void *ptr) |
event after release a key More... | |
Protected Member Functions | |
void | acceptChanges () |
Accept changes did in this dialog. More... | |
void | cancelChanges () |
Cancel changes did in this dialog. More... | |
void | changeAdditionalDialogHeader (const std::string &newHeader) |
change additional dialog header More... | |
GNECalibratorDialog () | |
FOX needs this. More... | |
void | initChanges () |
init a new group of changes that will be do it in dialog More... | |
FXint | openAsModalDialog (FXuint placement=PLACEMENT_CURSOR) |
execute dialog as modal More... | |
void | resetChanges () |
reset changes did in this dialog. More... | |
Protected Attributes | |
FXVerticalFrame * | myContentFrame |
frame for contents More... | |
Private Member Functions | |
GNECalibratorDialog (const GNECalibratorDialog &)=delete | |
Invalidated copy constructor. More... | |
GNECalibratorDialog & | operator= (const GNECalibratorDialog &)=delete |
Invalidated assignment operator. More... | |
void | updateFlowAndLabelButton () |
update flow and label button More... | |
void | updateFlowTable () |
update data table with flows More... | |
void | updateRouteTable () |
update data table with routes More... | |
void | updateVehicleTypeTable () |
update data table with vehicle types More... | |
Private Attributes | |
FXButton * | myAddFlow |
button for add new flow More... | |
FXButton * | myAddRoute |
button for add new route More... | |
FXButton * | myAddVehicleType |
button for add new vehicle type More... | |
GNECalibrator * | myEditedCalibrator |
pointer to edited calibrator More... | |
FXTable * | myFlowList |
list with flows More... | |
FXLabel * | myLabelFlow |
label for flows More... | |
FXTable * | myRouteList |
list with routes More... | |
FXTable * | myVehicleTypeList |
list with vehicle types More... | |
Dialog for edit calibrators.
Definition at line 52 of file GNECalibratorDialog.h.
GNECalibratorDialog::GNECalibratorDialog | ( | GNECalibrator * | editedCalibrator | ) |
FOX-declaration.
Constructor
Definition at line 70 of file GNECalibratorDialog.cpp.
References GUIIconSubSys::getIcon(), GUIDesignAuxiliarFrame, GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonIcon, GUIDesignLabelThick, GUIDesignTableAdditionals, GUIDesignUniformHorizontalFrame, ICON_ADD, MID_GNE_CALIBRATORDIALOG_ADD_FLOW, MID_GNE_CALIBRATORDIALOG_ADD_ROUTE, MID_GNE_CALIBRATORDIALOG_ADD_VEHICLETYPE, MID_GNE_CALIBRATORDIALOG_TABLE_FLOW, MID_GNE_CALIBRATORDIALOG_TABLE_ROUTE, MID_GNE_CALIBRATORDIALOG_TABLE_VEHICLETYPE, SUMO_TAG_FLOW, SUMO_TAG_ROUTE, SUMO_TAG_VTYPE, and toString().
GNECalibratorDialog::~GNECalibratorDialog | ( | ) |
destructor
Definition at line 125 of file GNECalibratorDialog.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 98 of file GNECalibratorDialog.h.
|
privatedelete |
Invalidated copy constructor.
|
protectedinherited |
Accept changes did in this dialog.
Definition at line 124 of file GNEAdditionalDialog.cpp.
References GNEAdditionalDialog::myUndoList, GNEUndoList::p_abortLastCommandGroup(), and GNEUndoList::p_end().
Referenced by GNECalibratorFlowDialog::onCmdAccept(), GNECalibratorVehicleTypeDialog::onCmdAccept(), GNECalibratorRouteDialog::onCmdAccept(), GNERerouterDialog::onCmdAccept(), onCmdAccept(), GNERerouterIntervalDialog::onCmdAccept(), and GNEVariableSpeedSignDialog::onCmdAccept().
|
protectedinherited |
Cancel changes did in this dialog.
Definition at line 135 of file GNEAdditionalDialog.cpp.
References GNEAdditionalDialog::myUndoList, and GNEUndoList::p_abortLastCommandGroup().
Referenced by GNECalibratorFlowDialog::onCmdCancel(), GNECalibratorVehicleTypeDialog::onCmdCancel(), GNECalibratorRouteDialog::onCmdCancel(), GNERerouterDialog::onCmdCancel(), onCmdCancel(), GNERerouterIntervalDialog::onCmdCancel(), and GNEVariableSpeedSignDialog::onCmdCancel().
|
protectedinherited |
change additional dialog header
Definition at line 108 of file GNEAdditionalDialog.cpp.
GNECalibrator * GNECalibratorDialog::getEditedCalibrator | ( | ) | const |
get edited calibrator
Definition at line 129 of file GNECalibratorDialog.cpp.
References myEditedCalibrator.
|
protectedinherited |
init a new group of changes that will be do it in dialog
Definition at line 115 of file GNEAdditionalDialog.cpp.
References GNEUndoList::currentCommandGroupSize(), GNEAdditionalDialog::myChangesDescription, GNEAdditionalDialog::myNumberOfChanges, GNEAdditionalDialog::myUndoList, and GNEUndoList::p_begin().
|
virtual |
Implements GNEAdditionalDialog.
Definition at line 135 of file GNECalibratorDialog.cpp.
References GNEAdditionalDialog::acceptChanges().
long GNECalibratorDialog::onCmdAddFlow | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
add new flow
Definition at line 245 of file GNECalibratorDialog.cpp.
References GNECalibrator::getCalibratorRoutes(), GNECalibrator::getCalibratorVehicleTypes(), myEditedCalibrator, and updateFlowTable().
long GNECalibratorDialog::onCmdAddRoute | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
add new route
Definition at line 167 of file GNECalibratorDialog.cpp.
References updateRouteTable().
long GNECalibratorDialog::onCmdAddVehicleType | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
add new vehicle type
Definition at line 283 of file GNECalibratorDialog.cpp.
References updateVehicleTypeTable().
|
virtual |
event after press cancel button
Implements GNEAdditionalDialog.
Definition at line 145 of file GNECalibratorDialog.cpp.
References GNEAdditionalDialog::cancelChanges().
long GNECalibratorDialog::onCmdClickedFlow | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
remove or edit flow
Definition at line 260 of file GNECalibratorDialog.cpp.
References GNECalibrator::getCalibratorFlows(), GNEViewNet::getUndoList(), GNEAdditional::getViewNet(), myEditedCalibrator, myFlowList, and updateFlowTable().
long GNECalibratorDialog::onCmdClickedRoute | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
remove or edit route
Definition at line 177 of file GNECalibratorDialog.cpp.
References OptionsCont::getBool(), GNECalibrator::getCalibratorFlows(), GNECalibrator::getCalibratorRoutes(), OptionsCont::getOptions(), GNEViewNet::getUndoList(), GNEAdditional::getViewNet(), myEditedCalibrator, myRouteList, SUMO_ATTR_ROUTE, SUMO_TAG_FLOW, SUMO_TAG_ROUTE, toString(), updateFlowTable(), updateRouteTable(), and WRITE_WARNING.
long GNECalibratorDialog::onCmdClickedVehicleType | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
remove or edit vehicle type
Definition at line 293 of file GNECalibratorDialog.cpp.
References OptionsCont::getBool(), GNECalibrator::getCalibratorFlows(), GNECalibrator::getCalibratorVehicleTypes(), OptionsCont::getOptions(), GNEViewNet::getUndoList(), GNEAdditional::getViewNet(), myEditedCalibrator, myRouteList, myVehicleTypeList, SUMO_ATTR_TYPE, SUMO_TAG_FLOW, SUMO_TAG_ROUTE, toString(), updateFlowTable(), updateVehicleTypeTable(), and WRITE_WARNING.
|
virtual |
event after press reset button
Implements GNEAdditionalDialog.
Definition at line 155 of file GNECalibratorDialog.cpp.
References GNEAdditionalDialog::resetChanges(), updateFlowTable(), updateRouteTable(), and updateVehicleTypeTable().
|
inherited |
event after press a key
Definition at line 96 of file GNEAdditionalDialog.cpp.
|
inherited |
event after release a key
Definition at line 102 of file GNEAdditionalDialog.cpp.
|
protectedinherited |
execute dialog as modal
Definition at line 83 of file GNEAdditionalDialog.cpp.
|
privatedelete |
Invalidated assignment operator.
|
protectedinherited |
reset changes did in this dialog.
Definition at line 141 of file GNEAdditionalDialog.cpp.
References GNEAdditionalDialog::myChangesDescription, GNEAdditionalDialog::myUndoList, GNEUndoList::p_abortLastCommandGroup(), and GNEUndoList::p_begin().
Referenced by GNECalibratorFlowDialog::onCmdReset(), GNECalibratorVehicleTypeDialog::onCmdReset(), GNECalibratorRouteDialog::onCmdReset(), GNERerouterDialog::onCmdReset(), onCmdReset(), GNERerouterIntervalDialog::onCmdReset(), and GNEVariableSpeedSignDialog::onCmdReset().
|
private |
update flow and label button
Definition at line 477 of file GNECalibratorDialog.cpp.
References GNECalibrator::getCalibratorRoutes(), GNECalibrator::getCalibratorVehicleTypes(), myAddFlow, myEditedCalibrator, myFlowList, myLabelFlow, SUMO_TAG_FLOW, SUMO_TAG_ROUTE, SUMO_TAG_VTYPE, and toString().
Referenced by updateFlowTable(), updateRouteTable(), and updateVehicleTypeTable().
|
private |
update data table with flows
Definition at line 395 of file GNECalibratorDialog.cpp.
References GNECalibrator::getCalibratorFlows(), GUIIconSubSys::getIcon(), GUIDesignTableIconCellWidth, ICON_REMOVE, myEditedCalibrator, myFlowList, SUMO_ATTR_ID, SUMO_ATTR_ROUTE, SUMO_ATTR_TYPE, SUMO_ATTR_VCLASS, toString(), and updateFlowAndLabelButton().
Referenced by onCmdAddFlow(), onCmdClickedFlow(), onCmdClickedRoute(), onCmdClickedVehicleType(), and onCmdReset().
|
private |
update data table with routes
Definition at line 356 of file GNECalibratorDialog.cpp.
References GNECalibrator::getCalibratorRoutes(), GUIIconSubSys::getIcon(), GUIDesignTableIconCellWidth, ICON_REMOVE, myEditedCalibrator, myRouteList, SUMO_ATTR_EDGES, SUMO_ATTR_ID, toString(), and updateFlowAndLabelButton().
Referenced by onCmdAddRoute(), onCmdClickedRoute(), and onCmdReset().
|
private |
update data table with vehicle types
Definition at line 439 of file GNECalibratorDialog.cpp.
References GNECalibrator::getCalibratorVehicleTypes(), GUIIconSubSys::getIcon(), GUIDesignTableIconCellWidth, ICON_REMOVE, myEditedCalibrator, myVehicleTypeList, SUMO_ATTR_ID, SUMO_ATTR_VCLASS, toString(), and updateFlowAndLabelButton().
Referenced by onCmdAddVehicleType(), onCmdClickedVehicleType(), and onCmdReset().
|
private |
button for add new flow
Definition at line 114 of file GNECalibratorDialog.h.
Referenced by updateFlowAndLabelButton().
|
private |
button for add new route
Definition at line 105 of file GNECalibratorDialog.h.
|
private |
button for add new vehicle type
Definition at line 120 of file GNECalibratorDialog.h.
|
protectedinherited |
frame for contents
Definition at line 86 of file GNEAdditionalDialog.h.
|
private |
pointer to edited calibrator
Definition at line 102 of file GNECalibratorDialog.h.
Referenced by getEditedCalibrator(), onCmdAddFlow(), onCmdClickedFlow(), onCmdClickedRoute(), onCmdClickedVehicleType(), updateFlowAndLabelButton(), updateFlowTable(), updateRouteTable(), and updateVehicleTypeTable().
|
private |
list with flows
Definition at line 117 of file GNECalibratorDialog.h.
Referenced by onCmdClickedFlow(), updateFlowAndLabelButton(), and updateFlowTable().
|
private |
label for flows
Definition at line 111 of file GNECalibratorDialog.h.
Referenced by updateFlowAndLabelButton().
|
private |
list with routes
Definition at line 108 of file GNECalibratorDialog.h.
Referenced by onCmdClickedRoute(), onCmdClickedVehicleType(), and updateRouteTable().
|
private |
list with vehicle types
Definition at line 123 of file GNECalibratorDialog.h.
Referenced by onCmdClickedVehicleType(), and updateVehicleTypeTable().