 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
44 FXIMPLEMENT_ABSTRACT(
GNEDemandElementDialog, FXTopWindow, GNEDemandElementDialogMap, ARRAYNUMBER(GNEDemandElementDialogMap))
51 FXTopWindow(editedDemandElement->getViewNet(), ("Edit '" + editedDemandElement->getID() + "' data").c_str(), editedDemandElement->getIcon(), editedDemandElement->getIcon(),
GUIDesignDialogBoxExplicit(width, height)),
52 myEditedDemandElement(editedDemandElement),
53 myUpdatingElement(updatingElement),
54 myChangesDescription("change " + editedDemandElement->getTagStr() + " values"),
55 myNumberOfChanges(0) {
72 getParent()->setFocus();
85 return getApp()->runModalFor(
this);
97 return FXTopWindow::onKeyPress(sender, sel, ptr);
103 return FXTopWindow::onKeyRelease(sender, sel, ptr);
110 setTitle(newHeader.c_str());
126 if (myNumberOfChanges < myEditedDemandElement->getViewNet()->getUndoList()->currentCommandGroupSize()) {
GNEDemandElement * getEditedDemandElement() const
get edited DemandElement
#define GUIDesignAuxiliarHorizontalFrame
design for auxiliar (Without borders) horizontal frame used to pack another frames
void acceptChanges()
Accept changes did in this dialog.
An Element which don't belongs to GNENet but has influency in the simulation.
void p_end()
End undo command sub-group. If the sub-group is still empty, it will be deleted; otherwise,...
GNEViewNet * getViewNet() const
Returns a pointer to GNEViewNet in which demand element element is located.
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon
#define GUIDesignDialogBoxExplicit(width, height)
design for dialog box with specift width and height (for example, additional dialogs)
void cancelChanges()
Cancel changes did in this dialog.
virtual long onCmdCancel(FXObject *sender, FXSelector sel, void *ptr)=0
event after press cancel button
#define GUIDesignContentsFrame
design for the main content frame of every frame/dialog
Dialog to edit sequences, parameters, etc.. of DemandElements.
int myNumberOfChanges
number of GNEChanges_... in dialog
#define GUIDesignHorizontalFrame
void initChanges()
init a new group of changes that will be do it in dialog
virtual long onCmdAccept(FXObject *sender, FXSelector sel, void *ptr)=0
GNEUndoList * getUndoList() const
get the undoList object
#define GUIDesignButtonReset
Reset Button.
void p_abortLastCommandGroup()
reverts last command group
GNEDemandElement * myEditedDemandElement
pointer to edited aditional
long onKeyPress(FXObject *sender, FXSelector sel, void *ptr)
event after press a key
std::string myChangesDescription
description of changes did in this additional dialog
int currentCommandGroupSize() const
get size of current CommandGroup
#define GUIDesignButtonAccept
Accept Button.
~GNEDemandElementDialog()
destructor
virtual long onCmdReset(FXObject *, FXSelector, void *)=0
event after press cancel button
FXint openAsModalDialog(FXuint placement=PLACEMENT_CURSOR)
execute dialog as modal
void resetChanges()
reset changes did in this dialog.
#define GUIDesignAuxiliarFrame
design for auxiliar (Without borders) frames used to pack another frames extended in all directions
#define GUIDesignButtonCancel
Cancel Button.
void p_begin(const std::string &description)
Begin undo command sub-group. This begins a new group of commands that are treated as a single comman...
FXDEFMAP(GNEDemandElementDialog) GNEDemandElementDialogMap[]
void changeDemandElementDialogHeader(const std::string &newHeader)
change additional dialog header
long onKeyRelease(FXObject *sender, FXSelector sel, void *ptr)
event after release a key