glimmer-dsl-tk 0.0.50 → 0.0.54

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/LICENSE.txt +1 -1
  4. data/README.md +243 -32
  5. data/VERSION +1 -1
  6. data/bin/girb +1 -1
  7. data/bin/girb_runner.rb +1 -1
  8. data/glimmer-dsl-tk.gemspec +0 -0
  9. data/lib/glimmer/data_binding/tk/list_selection_binding.rb +1 -1
  10. data/lib/glimmer/data_binding/tk/one_time_observer.rb +1 -1
  11. data/lib/glimmer/data_binding/tk/widget_binding.rb +1 -1
  12. data/lib/glimmer/dsl/tk/attribute_expression.rb +1 -1
  13. data/lib/glimmer/dsl/tk/bind_expression.rb +1 -1
  14. data/lib/glimmer/dsl/tk/block_attribute_expression.rb +1 -1
  15. data/lib/glimmer/dsl/tk/built_in_dialog_expression.rb +1 -1
  16. data/lib/glimmer/dsl/tk/data_binding_expression.rb +1 -1
  17. data/lib/glimmer/dsl/tk/dsl.rb +1 -1
  18. data/lib/glimmer/dsl/tk/format_expression.rb +1 -1
  19. data/lib/glimmer/dsl/tk/list_selection_data_binding_expression.rb +1 -1
  20. data/lib/glimmer/dsl/tk/message_box_expression.rb +1 -1
  21. data/lib/glimmer/dsl/tk/on_expression.rb +1 -1
  22. data/lib/glimmer/dsl/tk/root_expression.rb +1 -1
  23. data/lib/glimmer/dsl/tk/shine_data_binding_expression.rb +1 -1
  24. data/lib/glimmer/dsl/tk/widget_expression.rb +1 -1
  25. data/lib/glimmer/tk/checkbutton_proxy.rb +1 -1
  26. data/lib/glimmer/tk/combobox_proxy.rb +1 -1
  27. data/lib/glimmer/tk/drag_and_drop_event.rb +21 -0
  28. data/lib/glimmer/tk/draggable_and_droppable.rb +1 -1
  29. data/lib/glimmer/tk/entry_proxy.rb +1 -1
  30. data/lib/glimmer/tk/frame_proxy.rb +1 -1
  31. data/lib/glimmer/tk/label_proxy.rb +1 -1
  32. data/lib/glimmer/tk/labelframe_proxy.rb +39 -0
  33. data/lib/glimmer/tk/lbl_proxy.rb +1 -1
  34. data/lib/glimmer/tk/list_proxy.rb +1 -1
  35. data/lib/glimmer/tk/menu_item_proxy.rb +46 -11
  36. data/lib/glimmer/tk/menu_proxy.rb +1 -1
  37. data/lib/glimmer/tk/notebook_proxy.rb +1 -1
  38. data/lib/glimmer/tk/os.rb +1 -1
  39. data/lib/glimmer/tk/radiobutton_proxy.rb +1 -1
  40. data/lib/glimmer/tk/root_proxy.rb +1 -1
  41. data/lib/glimmer/tk/scrollbar_frame_proxy.rb +1 -1
  42. data/lib/glimmer/tk/spinbox_proxy.rb +1 -1
  43. data/lib/glimmer/tk/text_proxy.rb +1 -1
  44. data/lib/glimmer/tk/text_variable_owner.rb +1 -1
  45. data/lib/glimmer/tk/toplevel_proxy.rb +16 -2
  46. data/lib/glimmer/tk/treeview_proxy.rb +1 -1
  47. data/lib/glimmer/tk/variable_owner.rb +1 -1
  48. data/lib/glimmer/tk/widget.rb +1 -1
  49. data/lib/glimmer/tk/widget_proxy.rb +8 -3
  50. data/lib/glimmer-dsl-tk.rb +1 -1
  51. data/samples/elaborate/meta_sample.rb +1 -1
  52. data/samples/hello/hello_built_in_dialog.rb +1 -1
  53. data/samples/hello/hello_button.rb +1 -1
  54. data/samples/hello/hello_checkbutton.rb +1 -1
  55. data/samples/hello/hello_combobox.rb +1 -2
  56. data/samples/hello/hello_computed.rb +1 -1
  57. data/samples/hello/hello_contextual_menu.rb +9 -1
  58. data/samples/hello/hello_drag_and_drop.rb +1 -1
  59. data/samples/hello/hello_entry.rb +1 -1
  60. data/samples/hello/hello_frame.rb +1 -1
  61. data/samples/hello/hello_label.rb +1 -1
  62. data/samples/hello/hello_labelframe.rb +161 -0
  63. data/samples/hello/hello_list_multi_selection.rb +1 -1
  64. data/samples/hello/hello_list_single_selection.rb +1 -1
  65. data/samples/hello/hello_menu_bar.rb +13 -2
  66. data/samples/hello/hello_message_box.rb +1 -1
  67. data/samples/hello/hello_notebook.rb +1 -1
  68. data/samples/hello/hello_radiobutton.rb +1 -1
  69. data/samples/hello/hello_root.rb +1 -1
  70. data/samples/hello/hello_scrollbar.rb +1 -1
  71. data/samples/hello/hello_scrollbar_frame.rb +1 -1
  72. data/samples/hello/hello_separator.rb +1 -1
  73. data/samples/hello/hello_spinbox.rb +1 -1
  74. data/samples/hello/hello_text.rb +1 -1
  75. data/samples/hello/hello_toplevel.rb +1 -1
  76. data/samples/hello/hello_world.rb +1 -1
  77. metadata +7 -5
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2020-2021 Andy Maleh
1
+ # Copyright (c) 2020-2022 Andy Maleh
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining
4
4
  # a copy of this software and associated documentation files (the
