Description

The dub package for dwt

Package Information

Version3.1.1 (2017-May-23)
Homepage https://github.com/jasc2v8/dwtlib
Repository https://github.com/jasc2v8/dwtlib
LicenseEPL-1.0
Registered byJamesD
Dependencies none

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

Dub version Dub downloads

dwtlib - DUB package for the D Widget Toolkit

DWT is a library for creating cross-platform GUI applications. It's a port of the SWT Java library from Eclipse.

dwtlib is the dub package repository for DWT.

Status

WORKING and tested on:

- Windows 10 Home  32-bit and 64-bit
- Ubuntu 16.04 LTS 32-bit and 64-bit
- DMD32 D Compiler v2.074.0, DUB version 1.3.0

DWT cloned from Github is NOT compatable with DMD v2.074.0 as-is
There is some issue with DMD v2.074.0 writing *.di files
DWT imports the *.di files and fails
dwtlib imports the *.d source files versus the *.di files

Building (refer to doc/dlang-install)

  1. Install DMD (includes DUB)

    • Browse to http://dlang.org/
    • Click to download the lastest version (e.g. 2.074.0)
    • Open with Software install (Ubuntu)
    • Install

    Check Version

    $ dmd --version
    DMD32 D Compiler v2.074.0
    
    $ dub --version
    DUB version 1.3.0
    
    

    Quick Test

    $ rdmd examples/console/hello.d
    
    
  2. Fetch the DUB package

    $ dub fetch dwtlib
    
    
  3. Get the linux libraries (no extra libs required for Windows):

    $ cd /home/<USER>/.dub/packages/dwtlib-3.0.0/dwtlib/tools/get-libs
    
    $ bash ./get-libs.sh
    
    
  4. Build the DWT static libraries:

    $ cd /home/<USER>/.dub/packages/dwtlib-3.0.0/dwtlib
    
    $ dub fetch dwtlib
    
    Ubuntu  32-bit and 64-bit: $ bash ./build_dwtlib.bat
    Windows 32-bit           : $ rdmd build_dwtlib.bat
    Windows 64-bit           : $ rdmd build_dwtlib.bat_m64
    
    $ cd ../examples
    
    Ubuntu : $ bash ./example.sh
    Windows: $ example.bat
    
    
  5. Add a dependency to your app's dub.json or dub.sdl, see the examples.

    dependency "dwtlib" version=">=3.0.0"
    
    

Snippets

Run Snippets in the examples folder:

$ example_console
    $ example_gui
    $ snippets_demo
    $ widgets_demo (this demo currently works on Windows only)

Or, run Snippets using rdub in the examples folder:

$ rdmd rdub snippets\Snippet251 --force

Here is a screenshot of the widgets_demo (a simplified version of the SWT controlexample):

Settings Window

Available versions

3.1.1 3.0.1 3.0.0 2.0.2 2.0.1 2.0.0 1.0.7 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0 0.2.0 0.1.3 0.1.1 0.1.0 ~master