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 mixin(registerWidgetMetadataClass!ResizerWidget); 88 89 /* 90 mixin (registerWidgets!("void registerWidgets1", 91 FileNameEditLine, DirEditLine, //dlangui.dialogs.filedlg 92 ComboBox, ComboEdit, //dlangui.widgets.combobox 93 // )()); 94 //mixin(registerWidgets!("void registerWidgets2", 95 Widget, TextWidget, MultilineTextWidget, Button, ImageWidget, ImageButton, ImageCheckButton, ImageTextButton, 96 )); 97 mixin(registerWidgets!("void registerWidgets3", 98 SwitchButton, RadioButton, CheckBox, HSpacer, VSpacer, CanvasWidget, // dlangui.widgets.controls 99 ScrollBar, SliderWidget, // dlangui.widgets.scrollbar 100 EditLine, EditBox, LogWidget,//dlangui.widgets.editors 101 )); 102 mixin(registerWidgets!("void registerWidgets4", 103 GroupBox, // dlangui.widgets.groupbox 104 ProgressBarWidget, // dlangui.widgets.progressbar 105 StringGridWidget, //dlangui.widgets.grid 106 VerticalLayout, HorizontalLayout, TableLayout, FrameLayout, // dlangui.widgets.layouts 107 MainMenu, //dlangui.widgets.menu 108 TreeWidget, // dlangui.widgets.tree 109 TabWidget, // dlangui.widgets.tabs 110 )); 111 112 113 registerWidgets1(); 114 //registerWidgets2(); 115 registerWidgets3(); 116 registerWidgets4(); 117 */ 118 } 119