36 auto infoFrame =
new FXVerticalFrame(
myContentFrame, LAYOUT_TOP | LAYOUT_LEFT | LAYOUT_FILL_X | LAYOUT_FILL_Y, 0, 0, 0, 0, 10, 10, 10, 10);
38 const std::string info =
TLF(
"You have unsaved %.", elementTypes) + std::string(
"\n") +
39 TL(
"Do you wish to close and discard all changes?");
40 new FXLabel(infoFrame, info.c_str(), NULL, JUSTIFY_LEFT | ICON_BEFORE_TEXT | LAYOUT_TOP | LAYOUT_LEFT | LAYOUT_FILL_X | LAYOUT_FILL_Y);
#define GUIDesignCheckButton
checkButton placed in left position
GUIIcon
An enumeration of icons used by the gui applications.
The main window of Netedit.
FXVerticalFrame * myContentFrame
content frame
void openDialog(FXWindow *focusableElement=nullptr)
open dialog
Result myResult
result to indicate if this dialog was closed accepting or rejecting changes
long closeDialogAccepting()
close dialog accepting the changes
OpenType
Open dialog type.
GNEDialog(GNEApplicationWindow *applicationWindow, const std::string &name, GUIIcon titleIcon, DialogType type, Buttons buttons, OpenType openType, ResizeMode resizeMode)
basic constructor
long closeDialogCanceling()
close dialog declining the changes
long onCmdCancel(FXObject *, FXSelector, void *)
called when cancel or no button is pressed (can be reimplemented in children)
~GNESaveDialog()
Destructor.
FXCheckButton * myApplyToAllButton
apply to all button
void runInternalTest(const InternalTestStep::DialogArgument *dialogArgument)
run internal test
GNESaveDialog(GNEApplicationWindow *applicationWindow, const std::string &elementTypes)
Constructor.
long onCmdAccept(FXObject *, FXSelector, void *)
called when accept or yes button is pressed (can be reimplemented in children)
dialog arguments, used for certain modal dialogs that can not be edited using tab