1 module dlangui.widgets.dmlwidgets; 2 3 /// register standard widgets to use in DML 4 extern(C) void registerStandardWidgets() { 5 import dlangui.core.config; 6 import dlangui.core.logger; 7 8 Log.d("Registering standard widgets for DML"); 9 10 import dlangui.widgets.metadata; 11 import dlangui.widgets.widget; 12 13 mixin(registerWidgetMetadataClass!Widget); 14 15 import dlangui.widgets.layouts; 16 mixin(registerWidgetMetadataClass!VerticalLayout); 17 mixin(registerWidgetMetadataClass!HorizontalLayout); 18 mixin(registerWidgetMetadataClass!TableLayout); 19 mixin(registerWidgetMetadataClass!FrameLayout); // dlangui.widgets.layouts 20 21 import dlangui.widgets.controls; 22 23 mixin(registerWidgetMetadataClass!TextWidget); 24 mixin(registerWidgetMetadataClass!MultilineTextWidget); 25 mixin(registerWidgetMetadataClass!Button); 26 mixin(registerWidgetMetadataClass!ImageWidget); 27 mixin(registerWidgetMetadataClass!ImageButton); 28 mixin(registerWidgetMetadataClass!ImageCheckButton); 29 mixin(registerWidgetMetadataClass!ImageTextButton); 30 mixin(registerWidgetMetadataClass!SwitchButton); 31 mixin(registerWidgetMetadataClass!RadioButton); 32 mixin(registerWidgetMetadataClass!CheckBox); 33 mixin(registerWidgetMetadataClass!HSpacer); 34 mixin(registerWidgetMetadataClass!VSpacer); 35 mixin(registerWidgetMetadataClass!CanvasWidget); // dlangui.widgets.controls 36 37 import dlangui.widgets.scrollbar; 38 39 mixin(registerWidgetMetadataClass!ScrollBar); 40 mixin(registerWidgetMetadataClass!SliderWidget); // dlangui.widgets.scrollbar 41 42 import dlangui.widgets.lists; 43 44 mixin(registerWidgetMetadataClass!ListWidget); 45 mixin(registerWidgetMetadataClass!StringListWidget);//dlangui.widgets.lists 46 47 48 import dlangui.widgets.editors; 49 50 mixin(registerWidgetMetadataClass!EditLine); 51 mixin(registerWidgetMetadataClass!EditBox); 52 mixin(registerWidgetMetadataClass!LogWidget);//dlangui.widgets.editors 53 54 import dlangui.widgets.combobox; 55 mixin(registerWidgetMetadataClass!ComboBox); 56 mixin(registerWidgetMetadataClass!ComboEdit); //dlangui.widgets.combobox 57 58 import dlangui.widgets.grid; 59 60 mixin(registerWidgetMetadataClass!StringGridWidget); //dlangui.widgets.grid 61 62 import dlangui.widgets.groupbox; 63 64 mixin(registerWidgetMetadataClass!GroupBox); // dlangui.widgets.groupbox 65 66 import dlangui.widgets.progressbar; 67 68 mixin(registerWidgetMetadataClass!ProgressBarWidget); // dlangui.widgets.progressbar 69 70 import dlangui.widgets.menu; 71 72 mixin(registerWidgetMetadataClass!MainMenu); //dlangui.widgets.menu 73 74 import dlangui.widgets.tree; 75 76 mixin(registerWidgetMetadataClass!TreeWidget); // dlangui.widgets.tree 77 78 import dlangui.widgets.tabs; 79 80 mixin(registerWidgetMetadataClass!TabWidget); // dlangui.widgets.tabs 81 82 import dlangui.dialogs.filedlg; 83 84 mixin(registerWidgetMetadataClass!FileNameEditLine); 85 mixin(registerWidgetMetadataClass!DirEditLine); 86 87 /* 88 mixin (registerWidgets!("void registerWidgets1", 89 FileNameEditLine, DirEditLine, //dlangui.dialogs.filedlg 90 ComboBox, ComboEdit, //dlangui.widgets.combobox 91 // )()); 92 //mixin(registerWidgets!("void registerWidgets2", 93 Widget, TextWidget, MultilineTextWidget, Button, ImageWidget, ImageButton, ImageCheckButton, ImageTextButton, 94 )); 95 mixin(registerWidgets!("void registerWidgets3", 96 SwitchButton, RadioButton, CheckBox, HSpacer, VSpacer, CanvasWidget, // dlangui.widgets.controls 97 ScrollBar, SliderWidget, // dlangui.widgets.scrollbar 98 EditLine, EditBox, LogWidget,//dlangui.widgets.editors 99 )); 100 mixin(registerWidgets!("void registerWidgets4", 101 GroupBox, // dlangui.widgets.groupbox 102 ProgressBarWidget, // dlangui.widgets.progressbar 103 StringGridWidget, //dlangui.widgets.grid 104 VerticalLayout, HorizontalLayout, TableLayout, FrameLayout, // dlangui.widgets.layouts 105 MainMenu, //dlangui.widgets.menu 106 TreeWidget, // dlangui.widgets.tree 107 TabWidget, // dlangui.widgets.tabs 108 )); 109 110 111 registerWidgets1(); 112 //registerWidgets2(); 113 registerWidgets3(); 114 registerWidgets4(); 115 */ 116 } 117