36 #ifdef CHECK_MEMORY_LEAKS 52 FXIMPLEMENT_ABSTRACT(
GNEAdditionalDialog, FXDialogBox, GNEAdditionalDialogMap, ARRAYNUMBER(GNEAdditionalDialogMap))
59 FXDialogBox(parent->getViewNet(), ("Edit '" + parent->getID() + "' data").c_str(), LAYOUT_EXPLICIT | DECOR_TITLE | DECOR_BORDER, 0, 0, width, height) {
61 myContentFrame =
new FXVerticalFrame(
this, LAYOUT_EXPLICIT, 0, 0, width, height - 30);
62 myButtonFrame =
new FXHorizontalFrame(
this, LAYOUT_EXPLICIT, 0, height - 30, width, 30);
64 new FXHorizontalFrame(myButtonFrame, LAYOUT_FILL_X);
65 myAcceptButton =
new FXButton(myButtonFrame,
"accept\t\tclose", 0,
this,
MID_GNE_MODE_ADDITIONALDIALOG_ACCEPT, ICON_BEFORE_TEXT | LAYOUT_FIX_WIDTH | LAYOUT_FIX_HEIGHT | FRAME_THICK | FRAME_RAISED, 0, 0, 75, 23, 2, 2, 2, 2);
66 myCancelButton =
new FXButton(myButtonFrame,
"cancel\t\tclose", 0,
this,
MID_GNE_MODE_ADDITIONALDIALOG_CANCEL, ICON_BEFORE_TEXT | LAYOUT_FIX_WIDTH | LAYOUT_FIX_HEIGHT | FRAME_THICK | FRAME_RAISED, 0, 0, 75, 23, 2, 2, 2, 2);
67 myResetButton =
new FXButton(myButtonFrame,
"reset\t\tclose", 0,
this,
MID_GNE_MODE_ADDITIONALDIALOG_RESET, ICON_BEFORE_TEXT | LAYOUT_FIX_WIDTH | LAYOUT_FIX_HEIGHT | FRAME_THICK | FRAME_RAISED, 0, 0, 75, 23, 2, 2, 2, 2);
68 new FXHorizontalFrame(myButtonFrame, LAYOUT_FILL_X);
virtual long onCmdReset(FXObject *, FXSelector, void *)=0
event after press cancel button
Dialog to edit sequences, parameters, etc.. of Additionals.
FXDEFMAP(GNEAdditionalDialog) GNEAdditionalDialogMap[]
virtual long onCmdCancel(FXObject *sender, FXSelector sel, void *ptr)=0
event after press cancel button
virtual long onCmdAccept(FXObject *sender, FXSelector sel, void *ptr)=0
An Element which don't belongs to GNENet but has influency in the simulation.