Skip to content
This repository has been archived by the owner on Apr 11, 2020. It is now read-only.

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
ba0f3 committed Aug 17, 2018
1 parent b43e427 commit 2345853
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,25 @@ $ nimble install uibuilder

UIBuilder contains a library for load glade file and construct UI on-the-fly, another part - `uibuilder` binary - which generates a Nim module from glade file.

#### Load Glade file
#### Construct UI at compile-time
This method is prefered:
- Glade file compiled into AST at compile-time
- No more glade files in your distribution package
- Output module wont depends on UIBuilder
- Binary size reduced 50%


```nim
import ui, ospaths, uibuilderpkg/codegen
const path = joinPath(staticExec("pwd"), "test.glade")
init()
build(path)
mainLoop()
```

#### Load Glade on run-ime file

```nim
import ui, uibuilder
Expand Down Expand Up @@ -56,5 +74,5 @@ You can defined ajustment for `Slider` and `SpinBox` with `GtkAdjustment`

### Todos
- [ ] Better event handling
- [ ] Code generator for static layout
- [x] Code generator for static layout
- [ ] Support QT Designer layout file
4 changes: 2 additions & 2 deletions uibuilder.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.1.1"
version = "0.2.0"
author = "Huy Doan"
description = "UI building with Gnome\'s Glade"
license = "MIT"
Expand All @@ -10,4 +10,4 @@ bin = @["uibuilder"]

requires "nim >= 0.18.1"
requires "ui >= 0.9.2"
requires "https://github.com/ba0f3/xml.nim >= 0.1.1"
requires "https://github.com/ba0f3/xml.nim@#devel"

0 comments on commit 2345853

Please sign in to comment.