@@ -41,7 +41,8 @@ root { |r|
41
41
  # Mac-specific application menu (right next to the Apple menu)
42
42
  if OS.mac?
43
43
  menu(:application) {
44
- menu_item(:about, label: 'About My Application') {
44
+ # menu_item(:about, label: 'About My Application') {
45
+ menu_item(:about) {
45
46
  accelerator 'Command+A'
46
47
 
47
48
  on('command') do
@@ -99,6 +100,8 @@ root { |r|
99
100
  menu_item(:separator)
100
101
 
101
102
  menu_item(label: 'Exit', underline: 1) {
103
+ accelerator 'Alt+F4'
104
+
102
105
  on('command') do
103
106
  exit(0)
104
107
  end
@@ -157,6 +160,10 @@ root { |r|
157
160
  menu_item(:radiobutton, label: image_name.capitalize) {
158
161
  selection image_name == 'usa'
159
162
  image File.expand_path("images/#{image_name}.png", __dir__)
163
+
164
+ on('command') do
165
+ message_box(parent: r, title: 'Language Selection', message: "You selected the language of #{image_name.capitalize}!")
166
+ end
160
167
  }
161
168
  end
162
169
  }
@@ -167,6 +174,10 @@ root { |r|
167
174
  selection image_name == 'usa'
168
175
  image File.expand_path("images/#{image_name}.png", __dir__)
169
176
  compound 'left'
177
+
178
+ on('command') do
179
+ message_box(parent: r, title: 'Country Selection', message: "You selected the country of #{image_name.capitalize}!")
180
+ end
170
181
  }
171
182
  end
172
183
  }
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2020-2021 Andy Maleh
1
+ # Copyright (c) 2020-2022 Andy Maleh
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining
4
4
  # a copy of this software and associated documentation files (the
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2020-2021 Andy Maleh
1
+ # Copyright (c) 2020-2022 Andy Maleh
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining
4
4
  # a copy of this software and associated documentation files (the
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2020-2021 Andy Maleh
1
+ # Copyright (c) 2020-2022 Andy Maleh
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining
4
4
  # a copy of this software and associated documentation files (the
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2020-2021 Andy Maleh
1
+ # Copyright (c) 2020-2022 Andy Maleh
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining
4
4
  # a copy of this software and associated documentation files (the
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2020-2021 Andy Maleh
1
+ # Copyright (c) 2020-2022 Andy Maleh
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining
4
4
  # a copy of this software and associated documentation files (the
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2020-2021 Andy Maleh
1
+ # Copyright (c) 2020-2022 Andy Maleh
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining
4
4
  # a copy of this software and associated documentation files (the
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2020-2021 Andy Maleh
1
+ # Copyright (c) 2020-2022 Andy Maleh
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining
4
4
  # a copy of this software and associated documentation files (the
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2020-2021 Andy Maleh
1
+ # Copyright (c) 2020-2022 Andy Maleh
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining
4
4
  # a copy of this software and associated documentation files (the
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2020-2021 Andy Maleh
1
+ # Copyright (c) 2020-2022 Andy Maleh
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining
4
4
  # a copy of this software and associated documentation files (the
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2020-2021 Andy Maleh
1
+ # Copyright (c) 2020-2022 Andy Maleh
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining
4
4
  # a copy of this software and associated documentation files (the
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2020-2021 Andy Maleh
1
+ # Copyright (c) 2020-2022 Andy Maleh
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining
4
4
  # a copy of this software and associated documentation files (the
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glimmer-dsl-tk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.50
4
+ version: 0.0.54
5
5
  platform: ruby
6
6
  authors:
7
7
  - AndyMaleh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-10 00:00:00.000000000 Z
11
+ date: 2022-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: glimmer
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.5.1
19
+ version: 2.6.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.5.1
26
+ version: 2.6.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: puts_debuggerer
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -213,6 +213,7 @@ files:
213
213
  - lib/glimmer/tk/entry_proxy.rb
214
214
  - lib/glimmer/tk/frame_proxy.rb
215
215
  - lib/glimmer/tk/label_proxy.rb
216
+ - lib/glimmer/tk/labelframe_proxy.rb
216
217
  - lib/glimmer/tk/lbl_proxy.rb
217
218
  - lib/glimmer/tk/list_proxy.rb
218
219
  - lib/glimmer/tk/menu_item_proxy.rb
@@ -242,6 +243,7 @@ files:
242
243
  - samples/hello/hello_entry.rb
243
244
  - samples/hello/hello_frame.rb
244
245
  - samples/hello/hello_label.rb
246
+ - samples/hello/hello_labelframe.rb
245
247
  - samples/hello/hello_list_multi_selection.rb
246
248
  - samples/hello/hello_list_single_selection.rb
247
249
  - samples/hello/hello_menu_bar.rb
@@ -295,7 +297,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
295
297
  - !ruby/object:Gem::Version
296
298
  version: '0'
297
299
  requirements: []
298
- rubygems_version: 3.2.31
300
+ rubygems_version: 3.3.1
299
301
  signing_key:
300
302
  specification_version: 4
301
303
  summary: Glimmer DSL for Tk