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 DemandElements.
virtual long onCmdAccept(FXObject *sender, FXSelector sel, void *ptr)=0
void acceptChanges()
Accept changes did in this dialog.
GNEDemandElement * myEditedDemandElement
pointer to edited additional
long onCmdFocusOnFrame(FXObject *sender, FXSelector sel, void *ptr)
focus on frame
FXVerticalFrame * myContentFrame
frame for contents
bool myUpdatingElement
flag to indicate if additional are being created or modified (cannot be changed after open dialog)
FXint openAsModalDialog(FXuint placement=PLACEMENT_CURSOR)
execute dialog as modal
GNEDemandElement * getEditedDemandElement() const
get edited DemandElement
long onKeyRelease(FXObject *sender, FXSelector sel, void *ptr)
event after release a key
FXButton * myFocusButton
focus button
void initChanges()
init a new group of changes that will be do it in dialog
FXButton * myResetButton
cancel button
virtual long onCmdCancel(FXObject *sender, FXSelector sel, void *ptr)=0
event after press cancel button
FXButton * myKeepOldButton
accept button
void cancelChanges()
Cancel changes did in this dialog.
void changeDemandElementDialogHeader(const std::string &newHeader)
change additional dialog header
virtual long onCmdReset(FXObject *, FXSelector, void *)=0
event after press cancel button
FXButton * myCancelButton
cancel button
std::string myChangesDescription
description of changes did in this additional dialog
void resetChanges()
reset changes did in this dialog.
int myNumberOfChanges
number of GNEChanges_... in dialog
~GNEDemandElementDialog()
destructor
long onKeyPress(FXObject *sender, FXSelector sel, void *ptr)
event after press a key