mirror of https://github.com/buggins/dlangui.git
Rename SwitchWidget to SwitchButton - close issue #235
This commit is contained in:
parent
5f6c0ddf3e
commit
7c7b5df51c
|
@ -567,11 +567,11 @@ extern (C) int UIAppMain(string[] args) {
|
|||
buttons10.addChild(new TextWidget(null, "ImageTextButton widgets: "d));
|
||||
buttons10.addChild(new ImageTextButton("btn5", "text-plain", "Enabled"d));
|
||||
buttons10.addChild((new ImageTextButton("btn6", "folder", "Disabled"d)).enabled(false));
|
||||
buttons10.addChild(new TextWidget(null, "SwitchWidget widgets: "d));
|
||||
buttons10.addChild((new SwitchWidget("SW1")).checked(true));
|
||||
buttons10.addChild((new SwitchWidget("SW2")).checked(false));
|
||||
buttons10.addChild((new SwitchWidget("SW3")).checked(true).enabled(false));
|
||||
buttons10.addChild((new SwitchWidget("SW4")).checked(false).enabled(false));
|
||||
buttons10.addChild(new TextWidget(null, "SwitchButton widgets: "d));
|
||||
buttons10.addChild((new SwitchButton("SW1")).checked(true));
|
||||
buttons10.addChild((new SwitchButton("SW2")).checked(false));
|
||||
buttons10.addChild((new SwitchButton("SW3")).checked(true).enabled(false));
|
||||
buttons10.addChild((new SwitchButton("SW4")).checked(false).enabled(false));
|
||||
layout3.addChild(buttons10);
|
||||
|
||||
WidgetGroup buttons11 = new HorizontalLayout();
|
||||
|
|
|
@ -311,7 +311,7 @@ void registerStandardWidgets() {
|
|||
mixin(registerWidgets!(FileNameEditLine, DirEditLine, //dlangui.dialogs.filedlg
|
||||
ComboBox, ComboEdit, //dlangui.widgets.combobox
|
||||
Widget, TextWidget, MultilineTextWidget, Button, ImageWidget, ImageButton, ImageCheckButton, ImageTextButton,
|
||||
SwitchWidget, RadioButton, CheckBox, ScrollBar, HSpacer, VSpacer, CanvasWidget, // dlangui.widgets.controls
|
||||
SwitchButton, RadioButton, CheckBox, ScrollBar, HSpacer, VSpacer, CanvasWidget, // dlangui.widgets.controls
|
||||
EditLine, EditBox, LogWidget,//dlangui.widgets.editors
|
||||
StringGridWidget, //dlangui.widgets.grid
|
||||
VerticalLayout, HorizontalLayout, TableLayout, FrameLayout, // dlangui.widgets.layouts
|
||||
|
|
|
@ -160,7 +160,7 @@ class MultilineTextWidget : TextWidget {
|
|||
}
|
||||
|
||||
/// Switch (on/off) widget
|
||||
class SwitchWidget : Widget {
|
||||
class SwitchButton : Widget {
|
||||
this(string ID = null) {
|
||||
super(ID);
|
||||
styleId = STYLE_SWITCH;
|
||||
|
|
Loading…
Reference in New Issue