 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
45 FXIMPLEMENT_ABSTRACT(
GNEAdditionalDialog, FXTopWindow, GNEAdditionalDialogMap, ARRAYNUMBER(GNEAdditionalDialogMap))
52 FXTopWindow(editedAdditional->getViewNet(), ("Edit '" + editedAdditional->getID() + "' data").c_str(), editedAdditional->getIcon(), editedAdditional->getIcon(),
GUIDesignDialogBoxExplicit(width, height)),
53 myEditedAdditional(editedAdditional),
54 myUpdatingElement(updatingElement),
55 myChangesDescription("change " + editedAdditional->getTagStr() + " values"),
56 myNumberOfChanges(0) {
73 getParent()->setFocus();
86 return getApp()->runModalFor(
this);
98 return FXTopWindow::onKeyPress(sender, sel, ptr);
104 return FXTopWindow::onKeyRelease(sender, sel, ptr);
111 setTitle(newHeader.c_str());
127 if (myNumberOfChanges < myEditedAdditional->getViewNet()->getUndoList()->currentCommandGroupSize()) {
#define GUIDesignAuxiliarHorizontalFrame
design for auxiliar (Without borders) horizontal frame used to pack another frames
An Element which don't belongs to GNENet but has influency in the simulation.
virtual long onCmdAccept(FXObject *sender, FXSelector sel, void *ptr)=0
long onKeyPress(FXObject *sender, FXSelector sel, void *ptr)
event after press a key
void p_end()
End undo command sub-group. If the sub-group is still empty, it will be deleted; otherwise,...
Dialog to edit sequences, parameters, etc.. of Additionals.
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
GNEAdditional * getEditedAdditional() const
get edited Additional
long onKeyRelease(FXObject *sender, FXSelector sel, void *ptr)
event after release a key
#define GUIDesignHorizontalFrame
void changeAdditionalDialogHeader(const std::string &newHeader)
change additional dialog header
GNEUndoList * getUndoList() const
get the undoList object
#define GUIDesignButtonReset
Reset Button.
void p_abortLastCommandGroup()
reverts last command group
virtual long onCmdReset(FXObject *, FXSelector, void *)=0
event after press cancel button
~GNEAdditionalDialog()
destructor
GNEAdditional * myEditedAdditional
pointer to edited aditional
int currentCommandGroupSize() const
get size of current CommandGroup
#define GUIDesignButtonAccept
Accept Button.
void initChanges()
init a new group of changes that will be do it in dialog
void acceptChanges()
Accept changes did in this dialog.
int myNumberOfChanges
number of GNEChanges_... in dialog
FXint openAsModalDialog(FXuint placement=PLACEMENT_CURSOR)
execute dialog as modal
GNEViewNet * getViewNet() const
Returns a pointer to GNEViewNet in which additional element is located.
std::string myChangesDescription
description of changes did in this additional 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...
void resetChanges()
reset changes did in this dialog.
FXDEFMAP(GNEAdditionalDialog) GNEAdditionalDialogMap[]