![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEVariableSpeedSignDialog.h>
Public Member Functions | |
GNEVariableSpeedSign * | getEditedVariableSpeedSign () const |
get edited Variable Speed Sign 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 | 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... | |
FXHorizontalFrame * | myAddStepFrame |
Horizontal frame for row elements. More... | |
FXVerticalFrame * | myContentFrame |
frame for contents More... | |
GNEVariableSpeedSign * | myEditedVariableSpeedSign |
Pointer to Variable Speed Signal. More... | |
FXTable * | myStepsTable |
Table with the data. More... | |
bool | myStepsValids |
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 51 of file GNEVariableSpeedSignDialog.h.
GNEVariableSpeedSignDialog::GNEVariableSpeedSignDialog | ( | GNEVariableSpeedSign * | editedVariableSpeedSign | ) |
FOX-declaration.
constructor
Definition at line 61 of file GNEVariableSpeedSignDialog.cpp.
References GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonIcon, GUIDesignLabelThick, GUIDesignTableAdditionals, ICON_ADD, MID_GNE_VARIABLESPEEDSIGN_ADDROW, MID_GNE_VARIABLESPEEDSIGN_TABLE_STEPS, SUMO_TAG_STEP, and toString().
GNEVariableSpeedSignDialog::~GNEVariableSpeedSignDialog | ( | ) |
destructor
Definition at line 88 of file GNEVariableSpeedSignDialog.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 88 of file GNEVariableSpeedSignDialog.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(), GNECalibratorDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAccept(), and 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(), GNECalibratorDialog::onCmdCancel(), GNERerouterIntervalDialog::onCmdCancel(), and onCmdCancel().
|
protectedinherited |
change additional dialog header
Definition at line 108 of file GNEAdditionalDialog.cpp.
GNEVariableSpeedSign * GNEVariableSpeedSignDialog::getEditedVariableSpeedSign | ( | ) | const |
get edited Variable Speed Sign
Definition at line 92 of file GNEVariableSpeedSignDialog.cpp.
References myEditedVariableSpeedSign.
Referenced by GNEVariableSpeedSignStep::GNEVariableSpeedSignStep().
|
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 |
event called after press accept button
Implements GNEAdditionalDialog.
Definition at line 151 of file GNEVariableSpeedSignDialog.cpp.
References GNEAdditionalDialog::acceptChanges(), OptionsCont::getOptions(), myEditedVariableSpeedSign, myStepsValids, GNEVariableSpeedSign::sortVariableSpeedSignSteps(), SUMO_TAG_STEP, SUMO_TAG_VSS, toString(), and WRITE_WARNING.
long GNEVariableSpeedSignDialog::onCmdAddStep | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 98 of file GNEVariableSpeedSignDialog.cpp.
References GNEViewNet::getUndoList(), GNEAdditional::getViewNet(), myEditedVariableSpeedSign, and updateTableSteps().
|
virtual |
event called after press cancel button
Implements GNEAdditionalDialog.
Definition at line 179 of file GNEVariableSpeedSignDialog.cpp.
References GNEAdditionalDialog::cancelChanges().
long GNEVariableSpeedSignDialog::onCmdClickedStep | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event called after clicked a row
Definition at line 135 of file GNEVariableSpeedSignDialog.cpp.
References GNEViewNet::getUndoList(), GNEVariableSpeedSign::getVariableSpeedSignSteps(), GNEAdditional::getViewNet(), myEditedVariableSpeedSign, myStepsTable, and updateTableSteps().
long GNEVariableSpeedSignDialog::onCmdEditStep | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event called after edit row
Definition at line 109 of file GNEVariableSpeedSignDialog.cpp.
References GUIIconSubSys::getIcon(), GNEViewNet::getUndoList(), GNEVariableSpeedSign::getVariableSpeedSignSteps(), GNEAdditional::getViewNet(), ICON_CORRECT, ICON_ERROR, GNEVariableSpeedSignStep::isValid(), myEditedVariableSpeedSign, myStepsTable, myStepsValids, GNEVariableSpeedSignStep::setAttribute(), SUMO_ATTR_SPEED, and SUMO_ATTR_TIME.
|
virtual |
event called after press cancel button
Implements GNEAdditionalDialog.
Definition at line 189 of file GNEVariableSpeedSignDialog.cpp.
References GNEAdditionalDialog::resetChanges(), and updateTableSteps().
|
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(), GNECalibratorDialog::onCmdReset(), GNERerouterIntervalDialog::onCmdReset(), and onCmdReset().
|
private |
update data table
Definition at line 199 of file GNEVariableSpeedSignDialog.cpp.
References GUIIconSubSys::getIcon(), GNEVariableSpeedSign::getVariableSpeedSignSteps(), GUIDesignTableIconCellWidth, ICON_CORRECT, ICON_REMOVE, myEditedVariableSpeedSign, myStepsTable, SUMO_ATTR_SPEED, and SUMO_ATTR_TIME.
Referenced by onCmdAddStep(), onCmdClickedStep(), and onCmdReset().
|
protected |
Button for insert row.
Definition at line 100 of file GNEVariableSpeedSignDialog.h.
|
protected |
Horizontal frame for row elements.
Definition at line 97 of file GNEVariableSpeedSignDialog.h.
|
protectedinherited |
frame for contents
Definition at line 86 of file GNEAdditionalDialog.h.
|
protected |
Pointer to Variable Speed Signal.
Definition at line 91 of file GNEVariableSpeedSignDialog.h.
Referenced by getEditedVariableSpeedSign(), onCmdAccept(), onCmdAddStep(), onCmdClickedStep(), onCmdEditStep(), and updateTableSteps().
|
protected |
Table with the data.
Definition at line 94 of file GNEVariableSpeedSignDialog.h.
Referenced by onCmdClickedStep(), onCmdEditStep(), and updateTableSteps().
|
protected |
Definition at line 102 of file GNEVariableSpeedSignDialog.h.
Referenced by onCmdAccept(), and onCmdEditStep().