gladed 0.0.3
A minimal D application.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
gladeD
gladeD takes Gtk glade files and creates a D class out of them. The created class will inherit from the main widget of the glade file. Default handler for click and activate actions are created and connected. The created class can than be inherited and default action handler be overwritten. The handler are of the following schema. [NAMEOFWIDGET]Handler([WIDGETTYPE);
To get a feel for the created class, run the test target of the makefile and inspect the created file output.d.
Example
The following code shows how to use the CREATED_CLASS and how to override the handler for the quit menu entry in the file menu.
import CREATED_MODULE_CONTAINING_CREATED_CLASS;
class MainWin : CREATED_CLASS {
this() {
super();
}
override void quitMenuEntryHandler(MenuItem) {
this.destroy();
Main.quit();
}
}
Usage
Running gladed --help should make things clear
Known Bugs
Properly many, feel free to add issues on github or to send pull request. It is only tested on Arch Linux x32/x64 with DMD 2.065 and gdc 2.064.
License
GPL3
- Registered by Robert Schadek
- 0.0.3 released 6 years ago
- burner/gladeD
- LGPL3
- Copyright © 2014, burner
- Authors:
- Dependencies:
- none
- Versions:
-
0.0.3 2018-Nov-17 0.0.2 2018-Jul-27 ~master 2018-Nov-17 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
13 downloads total
-
- Score:
- 1.6
- Short URL:
- gladed.dub.pm