Dialog

base for all dialogs

Constructors

this
this(UIString caption, Window parentWindow, uint flags, int initialWidth, int initialHeight)
Undocumented in source.

Members

Functions

close
void close(Action action)

Notify about dialog result, and then close dialog.

createButtonsPanel
Widget createButtonsPanel(const(Action)[] actions, int defaultActionIndex, int splitBeforeIndex)

create panel with buttons based on list of actions

findKeyAction
Action findKeyAction(uint keyCode, uint flags)

map key to action

handleAction
bool handleAction(Action action)

Custom handling of actions

initialize
void initialize()

override to implement creation of dialog controls

measure
void measure(int parentWidth, int parentHeight)

Measure widget according to desired width and height constraints. (Step 1 of two phase layout).

onShow
void onShow()

called after window with dialog is shown

show
void show()

shows dialog

Properties

windowCaption
UIString windowCaption [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
windowCaption
dstring windowCaption [@property setter]

set window caption

windowCaption
UIString windowCaption [@property setter]

get window caption

windowIcon
string windowIcon [@property getter]

get icon resource id

windowIcon
string windowIcon [@property setter]

set icon resource id

Variables

_buttonActions
const(Action)[] _buttonActions;
Undocumented in source.
_cancelButton
ImageTextButton _cancelButton;
Undocumented in source.
_caption
UIString _caption;
Undocumented in source.
_defaultButton
ImageTextButton _defaultButton;
Undocumented in source.
_flags
uint _flags;
Undocumented in source.
_icon
string _icon;
Undocumented in source.
_initialHeight
int _initialHeight;
Undocumented in source.
_initialWidth
int _initialWidth;
Undocumented in source.
_parentWindow
Window _parentWindow;
Undocumented in source.
_popup
PopupWidget _popup;
Undocumented in source.
_window
Window _window;
Undocumented in source.
dialogResult
Signal!DialogResultHandler dialogResult;
Undocumented in source.

Meta