Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEVariableSpeedSignDialog.h>
Public Member Functions | |
GNEAdditional * | getEditedAdditional () const |
get edited Additional | |
GNEVariableSpeedSignDialog (GNEVariableSpeedSign *editedVariableSpeedSign) | |
FOX-declaration. | |
~GNEVariableSpeedSignDialog () | |
destructor | |
FOX-callbacks | |
event called after press add row button | |
long | onCmdAddStep (FXObject *, FXSelector, void *) |
long | onCmdEditStep (FXObject *, FXSelector, void *) |
event called after edit row | |
long | onCmdClickedStep (FXObject *, FXSelector, void *) |
event called after clicked a row | |
long | onCmdSortSteps (FXObject *, FXSelector, void *) |
event called after clicked over sort step button | |
long | onCmdAccept (FXObject *, FXSelector, void *) |
event called after press accept button | |
long | onCmdCancel (FXObject *, FXSelector, void *) |
event called after press cancel button | |
long | onCmdReset (FXObject *, FXSelector, void *) |
event called after press cancel button | |
FOX-callbacks | |
event after press accept button | |
long | onKeyPress (FXObject *sender, FXSelector sel, void *ptr) |
event after press a key | |
long | onKeyRelease (FXObject *sender, FXSelector sel, void *ptr) |
event after release a key | |
Protected Member Functions | |
void | acceptChanges () |
Accept changes did in this dialog. | |
void | cancelChanges () |
Cancel changes did in this dialog. | |
void | changeAdditionalDialogHeader (const std::string &newHeader) |
change additional dialog header | |
void | initChanges () |
init a new group of changes that will be do it in dialog | |
FXint | openAsModalDialog (FXuint placement=PLACEMENT_CURSOR) |
execute dialog as modal | |
void | resetChanges () |
reset changes did in this dialog. | |
Protected Attributes | |
FXButton * | myAddStepButton |
Button for insert row. | |
FXVerticalFrame * | myContentFrame |
frame for contents | |
GNEAdditional * | myEditedAdditional |
pointer to edited additional | |
FXButton * | mySortStepButton |
Button for sort row. | |
FXTable * | myStepsTable |
Table with the data. | |
bool | myStepsValids |
bool | myUpdatingElement |
flag to indicate if additional are being created or modified (cannot be changed after open dialog) | |
Private Member Functions | |
GNEVariableSpeedSignDialog (const GNEVariableSpeedSignDialog &)=delete | |
Invalidated copy constructor. | |
GNEVariableSpeedSignDialog & | operator= (const GNEVariableSpeedSignDialog &)=delete |
Invalidated assignment operator. | |
void | updateTableSteps () |
update data table | |
Private Attributes | |
FXButton * | myAcceptButton |
accept button | |
FXButton * | myCancelButton |
cancel button | |
std::string | myChangesDescription |
description of changes did in this additional dialog | |
int | myNumberOfChanges |
number of GNEChanges_... in dialog | |
FXButton * | myResetButton |
cancel button | |
Definition at line 42 of file GNEVariableSpeedSignDialog.h.
GNEVariableSpeedSignDialog::GNEVariableSpeedSignDialog | ( | GNEVariableSpeedSign * | editedVariableSpeedSign | ) |
FOX-declaration.
constructor
Definition at line 52 of file GNEVariableSpeedSignDialog.cpp.
References ADD, GUIDesigns::buildFXButton(), GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonIcon, GUIDesignLabelThick, GUIDesignTableAdditionals, MID_GNE_VARIABLESPEEDSIGN_ADDROW, MID_GNE_VARIABLESPEEDSIGN_SORT, MID_GNE_VARIABLESPEEDSIGN_TABLE, RELOAD, SUMO_TAG_STEP, and toString().
GNEVariableSpeedSignDialog::~GNEVariableSpeedSignDialog | ( | ) |
destructor
Definition at line 76 of file GNEVariableSpeedSignDialog.cpp.
|
privatedelete |
Invalidated copy constructor.
|
protectedinherited |
Accept changes did in this dialog.
Definition at line 123 of file GNEAdditionalDialog.cpp.
References GNEUndoList::abortLastChangeGroup(), GNEUndoList::end(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), and GNEAdditionalDialog::myEditedAdditional.
Referenced by GNECalibratorDialog::onCmdAccept(), GNECalibratorFlowDialog::onCmdAccept(), GNERerouterDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAccept(), and onCmdAccept().
|
protectedinherited |
Cancel changes did in this dialog.
Definition at line 134 of file GNEAdditionalDialog.cpp.
References GNEUndoList::abortLastChangeGroup(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), and GNEAdditionalDialog::myEditedAdditional.
Referenced by GNECalibratorDialog::onCmdCancel(), GNECalibratorFlowDialog::onCmdCancel(), GNERerouterDialog::onCmdCancel(), GNERerouterIntervalDialog::onCmdCancel(), and onCmdCancel().
|
protectedinherited |
change additional dialog header
Definition at line 107 of file GNEAdditionalDialog.cpp.
|
inherited |
get edited Additional
Definition at line 89 of file GNEAdditionalDialog.cpp.
References GNEAdditionalDialog::myEditedAdditional.
|
protectedinherited |
init a new group of changes that will be do it in dialog
Definition at line 114 of file GNEAdditionalDialog.cpp.
References GNEUndoList::begin(), GNEUndoList::currentCommandGroupSize(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEAdditionalDialog::myChangesDescription, GNEAdditionalDialog::myEditedAdditional, and GNEAdditionalDialog::myNumberOfChanges.
|
virtual |
event called after press accept button
Implements GNEAdditionalDialog.
Definition at line 159 of file GNEVariableSpeedSignDialog.cpp.
References GNEAdditionalDialog::acceptChanges(), myStepsValids, SUMO_TAG_STEP, SUMO_TAG_VSS, toString(), and WRITE_DEBUG.
long GNEVariableSpeedSignDialog::onCmdAddStep | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 80 of file GNEVariableSpeedSignDialog.cpp.
References GNEUndoList::add(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEAdditionalDialog::myEditedAdditional, and updateTableSteps().
Referenced by FXDEFMAP().
|
virtual |
event called after press cancel button
Implements GNEAdditionalDialog.
Definition at line 180 of file GNEVariableSpeedSignDialog.cpp.
References GNEAdditionalDialog::cancelChanges().
long GNEVariableSpeedSignDialog::onCmdClickedStep | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event called after clicked a row
Definition at line 128 of file GNEVariableSpeedSignDialog.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::getChildAdditionals(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEAdditionalDialog::myEditedAdditional, myStepsTable, and updateTableSteps().
Referenced by FXDEFMAP().
long GNEVariableSpeedSignDialog::onCmdEditStep | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event called after edit row
Definition at line 92 of file GNEVariableSpeedSignDialog.cpp.
References CORRECT, GNEHierarchicalElement::getChildAdditionals(), GUIIconSubSys::getIcon(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), INCORRECT, GNEAdditional::isValid(), GNEAdditionalDialog::myEditedAdditional, myStepsTable, myStepsValids, GNEAdditional::setAttribute(), SUMO_ATTR_SPEED, SUMO_ATTR_TIME, and toString().
Referenced by FXDEFMAP().
|
virtual |
event called after press cancel button
Implements GNEAdditionalDialog.
Definition at line 190 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 151 of file GNEVariableSpeedSignDialog.cpp.
References updateTableSteps().
Referenced by FXDEFMAP().
|
inherited |
event after press a key
Definition at line 95 of file GNEAdditionalDialog.cpp.
Referenced by FXDEFMAP().
|
inherited |
event after release a key
Definition at line 101 of file GNEAdditionalDialog.cpp.
Referenced by FXDEFMAP().
|
protectedinherited |
execute dialog as modal
Definition at line 76 of file GNEAdditionalDialog.cpp.
|
privatedelete |
Invalidated assignment operator.
|
protectedinherited |
reset changes did in this dialog.
Definition at line 140 of file GNEAdditionalDialog.cpp.
References GNEUndoList::abortLastChangeGroup(), GNEUndoList::begin(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEAdditionalDialog::myChangesDescription, and GNEAdditionalDialog::myEditedAdditional.
Referenced by GNECalibratorDialog::onCmdReset(), GNECalibratorFlowDialog::onCmdReset(), GNERerouterDialog::onCmdReset(), GNERerouterIntervalDialog::onCmdReset(), and onCmdReset().
|
private |
update data table
Definition at line 200 of file GNEVariableSpeedSignDialog.cpp.
References CORRECT, GNEHierarchicalElement::getChildAdditionals(), GUIIconSubSys::getIcon(), GUIDesignHeight, GNEAdditionalDialog::myEditedAdditional, myStepsTable, REMOVE, SUMO_ATTR_SPEED, and SUMO_ATTR_TIME.
Referenced by onCmdAddStep(), onCmdClickedStep(), onCmdReset(), and onCmdSortSteps().
|
privateinherited |
accept button
Definition at line 107 of file GNEAdditionalDialog.h.
|
protected |
Button for insert row.
Definition at line 84 of file GNEVariableSpeedSignDialog.h.
|
privateinherited |
cancel button
Definition at line 110 of file GNEAdditionalDialog.h.
|
privateinherited |
description of changes did in this additional dialog
Definition at line 116 of file GNEAdditionalDialog.h.
Referenced by GNEAdditionalDialog::initChanges(), and GNEAdditionalDialog::resetChanges().
|
protectedinherited |
frame for contents
Definition at line 85 of file GNEAdditionalDialog.h.
|
protectedinherited |
pointer to edited additional
Definition at line 79 of file GNEAdditionalDialog.h.
Referenced by GNEAdditionalDialog::acceptChanges(), GNEAdditionalDialog::cancelChanges(), GNEAdditionalDialog::getEditedAdditional(), GNEAdditionalDialog::initChanges(), GNECalibratorFlowDialog::onCmdAccept(), GNERerouterDialog::onCmdAccept(), GNERerouterIntervalDialog::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(), GNEAdditionalDialog::resetChanges(), GNECalibratorFlowDialog::updateCalibratorFlowValues(), GNECalibratorDialog::updateFlowAndLabelButton(), GNECalibratorDialog::updateFlowTable(), GNERerouterDialog::updateIntervalTable(), GNECalibratorDialog::updateRouteTable(), updateTableSteps(), and GNECalibratorDialog::updateVehicleTypeTable().
|
privateinherited |
number of GNEChanges_... in dialog
Definition at line 119 of file GNEAdditionalDialog.h.
Referenced by GNEAdditionalDialog::initChanges().
|
privateinherited |
cancel button
Definition at line 113 of file GNEAdditionalDialog.h.
|
protected |
Button for sort row.
Definition at line 87 of file GNEVariableSpeedSignDialog.h.
|
protected |
Table with the data.
Definition at line 81 of file GNEVariableSpeedSignDialog.h.
Referenced by onCmdClickedStep(), onCmdEditStep(), and updateTableSteps().
|
protected |
Definition at line 90 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 82 of file GNEAdditionalDialog.h.
Referenced by GNECalibratorFlowDialog::onCmdAccept(), and GNERerouterIntervalDialog::onCmdAccept().