34 FXMAPFUNC(SEL_CLOSE, 0, GNEKeepElementsDialog::onCmdCancel),
38FXIMPLEMENT(
GNEKeepElementsDialog, FXDialogBox, GNEKeepElementsDialogMap, ARRAYNUMBER(GNEKeepElementsDialogMap))
49 FXDialogBox(applicationWindow->getApp(), ("Keep " + elementType + " elements").c_str(),
GUIDesignDialogBoxExplicit(400, 100)) {
55 new FXLabel(mainFrame, (
"Selected " + elementType +
" file was already loaded.\n Keep new or old elements?").c_str(),
nullptr,
GUIDesignLabelKeepElements);
66 myKeepNewButton->setFocus();
69 show(PLACEMENT_SCREEN);
73 applicationWindow->getApp()->runModalFor(
this);
95 getApp()->stopModal(
this, FALSE);
102 getApp()->stopModal(
this, FALSE);
FXDEFMAP(GNEKeepElementsDialog) GNEKeepElementsDialogMap[]
@ MID_GNE_SELECT
select element
#define GUIDesignDialogBoxExplicit(width, height)
design for dialog box with specific width and height (for example, additional dialogs)
#define GUIDesignAuxiliarHorizontalFrame
design for auxiliar (Without borders) horizontal frame used to pack another frames
#define GUIDesignLabelKeepElements
label extended over frame without thick and with text justify to left
#define GUIDesignButtonKeepElements
overwrite Button
#define GUIDesignAuxiliarFrame
design for auxiliar (Without borders) frame extended in all directions
#define GUIDesignHorizontalFrame
Horizontal frame extended over frame parent with padding and spacing.
The main window of Netedit.
Dialog for edit rerouters.
Result getResult() const
get result
long onCmdSelectOption(FXObject *obj, FXSelector, void *)
~GNEKeepElementsDialog()
destructor
long onCmdClose(FXObject *obj, FXSelector, void *)
event when dialog is closed
FXButton * myKeepNewButton
button for overwrite
FXButton * myKeepOldButton
FOX need this.
Result myResult
result (by default cancel)
static FXButton * buildFXButton(FXComposite *p, const std::string &text, const std::string &tip, const std::string &help, FXIcon *ic, FXObject *tgt, FXSelector sel, FXuint opts=BUTTON_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD)
build button
static FXIcon * getIcon(const GUIIcon which)
returns a icon previously defined in the enum GUIIcon