![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Dialog to edit sequences, parameters, etc.. of DemandElements. More...
#include <GNEDemandElementDialog.h>
Public Member Functions | |
| GNEDemandElement * | getEditedDemandElement () const |
| get edited DemandElement | |
| GNEDemandElementDialog (GNEDemandElement *parent, bool updatingElement, int width, int height) | |
| FOX-declaration abstract. | |
| ~GNEDemandElementDialog () | |
| destructor | |
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 | |
| virtual long | onCmdReset (FXObject *, FXSelector, void *)=0 |
| event after press cancel 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 | |
| long | onCmdFocusOnFrame (FXObject *sender, FXSelector sel, void *ptr) |
| focus on frame | |
Protected Member Functions | |
| void | acceptChanges () |
| Accept changes did in this dialog. | |
| void | cancelChanges () |
| Cancel changes did in this dialog. | |
| void | changeDemandElementDialogHeader (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 | |
| FXVerticalFrame * | myContentFrame |
| frame for contents | |
| GNEDemandElement * | myEditedDemandElement |
| pointer to edited additional | |
| bool | myUpdatingElement |
| flag to indicate if additional are being created or modified (cannot be changed after open dialog) | |
Private Member Functions | |
| GNEDemandElementDialog (const GNEDemandElementDialog &)=delete | |
| Invalidated copy constructor. | |
| GNEDemandElementDialog & | operator= (const GNEDemandElementDialog &)=delete |
| Invalidated assignment operator. | |
Private Attributes | |
| FXButton * | myCancelButton |
| cancel button | |
| std::string | myChangesDescription |
| description of changes did in this additional dialog | |
| FXButton * | myFocusButton |
| focus button | |
| FXButton * | myKeepOldButton |
| accept button | |
| int | myNumberOfChanges |
| number of GNEChanges_... in dialog | |
| FXButton * | myResetButton |
| cancel button | |
Dialog to edit sequences, parameters, etc.. of DemandElements.
Definition at line 42 of file GNEDemandElementDialog.h.
| GNEDemandElementDialog::GNEDemandElementDialog | ( | GNEDemandElement * | parent, |
| bool | updatingElement, | ||
| int | width, | ||
| int | height | ||
| ) |
FOX-declaration abstract.
constructor
Definition at line 52 of file GNEDemandElementDialog.cpp.
References ACCEPT, GUIDesigns::buildFXButton(), CANCEL, GUIIconSubSys::getIcon(), GUIDesignAuxiliarFrame, GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonAccept, GUIDesignButtonCancel, GUIDesignButtonFocus, GUIDesignButtonReset, GUIDesignContentsFrame, GUIDesignHorizontalFrame, MID_GNE_BUTTON_ACCEPT, MID_GNE_BUTTON_CANCEL, MID_GNE_BUTTON_FOCUS, MID_GNE_BUTTON_RESET, RESET, and TL.
| GNEDemandElementDialog::~GNEDemandElementDialog | ( | ) |
destructor
Definition at line 74 of file GNEDemandElementDialog.cpp.
|
privatedelete |
Invalidated copy constructor.
|
protected |
Accept changes did in this dialog.
Definition at line 135 of file GNEDemandElementDialog.cpp.
References GNEUndoList::abortLastChangeGroup(), GNEUndoList::end(), GNEViewParent::getGNEAppWindows(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEViewNet::getViewParent(), myEditedDemandElement, and GNEApplicationWindow::updateControls().
Referenced by GNERouteDialog::onCmdAccept(), and GNEVehicleTypeDialog::onCmdAccept().
|
protected |
Cancel changes did in this dialog.
Definition at line 148 of file GNEDemandElementDialog.cpp.
References GNEUndoList::abortLastChangeGroup(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), and myEditedDemandElement.
Referenced by GNERouteDialog::onCmdCancel(), and GNEVehicleTypeDialog::onCmdCancel().
|
protected |
change additional dialog header
Definition at line 119 of file GNEDemandElementDialog.cpp.
Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog().
| GNEDemandElement * GNEDemandElementDialog::getEditedDemandElement | ( | ) | const |
get edited DemandElement
Definition at line 94 of file GNEDemandElementDialog.cpp.
References myEditedDemandElement.
|
protected |
init a new group of changes that will be do it in dialog
Definition at line 126 of file GNEDemandElementDialog.cpp.
References GNEUndoList::begin(), GNEUndoList::currentCommandGroupSize(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), myChangesDescription, myEditedDemandElement, and myNumberOfChanges.
Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog().
|
pure virtual |
Implemented in GNERouteDialog, and GNEVehicleTypeDialog.
Referenced by FXDEFMAP().
|
pure virtual |
event after press cancel button
Implemented in GNERouteDialog, and GNEVehicleTypeDialog.
Referenced by FXDEFMAP().
| long GNEDemandElementDialog::onCmdFocusOnFrame | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
focus on frame
Definition at line 112 of file GNEDemandElementDialog.cpp.
Referenced by FXDEFMAP().
|
pure virtual |
event after press cancel button
Implemented in GNERouteDialog, and GNEVehicleTypeDialog.
Referenced by FXDEFMAP().
| long GNEDemandElementDialog::onKeyPress | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
event after press a key
Definition at line 100 of file GNEDemandElementDialog.cpp.
Referenced by FXDEFMAP().
| long GNEDemandElementDialog::onKeyRelease | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
event after release a key
Definition at line 106 of file GNEDemandElementDialog.cpp.
Referenced by FXDEFMAP().
|
protected |
execute dialog as modal
Definition at line 81 of file GNEDemandElementDialog.cpp.
Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog().
|
privatedelete |
Invalidated assignment operator.
|
protected |
reset changes did in this dialog.
Definition at line 154 of file GNEDemandElementDialog.cpp.
References GNEUndoList::abortLastChangeGroup(), GNEUndoList::begin(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), myChangesDescription, and myEditedDemandElement.
Referenced by GNERouteDialog::onCmdReset(), and GNEVehicleTypeDialog::onCmdReset().
|
private |
cancel button
Definition at line 113 of file GNEDemandElementDialog.h.
|
private |
description of changes did in this additional dialog
Definition at line 122 of file GNEDemandElementDialog.h.
Referenced by initChanges(), and resetChanges().
|
protected |
frame for contents
Definition at line 88 of file GNEDemandElementDialog.h.
Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog().
|
protected |
pointer to edited additional
Definition at line 82 of file GNEDemandElementDialog.h.
Referenced by acceptChanges(), cancelChanges(), getEditedDemandElement(), GNEVehicleTypeDialog::GNEVehicleTypeDialog(), initChanges(), GNERouteDialog::onCmdAccept(), GNEVehicleTypeDialog::onCmdAccept(), GNERouteDialog::onCmdSetVariable(), resetChanges(), GNEVehicleTypeDialog::VTypeAttributes::VClassRow::setVariable(), and GNERouteDialog::updateCalibratorRouteValues().
|
private |
focus button
Definition at line 119 of file GNEDemandElementDialog.h.
|
private |
accept button
Definition at line 110 of file GNEDemandElementDialog.h.
|
private |
number of GNEChanges_... in dialog
Definition at line 125 of file GNEDemandElementDialog.h.
Referenced by initChanges().
|
private |
cancel button
Definition at line 116 of file GNEDemandElementDialog.h.
|
protected |
flag to indicate if additional are being created or modified (cannot be changed after open dialog)
Definition at line 85 of file GNEDemandElementDialog.h.
Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog(), GNERouteDialog::onCmdAccept(), and GNEVehicleTypeDialog::onCmdAccept().