glimmer-dsl-tk 0.0.24 → 0.0.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +37 -0
- data/README.md +548 -100
- data/VERSION +1 -1
- data/glimmer-dsl-tk.gemspec +0 -0
- data/lib/glimmer/dsl/tk/format_expression.rb +39 -0
- data/lib/glimmer/dsl/tk/root_expression.rb +1 -1
- data/lib/glimmer/tk/drag_and_drop_extension.rb +112 -0
- data/lib/glimmer/tk/frame_proxy.rb +8 -0
- data/lib/glimmer/tk/label_proxy.rb +0 -9
- data/lib/glimmer/tk/radiobutton_proxy.rb +1 -1
- data/lib/glimmer/tk/root_proxy.rb +17 -35
- data/lib/glimmer/tk/spinbox_proxy.rb +52 -0
- data/lib/glimmer/tk/text_proxy.rb +350 -0
- data/lib/glimmer/tk/widget_proxy.rb +109 -35
- data/samples/elaborate/meta_sample.rb +138 -0
- data/samples/hello/hello_checkbutton.rb +0 -1
- data/samples/hello/hello_combobox.rb +2 -1
- data/samples/hello/hello_drag_and_drop.rb +159 -0
- data/samples/hello/hello_entry.rb +2 -2
- data/samples/hello/hello_radiobutton.rb +21 -1
- data/samples/hello/hello_spinbox.rb +75 -0
- data/samples/hello/hello_text.rb +222 -0
- data/samples/hello/images/copy.png +0 -0
- data/samples/hello/images/cut.png +0 -0
- data/samples/hello/images/paste.png +0 -0
- data/samples/hello/images/redo.png +0 -0
- data/samples/hello/images/undo.png +0 -0
- metadata +19 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2da9cdf30a1b710a0122d360320ffe0300a1a325eba5cf35f4749005673b2f9d
|
4
|
+
data.tar.gz: c58af78a953f2feb85dd639595e3a47ea69bcba2097f155124e3597c48080d88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e3faf577f5abc1ca7b9e0597fc5e36f7b917c5afc3dbcc0bee99d8168ab5b30a5f571d73a495f7ca86c2e574e4c6e6272d0b83853081020d1ebce9c2b3d6f9c
|
7
|
+
data.tar.gz: 741c9d95b80cff4c7666d78ce7ad0600e9227d5808982e5ea8a5728c39ad0e717148746febc5c57ba7c3d3896e4815ef096d7d41e3b6c52e46f566f5c0053353
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,42 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 0.0.28
|
4
|
+
|
5
|
+
- Hello, Drag and Drop!
|
6
|
+
- Improve Hello, Text! (toolbar buttons: font family, font size, cut, copy, paste, undo, redo)
|
7
|
+
- Drag & Drop support
|
8
|
+
- Update default dimensions of Meta-Sample root window to 1280x720
|
9
|
+
- Have any widget with a `font` attribute (like `text`) support pre-defined fonts like `'caption'` and `'heading'` (just like `label`)
|
10
|
+
|
11
|
+
## 0.0.27
|
12
|
+
|
13
|
+
- Improve Hello, Text! (toolbar buttons: bold, italic, underline)
|
14
|
+
- Set correct `wrap 'word'` attribute for `text` widget in Hello, Text!
|
15
|
+
- Default `text` widget to `wrap = 'none'`
|
16
|
+
- Default `text` widget to `font = {family: 'Courier New'}`
|
17
|
+
- Fix issue with unbolding text in `text` widget when selecting multiple lines with an empty line
|
18
|
+
|
19
|
+
## 0.0.26
|
20
|
+
|
21
|
+
- Ensure spinbox data-binding updates on text key changes (without incrementing/decrementing)
|
22
|
+
- Optimize `text=` attribute setter on `text` widget when setting a text value that includes all previous text by having it not delete and reinsert, yet append instead.
|
23
|
+
- Support font attribute for arbitrary fonts with terse syntax (`font 'times 12 bold'` not `font TkFont.new('times 12 bold')`)
|
24
|
+
- Support a quicker way of tagging (instead of the two-step process of tagging with a keyword and then configuring the keyword style) (e.g. `text.tag(5.0, 6.0, :background=>'yellow', :font=>'TkFixedFont', :relief=>'raised')`)
|
25
|
+
- Support styles (via `style` keyword or with attribute defaulting to style when not available) and ability to define and apply a style in one shot
|
26
|
+
- Support `TextProxy#toggle_format` (+ `TextProxy#add_format` & `TextProxy#remove_format`) to be able to toggle a tag format option on or off for `text` widget in one shot instead of having to apply a tag and then configure a tag format
|
27
|
+
- Hello, Text! (a word processor with a toolbar having foreground color and background color)
|
28
|
+
|
29
|
+
## 0.0.25
|
30
|
+
|
31
|
+
- Elaborate, Meta-Sample
|
32
|
+
- Hello, Spinbox!
|
33
|
+
- Support `spinbox` `command {}` and `on('increment') {}` / `on('decrement') {}`
|
34
|
+
- Support `spinbox` `format` attribute (e.g. `format '%0.2f'`
|
35
|
+
- Make `grid sticky: 'nsew', column_weight: 1` the default for all widgets (column weight is only applied to the first widget in a series of siblings)
|
36
|
+
- Support `text` widget with `text` attribute/data-binding just like `entry`
|
37
|
+
- Set `background '#ececec' if OS.mac?` on `root` by default
|
38
|
+
- Support `'modified'`/`'selected'` event bindings for `text` widget
|
39
|
+
|
3
40
|
## 0.0.24
|
4
41
|
|
5
42
|
- Hello, Entry!
|