59 virtual long onCmdAccept(FXObject* sender, FXSelector sel,
void* ptr) = 0;
62 virtual long onCmdCancel(FXObject* sender, FXSelector sel,
void* ptr) = 0;
65 virtual long onCmdReset(FXObject*, FXSelector,
void*) = 0;
68 long onKeyPress(FXObject* sender, FXSelector sel,
void* ptr);
71 long onKeyRelease(FXObject* sender, FXSelector sel,
void* ptr);
Dialog to edit sequences, parameters, etc.. of Additionals.
virtual long onCmdCancel(FXObject *sender, FXSelector sel, void *ptr)=0
event after press cancel button
bool myUpdatingElement
flag to indicate if additional are being created or modified (cannot be changed after open dialog)
virtual long onCmdAccept(FXObject *sender, FXSelector sel, void *ptr)=0
void changeAdditionalDialogHeader(const std::string &newHeader)
change additional dialog header
~GNEAdditionalDialog()
destructor
FXButton * myCancelButton
cancel button
FXVerticalFrame * myContentFrame
frame for contents
int myNumberOfChanges
number of GNEChanges_... in dialog
GNEAdditional * getEditedAdditional() const
get edited Additional
void acceptChanges()
Accept changes did in this dialog.
std::string myChangesDescription
description of changes did in this additional dialog
long onKeyPress(FXObject *sender, FXSelector sel, void *ptr)
event after press a key
void cancelChanges()
Cancel changes did in this dialog.
FXButton * myKeepOldButton
accept button
FXButton * myResetButton
cancel button
FXint openAsModalDialog(FXuint placement=PLACEMENT_CURSOR)
execute dialog as modal
GNEAdditional * myEditedAdditional
pointer to edited additional
void initChanges()
init a new group of changes that will be do it in dialog
void resetChanges()
reset changes did in this dialog.
virtual long onCmdReset(FXObject *, FXSelector, void *)=0
event after press cancel button
long onKeyRelease(FXObject *sender, FXSelector sel, void *ptr)
event after release a key
An Element which don't belong to GNENet but has influence in the simulation.