tk-win 0.2.1-x86-mingw32 → 0.2.2-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,107 @@
1
+ #
2
+ # ttk::spinbox widget (Tcl/Tk 8.6b1 or later)
3
+ # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
4
+ #
5
+ require 'tk'
6
+ require 'tkextlib/tile.rb'
7
+
8
+ module Tk
9
+ module Tile
10
+ class TSpinbox < Tk::Tile::TEntry
11
+ end
12
+ Spinbox = TSpinbox
13
+ end
14
+ end
15
+
16
+ class Tk::Tile::TSpinbox < Tk::Tile::TEntry
17
+ include Tk::Tile::TileWidget
18
+
19
+ if Tk::Tile::USE_TTK_NAMESPACE
20
+ TkCommandNames = ['::ttk::spinbox'.freeze].freeze
21
+ else
22
+ TkCommandNames = ['::tspinbox'.freeze].freeze
23
+ end
24
+ WidgetClassName = 'TSpinbox'.freeze
25
+ WidgetClassNames[WidgetClassName] ||= self
26
+
27
+ class SpinCommand < TkValidateCommand
28
+ class ValidateArgs < TkUtil::CallbackSubst
29
+ KEY_TBL = [
30
+ [ ?d, ?s, :direction ],
31
+ [ ?s, ?e, :current ],
32
+ [ ?W, ?w, :widget ],
33
+ nil
34
+ ]
35
+
36
+ PROC_TBL = [
37
+ [ ?s, TkComm.method(:string) ],
38
+ [ ?w, TkComm.method(:window) ],
39
+
40
+ [ ?e, proc{|val|
41
+ #enc = Tk.encoding
42
+ enc = ((Tk.encoding)? Tk.encoding : Tk.encoding_system)
43
+ if enc
44
+ Tk.fromUTF8(TkComm::string(val), enc)
45
+ else
46
+ TkComm::string(val)
47
+ end
48
+ }
49
+ ],
50
+
51
+ nil
52
+ ]
53
+
54
+ _setup_subst_table(KEY_TBL, PROC_TBL);
55
+
56
+ def self.ret_val(val)
57
+ (val)? '1': '0'
58
+ end
59
+ end
60
+
61
+ def self._config_keys
62
+ ['command']
63
+ end
64
+ end
65
+
66
+ def __validation_class_list
67
+ super() << SpinCommand
68
+ end
69
+
70
+ Tk::ValidateConfigure.__def_validcmd(binding, SpinCommand)
71
+
72
+ def __boolval_optkeys
73
+ super() << 'wrap'
74
+ end
75
+ private :__boolval_optkeys
76
+
77
+ def __strval_optkeys
78
+ super() << 'buttonbackground' << 'format'
79
+ end
80
+ private :__strval_optkeys
81
+
82
+ def __listval_optkeys
83
+ super() << 'values'
84
+ end
85
+ private :__listval_optkeys
86
+
87
+ def self.style(*args)
88
+ [self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.')
89
+ end
90
+
91
+ def current
92
+ number(tk_send_without_enc('current'))
93
+ end
94
+ def current=(idx)
95
+ tk_send('current', idx)
96
+ end
97
+
98
+ def set(val)
99
+ tk_send('set', val)
100
+ end
101
+
102
+ alias identify ttk_identify
103
+ end
104
+
105
+ #Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Spinbox, :TkSpinbox)
106
+ Tk.__set_loaded_toplevel_aliases__('tkextlib/tile/tspinbox.rb',
107
+ :Ttk, Tk::Tile::Spinbox, :TkSpinbox)
@@ -0,0 +1,26 @@
1
+
2
+ [ Tcl/Tk Image formats (TkImg) support ]
3
+
4
+ TkImg contains a collection of format handlers for the Tk photo
5
+ image type, and a new image type, pixmaps.
6
+
7
+ Supported formats of TkImg version 1.3 are
8
+ -------------------------------------------------------
9
+ bmp : Windows Bitmap Format
10
+ gif : Graphics Interchange Format
11
+ ico : Windows Icon Format
12
+ jpeg : Joint Picture Expert Group format
13
+ pcx : Paintbrush Format
14
+ pixmap : Pixmap Image type
15
+ png : Portable Network Graphics format
16
+ ppm : Portable Pixmap format
17
+ ps : Adobe PostScript Format
18
+ sgi : SGI Native Format
19
+ sun : Sun Raster Format
20
+ tga : Truevision Targa Format
21
+ tiff : Tagged Image File Format
22
+ window : Tk Windows
23
+ xbm : X Window Bitmap Format
24
+ xpm : X Window Pixmap Format
25
+ -------------------------------------------------------
26
+
@@ -5,13 +5,13 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{tk-win}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
  s.platform = %q{x86-mingw32}
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
- s.authors = ["Hidetoshi NAGAI", "Elia Schito"]
12
+ s.authors = ["Hidetoshi Nagai", "Elia Schito"]
13
13
  s.date = %q{2010-07-21}
14
- s.description = %q{RubyTk bindings for windows bundled with tcltklib.so and tkutil.soin}
14
+ s.description = %q{RubyTk bindings for windows bundled with tcltklib.so and tkutil.so for windows RubyInstaller 1.9.1}
15
15
  s.email = %q{elia.schito@gmail.com}
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE",
@@ -24,12 +24,15 @@ Gem::Specification.new do |s|
24
24
  "README.rdoc",
25
25
  "Rakefile",
26
26
  "VERSION",
27
+ "lib/multi-tk.rb",
28
+ "lib/remote-tk.rb",
27
29
  "lib/tcltk.rb",
28
30
  "lib/tk.rb",
29
31
  "lib/tk/after.rb",
30
32
  "lib/tk/autoload.rb",
31
33
  "lib/tk/bgerror.rb",
32
34
  "lib/tk/bindtag.rb",
35
+ "lib/tk/busy.rb",
33
36
  "lib/tk/button.rb",
34
37
  "lib/tk/canvas.rb",
35
38
  "lib/tk/canvastag.rb",
@@ -43,6 +46,7 @@ Gem::Specification.new do |s|
43
46
  "lib/tk/entry.rb",
44
47
  "lib/tk/event.rb",
45
48
  "lib/tk/font.rb",
49
+ "lib/tk/fontchooser.rb",
46
50
  "lib/tk/frame.rb",
47
51
  "lib/tk/grid.rb",
48
52
  "lib/tk/image.rb",
@@ -236,21 +240,34 @@ Gem::Specification.new do |s|
236
240
  "lib/tkextlib/pkg_checker.rb",
237
241
  "lib/tkextlib/setup.rb",
238
242
  "lib/tkextlib/tcllib.rb",
243
+ "lib/tkextlib/tcllib/README",
239
244
  "lib/tkextlib/tcllib/autoscroll.rb",
245
+ "lib/tkextlib/tcllib/calendar.rb",
246
+ "lib/tkextlib/tcllib/canvas_sqmap.rb",
247
+ "lib/tkextlib/tcllib/canvas_zoom.rb",
248
+ "lib/tkextlib/tcllib/chatwidget.rb",
249
+ "lib/tkextlib/tcllib/crosshair.rb",
240
250
  "lib/tkextlib/tcllib/ctext.rb",
241
251
  "lib/tkextlib/tcllib/cursor.rb",
252
+ "lib/tkextlib/tcllib/dateentry.rb",
242
253
  "lib/tkextlib/tcllib/datefield.rb",
254
+ "lib/tkextlib/tcllib/diagrams.rb",
243
255
  "lib/tkextlib/tcllib/dialog.rb",
244
256
  "lib/tkextlib/tcllib/getstring.rb",
245
257
  "lib/tkextlib/tcllib/history.rb",
246
258
  "lib/tkextlib/tcllib/ico.rb",
247
259
  "lib/tkextlib/tcllib/ip_entry.rb",
260
+ "lib/tkextlib/tcllib/khim.rb",
261
+ "lib/tkextlib/tcllib/menuentry.rb",
262
+ "lib/tkextlib/tcllib/ntext.rb",
248
263
  "lib/tkextlib/tcllib/panelframe.rb",
249
264
  "lib/tkextlib/tcllib/plotchart.rb",
250
265
  "lib/tkextlib/tcllib/ruler.rb",
251
266
  "lib/tkextlib/tcllib/screenruler.rb",
267
+ "lib/tkextlib/tcllib/scrolledwindow.rb",
252
268
  "lib/tkextlib/tcllib/scrollwin.rb",
253
269
  "lib/tkextlib/tcllib/setup.rb",
270
+ "lib/tkextlib/tcllib/statusbar.rb",
254
271
  "lib/tkextlib/tcllib/style.rb",
255
272
  "lib/tkextlib/tcllib/superframe.rb",
256
273
  "lib/tkextlib/tcllib/swaplist.rb",
@@ -258,6 +275,7 @@ Gem::Specification.new do |s|
258
275
  "lib/tkextlib/tcllib/tablelist_core.rb",
259
276
  "lib/tkextlib/tcllib/tablelist_tile.rb",
260
277
  "lib/tkextlib/tcllib/tkpiechart.rb",
278
+ "lib/tkextlib/tcllib/toolbar.rb",
261
279
  "lib/tkextlib/tcllib/tooltip.rb",
262
280
  "lib/tkextlib/tcllib/widget.rb",
263
281
  "lib/tkextlib/tclx.rb",
@@ -284,6 +302,7 @@ Gem::Specification.new do |s|
284
302
  "lib/tkextlib/tile/tscale.rb",
285
303
  "lib/tkextlib/tile/tscrollbar.rb",
286
304
  "lib/tkextlib/tile/tseparator.rb",
305
+ "lib/tkextlib/tile/tspinbox.rb",
287
306
  "lib/tkextlib/tile/tsquare.rb",
288
307
  "lib/tkextlib/tkDND.rb",
289
308
  "lib/tkextlib/tkDND/setup.rb",
@@ -293,6 +312,7 @@ Gem::Specification.new do |s|
293
312
  "lib/tkextlib/tkHTML/htmlwidget.rb",
294
313
  "lib/tkextlib/tkHTML/setup.rb",
295
314
  "lib/tkextlib/tkimg.rb",
315
+ "lib/tkextlib/tkimg/README",
296
316
  "lib/tkextlib/tkimg/bmp.rb",
297
317
  "lib/tkextlib/tkimg/gif.rb",
298
318
  "lib/tkextlib/tkimg/ico.rb",
@@ -349,12 +369,12 @@ Gem::Specification.new do |s|
349
369
  "spec/tk-win_spec.rb",
350
370
  "tk-win.gemspec"
351
371
  ]
352
- s.homepage = %q{http://github.com/elia/tk-win}
372
+ s.homepage = %q{http://www.dumbo.ai.kyutech.ac.jp/nagai/RubyTk/?Ruby%2FTk-Kit}
353
373
  s.rdoc_options = ["--charset=UTF-8"]
354
- s.require_paths = ["lib", "lib/x86-mingw32", "lib/x86-mingw32"]
374
+ s.require_paths = ["lib", "lib/x86-mingw32"]
355
375
  s.required_ruby_version = Gem::Requirement.new("~> 1.9.1")
356
376
  s.rubygems_version = %q{1.3.7}
357
- s.summary = %q{RubyTk bindings for windows bundled with tcltklib and tkutil}
377
+ s.summary = %q{RubyTk bindings for MS Windows RubyInstaller 1.9.1 bundled with binaries.}
358
378
  s.test_files = [
359
379
  "spec/spec_helper.rb",
360
380
  "spec/tk-win_spec.rb"
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tk-win
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: x86-mingw32
12
12
  authors:
13
- - Hidetoshi NAGAI
13
+ - Hidetoshi Nagai
14
14
  - Elia Schito
15
15
  autorequire:
16
16
  bindir: bin
@@ -35,7 +35,7 @@ dependencies:
35
35
  version: 1.2.9
36
36
  type: :development
37
37
  version_requirements: *id001
38
- description: RubyTk bindings for windows bundled with tcltklib.so and tkutil.soin
38
+ description: RubyTk bindings for windows bundled with tcltklib.so and tkutil.so for windows RubyInstaller 1.9.1
39
39
  email: elia.schito@gmail.com
40
40
  executables: []
41
41
 
@@ -51,12 +51,15 @@ files:
51
51
  - README.rdoc
52
52
  - Rakefile
53
53
  - VERSION
54
+ - lib/multi-tk.rb
55
+ - lib/remote-tk.rb
54
56
  - lib/tcltk.rb
55
57
  - lib/tk.rb
56
58
  - lib/tk/after.rb
57
59
  - lib/tk/autoload.rb
58
60
  - lib/tk/bgerror.rb
59
61
  - lib/tk/bindtag.rb
62
+ - lib/tk/busy.rb
60
63
  - lib/tk/button.rb
61
64
  - lib/tk/canvas.rb
62
65
  - lib/tk/canvastag.rb
@@ -70,6 +73,7 @@ files:
70
73
  - lib/tk/entry.rb
71
74
  - lib/tk/event.rb
72
75
  - lib/tk/font.rb
76
+ - lib/tk/fontchooser.rb
73
77
  - lib/tk/frame.rb
74
78
  - lib/tk/grid.rb
75
79
  - lib/tk/image.rb
@@ -263,21 +267,34 @@ files:
263
267
  - lib/tkextlib/pkg_checker.rb
264
268
  - lib/tkextlib/setup.rb
265
269
  - lib/tkextlib/tcllib.rb
270
+ - lib/tkextlib/tcllib/README
266
271
  - lib/tkextlib/tcllib/autoscroll.rb
272
+ - lib/tkextlib/tcllib/calendar.rb
273
+ - lib/tkextlib/tcllib/canvas_sqmap.rb
274
+ - lib/tkextlib/tcllib/canvas_zoom.rb
275
+ - lib/tkextlib/tcllib/chatwidget.rb
276
+ - lib/tkextlib/tcllib/crosshair.rb
267
277
  - lib/tkextlib/tcllib/ctext.rb
268
278
  - lib/tkextlib/tcllib/cursor.rb
279
+ - lib/tkextlib/tcllib/dateentry.rb
269
280
  - lib/tkextlib/tcllib/datefield.rb
281
+ - lib/tkextlib/tcllib/diagrams.rb
270
282
  - lib/tkextlib/tcllib/dialog.rb
271
283
  - lib/tkextlib/tcllib/getstring.rb
272
284
  - lib/tkextlib/tcllib/history.rb
273
285
  - lib/tkextlib/tcllib/ico.rb
274
286
  - lib/tkextlib/tcllib/ip_entry.rb
287
+ - lib/tkextlib/tcllib/khim.rb
288
+ - lib/tkextlib/tcllib/menuentry.rb
289
+ - lib/tkextlib/tcllib/ntext.rb
275
290
  - lib/tkextlib/tcllib/panelframe.rb
276
291
  - lib/tkextlib/tcllib/plotchart.rb
277
292
  - lib/tkextlib/tcllib/ruler.rb
278
293
  - lib/tkextlib/tcllib/screenruler.rb
294
+ - lib/tkextlib/tcllib/scrolledwindow.rb
279
295
  - lib/tkextlib/tcllib/scrollwin.rb
280
296
  - lib/tkextlib/tcllib/setup.rb
297
+ - lib/tkextlib/tcllib/statusbar.rb
281
298
  - lib/tkextlib/tcllib/style.rb
282
299
  - lib/tkextlib/tcllib/superframe.rb
283
300
  - lib/tkextlib/tcllib/swaplist.rb
@@ -285,6 +302,7 @@ files:
285
302
  - lib/tkextlib/tcllib/tablelist_core.rb
286
303
  - lib/tkextlib/tcllib/tablelist_tile.rb
287
304
  - lib/tkextlib/tcllib/tkpiechart.rb
305
+ - lib/tkextlib/tcllib/toolbar.rb
288
306
  - lib/tkextlib/tcllib/tooltip.rb
289
307
  - lib/tkextlib/tcllib/widget.rb
290
308
  - lib/tkextlib/tclx.rb
@@ -311,6 +329,7 @@ files:
311
329
  - lib/tkextlib/tile/tscale.rb
312
330
  - lib/tkextlib/tile/tscrollbar.rb
313
331
  - lib/tkextlib/tile/tseparator.rb
332
+ - lib/tkextlib/tile/tspinbox.rb
314
333
  - lib/tkextlib/tile/tsquare.rb
315
334
  - lib/tkextlib/tkDND.rb
316
335
  - lib/tkextlib/tkDND/setup.rb
@@ -320,6 +339,7 @@ files:
320
339
  - lib/tkextlib/tkHTML/htmlwidget.rb
321
340
  - lib/tkextlib/tkHTML/setup.rb
322
341
  - lib/tkextlib/tkimg.rb
342
+ - lib/tkextlib/tkimg/README
323
343
  - lib/tkextlib/tkimg/bmp.rb
324
344
  - lib/tkextlib/tkimg/gif.rb
325
345
  - lib/tkextlib/tkimg/ico.rb
@@ -376,7 +396,7 @@ files:
376
396
  - spec/tk-win_spec.rb
377
397
  - tk-win.gemspec
378
398
  has_rdoc: true
379
- homepage: http://github.com/elia/tk-win
399
+ homepage: http://www.dumbo.ai.kyutech.ac.jp/nagai/RubyTk/?Ruby%2FTk-Kit
380
400
  licenses: []
381
401
 
382
402
  post_install_message:
@@ -385,7 +405,6 @@ rdoc_options:
385
405
  require_paths:
386
406
  - lib
387
407
  - lib/x86-mingw32
388
- - lib/x86-mingw32
389
408
  required_ruby_version: !ruby/object:Gem::Requirement
390
409
  none: false
391
410
  requirements:
@@ -412,7 +431,7 @@ rubyforge_project:
412
431
  rubygems_version: 1.3.7
413
432
  signing_key:
414
433
  specification_version: 3
415
- summary: RubyTk bindings for windows bundled with tcltklib and tkutil
434
+ summary: RubyTk bindings for MS Windows RubyInstaller 1.9.1 bundled with binaries.
416
435
  test_files:
417
436
  - spec/spec_helper.rb
418
437
  - spec/tk-win_spec.rb