mirror of https://github.com/buggins/dlangui.git
dlangui.core.stdaction module now uses immutable and static module initializer
This commit is contained in:
parent
c37eb75ef9
commit
71fd3086bd
|
@ -32,15 +32,27 @@ enum StandardAction : int {
|
||||||
Save,
|
Save,
|
||||||
}
|
}
|
||||||
|
|
||||||
__gshared const Action ACTION_OK = new Action(StandardAction.Ok, "ACTION_OK"c);
|
immutable Action ACTION_OK;
|
||||||
__gshared const Action ACTION_CANCEL = new Action(StandardAction.Cancel, "ACTION_CANCEL"c);
|
immutable Action ACTION_CANCEL;
|
||||||
__gshared const Action ACTION_YES = new Action(StandardAction.Yes, "ACTION_YES"c);
|
immutable Action ACTION_YES;
|
||||||
__gshared const Action ACTION_NO = new Action(StandardAction.No, "ACTION_NO"c);
|
immutable Action ACTION_NO;
|
||||||
__gshared const Action ACTION_CLOSE = new Action(StandardAction.Close, "ACTION_CLOSE"c);
|
immutable Action ACTION_CLOSE;
|
||||||
__gshared const Action ACTION_ABORT = new Action(StandardAction.Abort, "ACTION_ABORT"c);
|
immutable Action ACTION_ABORT;
|
||||||
__gshared const Action ACTION_RETRY = new Action(StandardAction.Retry, "ACTION_RETRY"c);
|
immutable Action ACTION_RETRY;
|
||||||
__gshared const Action ACTION_IGNORE = new Action(StandardAction.Ignore, "ACTION_IGNORE"c);
|
immutable Action ACTION_IGNORE;
|
||||||
__gshared const Action ACTION_OPEN = new Action(StandardAction.Open, "ACTION_OPEN"c);
|
immutable Action ACTION_OPEN;
|
||||||
__gshared const Action ACTION_SAVE = new Action(StandardAction.Save, "ACTION_SAVE"c);
|
immutable Action ACTION_SAVE;
|
||||||
|
|
||||||
|
|
||||||
|
static this()
|
||||||
|
{
|
||||||
|
ACTION_OK = cast(immutable(Action)) new Action(StandardAction.Ok, "ACTION_OK"c);
|
||||||
|
ACTION_CANCEL = cast(immutable(Action)) new Action(StandardAction.Cancel, "ACTION_CANCEL"c);
|
||||||
|
ACTION_YES = cast(immutable(Action)) new Action(StandardAction.Yes, "ACTION_YES"c);
|
||||||
|
ACTION_NO = cast(immutable(Action)) new Action(StandardAction.No, "ACTION_NO"c);
|
||||||
|
ACTION_CLOSE = cast(immutable(Action)) new Action(StandardAction.Close, "ACTION_CLOSE"c);
|
||||||
|
ACTION_ABORT = cast(immutable(Action)) new Action(StandardAction.Abort, "ACTION_ABORT"c);
|
||||||
|
ACTION_RETRY = cast(immutable(Action)) new Action(StandardAction.Retry, "ACTION_RETRY"c);
|
||||||
|
ACTION_IGNORE = cast(immutable(Action)) new Action(StandardAction.Ignore, "ACTION_IGNORE"c);
|
||||||
|
ACTION_OPEN = cast(immutable(Action)) new Action(StandardAction.Open, "ACTION_OPEN"c);
|
||||||
|
ACTION_SAVE = cast(immutable(Action)) new Action(StandardAction.Save, "ACTION_SAVE"c);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue