1 // Written in the D programming language. 2 3 /** 4 This module is just to simplify import of most useful DLANGUI modules. 5 6 Synopsis: 7 8 ---- 9 // helloworld 10 import dlangui; 11 // required in one of modules 12 mixin APP_ENTRY_POINT; 13 14 /// entry point for dlangui based application 15 extern (C) int UIAppMain(string[] args) { 16 // resource directory search paths 17 string[] resourceDirs = [ 18 appendPath(exePath, "../../../res/"), // for Visual D and DUB builds 19 appendPath(exePath, "../../../../res/"), // for Mono-D builds 20 appendPath(exePath, "res/") // when res dir is located at the same directory as executable 21 ]; 22 23 // setup resource directories - will use only existing directories 24 Platform.instance.resourceDirs = resourceDirs; 25 // select translation file - for english language 26 Platform.instance.uiLanguage = "en"; 27 // load theme from file "theme_default.xml" 28 Platform.instance.uiTheme = "theme_default"; 29 30 // create window 31 Window window = Platform.instance.createWindow("My Window", null); 32 // create some widget to show in window 33 window.mainWidget = (new Button()).text("Hello world"d); 34 // show window 35 window.show(); 36 // run message loop 37 return Platform.instance.enterMessageLoop(); 38 } 39 40 41 ---- 42 43 Copyright: Vadim Lopatin, 2014 44 License: Boost License 1.0 45 Authors: Vadim Lopatin, coolreader.org@gmail.com 46 */ 47 module dlangui; 48 49 public { 50 import dlangui.core.config; 51 import dlangui.core.logger; 52 import dlangui.core.types; 53 import dlangui.core.i18n; 54 import dlangui.core.files; 55 import dlangui.core.stdaction; 56 import dlangui.graphics.images; 57 import dlangui.graphics.colors; 58 import dlangui.graphics.fonts; 59 import dlangui.graphics.drawbuf; 60 import dlangui.widgets.widget; 61 import dlangui.widgets.controls; 62 import dlangui.widgets.scrollbar; 63 import dlangui.widgets.progressbar; 64 import dlangui.widgets.layouts; 65 import dlangui.widgets.groupbox; 66 import dlangui.widgets.lists; 67 import dlangui.widgets.tabs; 68 import dlangui.widgets.menu; 69 import dlangui.widgets.scroll; 70 import dlangui.widgets.editors; 71 import dlangui.widgets.srcedit; 72 import dlangui.widgets.grid; 73 import dlangui.widgets.tree; 74 import dlangui.widgets.combobox; 75 import dlangui.widgets.popup; 76 import dlangui.widgets.appframe; 77 import dlangui.widgets.statusline; 78 import dlangui.widgets.docks; 79 import dlangui.widgets.toolbars; 80 import dlangui.widgets.charts; 81 import dlangui.platforms.common.platform; 82 import dlangui.dml.parser; 83 84 // some useful imports from Phobos 85 import std.algorithm : equal; 86 import std.conv : to; 87 import std.utf : toUTF32; 88 }