Dialog

Base class for all dialog user interface boxes.

dialog is a program used which displays text user interface widgets. - - - See also: $(EXT_LINK https://invisible-island.net/dialog/)

Constructors

this
this(string dialogType, string title, string text, uint h, uint w)

Base constructor for all dialog boxes.

Members

Functions

prepareCmd
string[] prepareCmd()
Undocumented in source. Be warned that the author may not have intended to support it.
run
void run()

Execution launch.

setButtonHandler
void setButtonHandler(Action act, fn_t fn)

It is possible to assign callbacks to events such as pressing OK (or YES), NO (or CANCEL), ESC. ESC is always available.

setText
void setText(string text)

Changes a box text.

Static functions

getBackTitle
string getBackTitle()

Returns current background title.

setBackTitle
void setBackTitle(string btitle)

Sets the background title for dialog widgets.

Variables

baseCmd
auto baseCmd;
Undocumented in source.
callbacks
fn_t[Action] callbacks;
Undocumented in source.
dialogType
string dialogType;
Undocumented in source.
entry
string entry;
Undocumented in source.
height
uint height;
Undocumented in source.
text
string text;
Undocumented in source.
title
string title;
width
uint width;
Undocumented in source.

Meta