![]() |
SUMO - Simulation of Urban MObility
|
Dialog to edit sequences, parameters, etc.. of Additionals. More...
#include <GNEAdditionalDialog.h>
Public Member Functions | |
GNEAdditionalDialog (GNEAdditional *parent, int width, int height) | |
FOX-declaration abstract. More... | |
~GNEAdditionalDialog () | |
destructor More... | |
FOX-callbacks | |
event after press accept button | |
virtual long | onCmdAccept (FXObject *sender, FXSelector sel, void *ptr)=0 |
virtual long | onCmdCancel (FXObject *sender, FXSelector sel, void *ptr)=0 |
event after press cancel button More... | |
virtual long | onCmdReset (FXObject *, FXSelector, void *)=0 |
event after press cancel button More... | |
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... | |
GNEAdditionalDialog () | |
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 | |
GNEAdditionalDialog (const GNEAdditionalDialog &)=delete | |
Invalidated copy constructor. More... | |
GNEAdditionalDialog & | operator= (const GNEAdditionalDialog &)=delete |
Invalidated assignment operator. More... | |
Private Attributes | |
FXButton * | myAcceptButton |
accept button More... | |
FXButton * | myCancelButton |
cancel button More... | |
std::string | myChangesDescription |
description of changes did in this additional dialog More... | |
int | myNumberOfChanges |
number of GNEChanges_... in dialog More... | |
FXButton * | myResetButton |
cancel button More... | |
GNEUndoList * | myUndoList |
pointer to UndoList More... | |
Dialog to edit sequences, parameters, etc.. of Additionals.
Definition at line 51 of file GNEAdditionalDialog.h.
GNEAdditionalDialog::GNEAdditionalDialog | ( | GNEAdditional * | parent, |
int | width, | ||
int | height | ||
) |
FOX-declaration abstract.
constructor
Definition at line 60 of file GNEAdditionalDialog.cpp.
References GUIIconSubSys::getIcon(), GUIDesignAuxiliarFrame, GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonAccept, GUIDesignButtonCancel, GUIDesignButtonReset, GUIDesignContentsFrame, GUIDesignHorizontalFrame, ICON_ACCEPT, ICON_CANCEL, ICON_RESET, MID_GNE_ADDITIONALDIALOG_BUTTONACCEPT, MID_GNE_ADDITIONALDIALOG_BUTTONCANCEL, and MID_GNE_ADDITIONALDIALOG_BUTTONRESET.
GNEAdditionalDialog::~GNEAdditionalDialog | ( | ) |
destructor
Definition at line 79 of file GNEAdditionalDialog.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 83 of file GNEAdditionalDialog.h.
|
privatedelete |
Invalidated copy constructor.
|
protected |
Accept changes did in this dialog.
Definition at line 124 of file GNEAdditionalDialog.cpp.
References myUndoList, GNEUndoList::p_abortLastCommandGroup(), and GNEUndoList::p_end().
Referenced by GNECalibratorFlowDialog::onCmdAccept(), GNECalibratorVehicleTypeDialog::onCmdAccept(), GNECalibratorRouteDialog::onCmdAccept(), GNERerouterDialog::onCmdAccept(), GNECalibratorDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAccept(), and GNEVariableSpeedSignDialog::onCmdAccept().
|
protected |
Cancel changes did in this dialog.
Definition at line 135 of file GNEAdditionalDialog.cpp.
References myUndoList, and GNEUndoList::p_abortLastCommandGroup().
Referenced by GNECalibratorFlowDialog::onCmdCancel(), GNECalibratorVehicleTypeDialog::onCmdCancel(), GNECalibratorRouteDialog::onCmdCancel(), GNERerouterDialog::onCmdCancel(), GNECalibratorDialog::onCmdCancel(), GNERerouterIntervalDialog::onCmdCancel(), and GNEVariableSpeedSignDialog::onCmdCancel().
|
protected |
change additional dialog header
Definition at line 108 of file GNEAdditionalDialog.cpp.
|
protected |
init a new group of changes that will be do it in dialog
Definition at line 115 of file GNEAdditionalDialog.cpp.
References GNEUndoList::currentCommandGroupSize(), myChangesDescription, myNumberOfChanges, myUndoList, and GNEUndoList::p_begin().
|
pure virtual |
|
pure virtual |
event after press cancel button
Implemented in GNEVariableSpeedSignDialog, GNERerouterIntervalDialog, GNECalibratorDialog, GNERerouterDialog, GNECalibratorFlowDialog, GNECalibratorRouteDialog, and GNECalibratorVehicleTypeDialog.
|
pure virtual |
event after press cancel button
Implemented in GNEVariableSpeedSignDialog, GNERerouterIntervalDialog, GNECalibratorDialog, GNERerouterDialog, GNECalibratorFlowDialog, GNECalibratorRouteDialog, and GNECalibratorVehicleTypeDialog.
long GNEAdditionalDialog::onKeyPress | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
event after press a key
Definition at line 96 of file GNEAdditionalDialog.cpp.
long GNEAdditionalDialog::onKeyRelease | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
event after release a key
Definition at line 102 of file GNEAdditionalDialog.cpp.
|
protected |
execute dialog as modal
Definition at line 83 of file GNEAdditionalDialog.cpp.
|
privatedelete |
Invalidated assignment operator.
|
protected |
reset changes did in this dialog.
Definition at line 141 of file GNEAdditionalDialog.cpp.
References myChangesDescription, myUndoList, GNEUndoList::p_abortLastCommandGroup(), and GNEUndoList::p_begin().
Referenced by GNECalibratorFlowDialog::onCmdReset(), GNECalibratorVehicleTypeDialog::onCmdReset(), GNECalibratorRouteDialog::onCmdReset(), GNERerouterDialog::onCmdReset(), GNECalibratorDialog::onCmdReset(), GNERerouterIntervalDialog::onCmdReset(), and GNEVariableSpeedSignDialog::onCmdReset().
|
private |
accept button
Definition at line 108 of file GNEAdditionalDialog.h.
|
private |
cancel button
Definition at line 111 of file GNEAdditionalDialog.h.
|
private |
description of changes did in this additional dialog
Definition at line 117 of file GNEAdditionalDialog.h.
Referenced by initChanges(), and resetChanges().
|
protected |
frame for contents
Definition at line 86 of file GNEAdditionalDialog.h.
|
private |
number of GNEChanges_... in dialog
Definition at line 120 of file GNEAdditionalDialog.h.
Referenced by initChanges().
|
private |
cancel button
Definition at line 114 of file GNEAdditionalDialog.h.
|
private |
pointer to UndoList
Definition at line 123 of file GNEAdditionalDialog.h.
Referenced by acceptChanges(), cancelChanges(), initChanges(), and resetChanges().