38 const std::string& title,
const std::string& info,
GUIIcon titleIcon,
DialogType type,
58 auto infoFrame =
new FXVerticalFrame(
myContentFrame, LAYOUT_TOP | LAYOUT_LEFT | LAYOUT_FILL_X | LAYOUT_FILL_Y, 0, 0, 0, 0, 10, 10, 10, 10);
61 new FXLabel(infoFrame, FXString::null,
GUIIconSubSys::getIcon(largeIcon), ICON_BEFORE_TEXT | LAYOUT_TOP | LAYOUT_LEFT | LAYOUT_FILL_X | LAYOUT_FILL_Y);
64 new FXLabel(infoFrame, info.c_str(), NULL, JUSTIFY_LEFT | ICON_BEFORE_TEXT | LAYOUT_TOP | LAYOUT_LEFT | LAYOUT_FILL_X | LAYOUT_FILL_Y);
GUIIcon
An enumeration of icons used by the gui applications.
~GNEBasicDialog()
Destructor.
void builder(const std::string &info, GUIIcon largeIcon)
builder
GNEBasicDialog(GNEApplicationWindow *applicationWindow, const std::string &title, const std::string &info, GUIIcon titleIcon, DialogType type, GNEDialog::Buttons buttons, GUIIcon largeIcon)
Constructor.
void runInternalTest(const InternalTestStep::DialogArgument *dialogArgument)
run internal test
FXVerticalFrame * myContentFrame
content frame
void openDialog(FXWindow *focusableElement=nullptr)
open dialog
OpenType
Open dialog type.
GNEDialog(GNEApplicationWindow *applicationWindow, const std::string &name, GUIIcon titleIcon, DialogType type, Buttons buttons, OpenType openType, ResizeMode resizeMode)
basic constructor
static FXIcon * getIcon(const GUIIcon which)
returns a icon previously defined in the enum GUIIcon
dialog arguments, used for certain modal dialogs that can not be edited using tab