glimmer-dsl-tk 0.0.25 → 0.0.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +40 -0
- data/README.md +835 -122
- data/VERSION +1 -1
- data/glimmer-dsl-tk.gemspec +0 -0
- data/lib/glimmer/dsl/tk/built_in_dialog_expression.rb +57 -0
- data/lib/glimmer/dsl/tk/dsl.rb +1 -0
- data/lib/glimmer/tk/drag_and_drop_extension.rb +112 -0
- data/lib/glimmer/tk/label_proxy.rb +0 -9
- data/lib/glimmer/tk/root_proxy.rb +10 -34
- data/lib/glimmer/tk/text_proxy.rb +285 -9
- data/lib/glimmer/tk/widget_proxy.rb +88 -34
- data/samples/elaborate/meta_sample.rb +6 -6
- data/samples/hello/hello_built_in_dialog.rb +68 -0
- 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_message_box.rb +0 -4
- data/samples/hello/hello_separator.rb +69 -0
- data/samples/hello/hello_text.rb +246 -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/picture.png +0 -0
- data/samples/hello/images/redo.png +0 -0
- data/samples/hello/images/search.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: c1fcdcc1d27b712822692998523397ade9998b767e861b47f71cb09305d0590a
|
4
|
+
data.tar.gz: 7810abe93ea87970f241b1401e50c93303a571f753e4ef107753fabd40f5ebbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d622997fa2f4913ddda14fdab69fd26f40f97f83d7f8646be5a46c874dca53bbdaa73a7e884069a778ebfa2e6dadca3c1e5b61809a79a6b1cdd11236eac5272d
|
7
|
+
data.tar.gz: 97133b4cb58fce828ffa8f6d0c9b361c4681e19bffe4e752c1983e110150ac0d8dac6b464b622f649df68b987e1d3e469f1a7caf2defad2c402e1f405f78f8c4
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,45 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 0.0.29
|
4
|
+
|
5
|
+
- Hello, Built-in Dialog! (demonstrating all built-in dialogs like get_open_file and choose_color)
|
6
|
+
- Hello, Separator!
|
7
|
+
- Improve Hello, Text! (toolbar buttons: insert image)
|
8
|
+
- Removed unnecessary `text` widget `text` attribute after realizing `value` does the same thing
|
9
|
+
- Support `text` widget data-binding on 'modified' event and use in Hello, Text!
|
10
|
+
- Support `text#insert_image(text_index, *image_args)`
|
11
|
+
- Support `text#get_open_file_to_insert_image(text_index = 'insert')` shortcut for doing both `get_open_file` and `insert_image` in one shot
|
12
|
+
- Support built-in dialogs: `get_open_file(options = nil)`, `get_multiple_open_file(options = nil)`, `get_save_file(options = nil)`, `get_multiple_save_file(options = nil)`, `choose_directory(options = nil)`, `choose_color(options = nil)`, `choose_font(initial_font_args) {|font| do_something_with_font(font) }`
|
13
|
+
- Support built-in dialog aliases: `open_file`, `multiple_open_file`, `save_file`
|
14
|
+
- Enhance `get_open_file`/`get_multiple_open_file` `filetypes` support to take a real Ruby hash instead of `['{Image Files} {.png}']`
|
15
|
+
- Support `grid` keyword arg `'column_span'` (with _) and `'row_span'` as aliases for `'columnspan'` and `'rowspan'`
|
16
|
+
|
17
|
+
## 0.0.28
|
18
|
+
|
19
|
+
- Hello, Drag and Drop!
|
20
|
+
- Improve Hello, Text! (toolbar buttons: font family, font size, cut, copy, paste, undo, redo)
|
21
|
+
- Drag & Drop support
|
22
|
+
- Update default dimensions of Meta-Sample root window to 1280x720
|
23
|
+
- Have any widget with a `font` attribute (like `text`) support pre-defined fonts like `'caption'` and `'heading'` (just like `label`)
|
24
|
+
|
25
|
+
## 0.0.27
|
26
|
+
|
27
|
+
- Improve Hello, Text! (toolbar buttons: bold, italic, underline)
|
28
|
+
- Set correct `wrap 'word'` attribute for `text` widget in Hello, Text!
|
29
|
+
- Default `text` widget to `wrap = 'none'`
|
30
|
+
- Default `text` widget to `font = {family: 'Courier New'}`
|
31
|
+
- Fix issue with unbolding text in `text` widget when selecting multiple lines with an empty line
|
32
|
+
|
33
|
+
## 0.0.26
|
34
|
+
|
35
|
+
- Ensure spinbox data-binding updates on text key changes (without incrementing/decrementing)
|
36
|
+
- 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.
|
37
|
+
- Support font attribute for arbitrary fonts with terse syntax (`font 'times 12 bold'` not `font TkFont.new('times 12 bold')`)
|
38
|
+
- 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')`)
|
39
|
+
- 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
|
40
|
+
- 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
|
41
|
+
- Hello, Text! (a word processor with a toolbar having foreground color and background color)
|
42
|
+
|
3
43
|
## 0.0.25
|
4
44
|
|
5
45
|
- Elaborate, Meta-Sample
|