![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEVariableSpeedSignDialog.h>
Public Member Functions | |
GNEAdditional * | getEditedAdditional () const |
get edited Additional More... | |
GNEVariableSpeedSignDialog (GNEVariableSpeedSign *editedVariableSpeedSign) | |
FOX-declaration. More... | |
~GNEVariableSpeedSignDialog () | |
destructor More... | |
FOX-callbacks | |
event called after press add row button | |
long | onCmdAddStep (FXObject *, FXSelector, void *) |
long | onCmdEditStep (FXObject *, FXSelector, void *) |
event called after edit row More... | |
long | onCmdClickedStep (FXObject *, FXSelector, void *) |
event called after clicked a row More... | |
long | onCmdSortSteps (FXObject *, FXSelector, void *) |
event called after clicked over sort step button More... | |
long | onCmdAccept (FXObject *, FXSelector, void *) |
event called after press accept button More... | |
long | onCmdCancel (FXObject *, FXSelector, void *) |
event called after press cancel button More... | |
long | onCmdReset (FXObject *, FXSelector, void *) |
event called after press cancel button 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... | |
GNEVariableSpeedSignDialog () | |
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 | |
FXButton * | myAddStepButton |
Button for insert row. More... | |
FXVerticalFrame * | myContentFrame |
frame for contents More... | |
GNEAdditional * | myEditedAdditional |
pointer to edited aditional More... | |
FXButton * | mySortStepButton |
Button for sort row. More... | |
FXTable * | myStepsTable |
Table with the data. More... | |
bool | myStepsValids |
bool | myUpdatingElement |
flag to indicate if additional are being created or modified (cannot be changed after open dialog) More... | |
Private Member Functions | |
GNEVariableSpeedSignDialog (const GNEVariableSpeedSignDialog &)=delete | |
Invalidated copy constructor. More... | |
GNEVariableSpeedSignDialog & | operator= (const GNEVariableSpeedSignDialog &)=delete |
Invalidated assignment operator. More... | |
void | updateTableSteps () |
update data table More... | |
Definition at line 45 of file GNEVariableSpeedSignDialog.h.
GNEVariableSpeedSignDialog::GNEVariableSpeedSignDialog | ( | GNEVariableSpeedSign * | editedVariableSpeedSign | ) |
FOX-declaration.
constructor
Definition at line 53 of file GNEVariableSpeedSignDialog.cpp.
References GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonIcon, GUIDesignLabelThick, GUIDesignTableAdditionals, ICON_ADD, ICON_RELOAD, MID_GNE_VARIABLESPEEDSIGN_ADDROW, MID_GNE_VARIABLESPEEDSIGN_SORT, MID_GNE_VARIABLESPEEDSIGN_TABLE, SUMO_TAG_STEP, and toString().
GNEVariableSpeedSignDialog::~GNEVariableSpeedSignDialog | ( | ) |
destructor
Definition at line 82 of file GNEVariableSpeedSignDialog.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 82 of file GNEVariableSpeedSignDialog.h.
|
privatedelete |
Invalidated copy constructor.
|
protectedinherited |
Accept changes did in this dialog.
Definition at line 125 of file GNEAdditionalDialog.cpp.
References GNEViewNet::getUndoList(), GNEAdditional::getViewNet(), GNEAdditionalDialog::myEditedAdditional, GNEUndoList::p_abortLastCommandGroup(), and GNEUndoList::p_end().
Referenced by GNECalibratorFlowDialog::onCmdAccept(), GNERerouterDialog::onCmdAccept(), GNECalibratorDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAccept(), and onCmdAccept().
|
protectedinherited |
Cancel changes did in this dialog.
Definition at line 136 of file GNEAdditionalDialog.cpp.
References GNEViewNet::getUndoList(), GNEAdditional::getViewNet(), GNEAdditionalDialog::myEditedAdditional, and GNEUndoList::p_abortLastCommandGroup().
Referenced by GNECalibratorFlowDialog::onCmdCancel(), GNERerouterDialog::onCmdCancel(), GNECalibratorDialog::onCmdCancel(), GNERerouterIntervalDialog::onCmdCancel(), and onCmdCancel().
|
protectedinherited |
change additional dialog header
Definition at line 109 of file GNEAdditionalDialog.cpp.
|
inherited |
get edited Additional
Definition at line 91 of file GNEAdditionalDialog.cpp.
References GNEAdditionalDialog::myEditedAdditional.
|
protectedinherited |
init a new group of changes that will be do it in dialog
Definition at line 116 of file GNEAdditionalDialog.cpp.
References GNEUndoList::currentCommandGroupSize(), GNEViewNet::getUndoList(), GNEAdditional::getViewNet(), GNEAdditionalDialog::myChangesDescription, GNEAdditionalDialog::myEditedAdditional, GNEAdditionalDialog::myNumberOfChanges, and GNEUndoList::p_begin().
|
virtual |
event called after press accept button
Implements GNEAdditionalDialog.
Definition at line 152 of file GNEVariableSpeedSignDialog.cpp.
References GNEAdditionalDialog::acceptChanges(), GNEAdditionalDialog::myEditedAdditional, myStepsValids, GNEHierarchicalElementChildren::sortAdditionalChildren(), SUMO_TAG_STEP, SUMO_TAG_VSS, toString(), and WRITE_DEBUG.
long GNEVariableSpeedSignDialog::onCmdAddStep | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 86 of file GNEVariableSpeedSignDialog.cpp.
References GNEViewNet::getUndoList(), GNEAdditional::getViewNet(), GNEAdditionalDialog::myEditedAdditional, and updateTableSteps().
|
virtual |
event called after press cancel button
Implements GNEAdditionalDialog.
Definition at line 175 of file GNEVariableSpeedSignDialog.cpp.
References GNEAdditionalDialog::cancelChanges().
long GNEVariableSpeedSignDialog::onCmdClickedStep | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event called after clicked a row
Definition at line 126 of file GNEVariableSpeedSignDialog.cpp.
References GNEHierarchicalElementChildren::getAdditionalChildren(), GNEViewNet::getUndoList(), GNEAdditional::getViewNet(), GNEAdditionalDialog::myEditedAdditional, myStepsTable, and updateTableSteps().
long GNEVariableSpeedSignDialog::onCmdEditStep | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event called after edit row
Definition at line 97 of file GNEVariableSpeedSignDialog.cpp.
References GNEHierarchicalElementChildren::getAdditionalChildren(), GUIIconSubSys::getIcon(), GNEViewNet::getUndoList(), GNEAdditional::getViewNet(), ICON_CORRECT, ICON_ERROR, GNEAdditional::isValid(), GNEAdditionalDialog::myEditedAdditional, myStepsTable, myStepsValids, GNEAdditional::setAttribute(), SUMO_ATTR_SPEED, SUMO_ATTR_TIME, and toString().
|
virtual |
event called after press cancel button
Implements GNEAdditionalDialog.
Definition at line 185 of file GNEVariableSpeedSignDialog.cpp.
References GNEAdditionalDialog::resetChanges(), and updateTableSteps().
long GNEVariableSpeedSignDialog::onCmdSortSteps | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event called after clicked over sort step button
Definition at line 142 of file GNEVariableSpeedSignDialog.cpp.
References GNEAdditionalDialog::myEditedAdditional, GNEHierarchicalElementChildren::sortAdditionalChildren(), and updateTableSteps().
|
inherited |
event after press a key
Definition at line 97 of file GNEAdditionalDialog.cpp.
|
inherited |
event after release a key
Definition at line 103 of file GNEAdditionalDialog.cpp.
|
protectedinherited |
execute dialog as modal
Definition at line 78 of file GNEAdditionalDialog.cpp.
|
privatedelete |
Invalidated assignment operator.
|
protectedinherited |
reset changes did in this dialog.
Definition at line 142 of file GNEAdditionalDialog.cpp.
References GNEViewNet::getUndoList(), GNEAdditional::getViewNet(), GNEAdditionalDialog::myChangesDescription, GNEAdditionalDialog::myEditedAdditional, GNEUndoList::p_abortLastCommandGroup(), and GNEUndoList::p_begin().
Referenced by GNECalibratorFlowDialog::onCmdReset(), GNERerouterDialog::onCmdReset(), GNECalibratorDialog::onCmdReset(), GNERerouterIntervalDialog::onCmdReset(), and onCmdReset().
|
private |
update data table
Definition at line 195 of file GNEVariableSpeedSignDialog.cpp.
References GNEHierarchicalElementChildren::getAdditionalChildren(), GUIIconSubSys::getIcon(), GUIDesignTableIconCellWidth, ICON_CORRECT, ICON_REMOVE, GNEAdditionalDialog::myEditedAdditional, myStepsTable, SUMO_ATTR_SPEED, and SUMO_ATTR_TIME.
Referenced by onCmdAddStep(), onCmdClickedStep(), onCmdReset(), and onCmdSortSteps().
|
protected |
Button for insert row.
Definition at line 88 of file GNEVariableSpeedSignDialog.h.
|
protectedinherited |
frame for contents
Definition at line 89 of file GNEAdditionalDialog.h.
|
protectedinherited |
pointer to edited aditional
Definition at line 83 of file GNEAdditionalDialog.h.
Referenced by GNEAdditionalDialog::acceptChanges(), GNEAdditionalDialog::cancelChanges(), GNEAdditionalDialog::getEditedAdditional(), GNEAdditionalDialog::initChanges(), GNECalibratorFlowDialog::onCmdAccept(), GNERerouterDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAccept(), onCmdAccept(), GNERerouterIntervalDialog::onCmdAddClosingLaneReroute(), GNERerouterIntervalDialog::onCmdAddClosingReroute(), GNERerouterIntervalDialog::onCmdAddDestProbReroute(), GNECalibratorDialog::onCmdAddFlow(), GNERerouterIntervalDialog::onCmdAddParkingAreaReroute(), GNECalibratorDialog::onCmdAddRoute(), GNERerouterIntervalDialog::onCmdAddRouteProbReroute(), onCmdAddStep(), GNECalibratorDialog::onCmdAddVehicleType(), GNERerouterIntervalDialog::onCmdChangeBeginEnd(), GNERerouterIntervalDialog::onCmdClickedClosingLaneReroute(), GNERerouterIntervalDialog::onCmdClickedClosingReroute(), GNERerouterIntervalDialog::onCmdClickedDestProbReroute(), GNECalibratorDialog::onCmdClickedFlow(), GNERerouterDialog::onCmdClickedInterval(), GNERerouterIntervalDialog::onCmdClickedParkingAreaReroute(), GNECalibratorDialog::onCmdClickedRoute(), GNERerouterIntervalDialog::onCmdClickedRouteProbReroute(), onCmdClickedStep(), GNECalibratorDialog::onCmdClickedVehicleType(), GNERerouterIntervalDialog::onCmdEditClosingLaneReroute(), GNERerouterIntervalDialog::onCmdEditClosingReroute(), GNERerouterIntervalDialog::onCmdEditDestProbReroute(), GNERerouterIntervalDialog::onCmdEditParkingAreaReroute(), GNERerouterIntervalDialog::onCmdEditRouteProbReroute(), onCmdEditStep(), GNECalibratorFlowDialog::onCmdSetVariable(), GNERerouterDialog::onCmdSortIntervals(), onCmdSortSteps(), GNEAdditionalDialog::resetChanges(), GNECalibratorFlowDialog::updateCalibratorFlowValues(), GNECalibratorDialog::updateFlowAndLabelButton(), GNECalibratorDialog::updateFlowTable(), GNERerouterDialog::updateIntervalTable(), GNECalibratorDialog::updateRouteTable(), updateTableSteps(), and GNECalibratorDialog::updateVehicleTypeTable().
|
protected |
Button for sort row.
Definition at line 91 of file GNEVariableSpeedSignDialog.h.
|
protected |
Table with the data.
Definition at line 85 of file GNEVariableSpeedSignDialog.h.
Referenced by onCmdClickedStep(), onCmdEditStep(), and updateTableSteps().
|
protected |
Definition at line 94 of file GNEVariableSpeedSignDialog.h.
Referenced by onCmdAccept(), and onCmdEditStep().
|
protectedinherited |
flag to indicate if additional are being created or modified (cannot be changed after open dialog)
Definition at line 86 of file GNEAdditionalDialog.h.
Referenced by GNECalibratorFlowDialog::onCmdAccept(), and GNERerouterIntervalDialog::onCmdAccept().