tkxml 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/.ruby CHANGED
@@ -1,34 +1,39 @@
1
- ---
2
- name: tkxml
3
- organizaton: RubyWorks
4
- title: TkXML
5
- contact: trans <transfire+tkxml AT gmail.com>
6
- requires:
7
- - group:
1
+ ---
2
+ source:
3
+ - meta
4
+ authors:
5
+ - name: 7rans
6
+ email: transfire+tkxml@gmail.com
7
+ copyrights:
8
+ - holder: Rubyworks
9
+ year: '2008'
10
+ license: BSD-2-Clause
11
+ replacements: []
12
+ alternatives: []
13
+ requirements:
14
+ - name: detroit
15
+ groups:
8
16
  - build
9
- name: syckle
10
- version: 0+
11
- - group:
17
+ development: true
18
+ - name: qed
19
+ groups:
12
20
  - test
13
- name: qed
14
- version: 0+
15
- pom_verison: 1.0.0
16
- manifest:
17
- - .ruby
18
- - lib/tkxml/nokogiri.rb
19
- - lib/tkxml/rexml.rb
20
- - lib/tkxml.rb
21
- - lib/tkxml.yml
22
- - test/test_tkxml.rb
23
- - test/ui.xml
24
- - HISTORY.rdoc
25
- - LICENSE
26
- - README.rdoc
27
- - VERSION
28
- version: 0.2.4
29
- copyright: (c) 2008 Trans
30
- licenses:
31
- - Apache 2.0
32
- description: TkXML translates XML markup into Ruby Tk interface code
21
+ development: true
22
+ dependencies: []
23
+ conflicts: []
24
+ repositories: []
25
+ resources:
26
+ home: http://rubyworks.github.com/tkxml
27
+ code: http://github.com/rubyworks/tkxml
28
+ mail: http://groups.google.com/group/rubyworks-mailinglist
29
+ extra: {}
30
+ load_path:
31
+ - lib
32
+ revision: 0
33
+ created: '2002-04-21'
33
34
  summary: XML markup for building Tk User interfaces
34
- created: 2008-02-21
35
+ title: TkXML
36
+ version: 0.3.1
37
+ name: tkxml
38
+ description: TkXML translates XML markup into Ruby Tk interface code
39
+ date: '2011-11-04'
@@ -1,5 +1,17 @@
1
1
  = RELEASE HISTORY
2
2
 
3
+ == 0.3.1 / 2011-11-04
4
+
5
+ One bug has been fixed that prevented Nokogiri from being used as
6
+ the backend adapter. other then that, this is a maintenance release
7
+ only to bring the build configuration up to date.
8
+
9
+ Changes:
10
+
11
+ * Fix bad Nokogiri attrs.
12
+ * Modernize build configuration.
13
+
14
+
3
15
  == 0.3.0 / 2011-03-05
4
16
 
5
17
  The REXML listener was causing an known error, and without word on
@@ -0,0 +1,31 @@
1
+ = COPYRIGHT NOTICES
2
+
3
+ == TkXML
4
+
5
+ Copyright:: (c) 2002 Thomas Sawyer, Rubyworks
6
+ License:: BSD-2-Clause
7
+ Website:: http://rubyworks.github.com/tkxml
8
+
9
+ Copyright 2002 Rubyworks. All rights reserved.
10
+
11
+ Redistribution and use in source and binary forms, with or without
12
+ modification, are permitted provided that the following conditions are met:
13
+
14
+ 1. Redistributions of source code must retain the above copyright notice,
15
+ this list of conditions and the following disclaimer.
16
+
17
+ 2. Redistributions in binary form must reproduce the above copyright
18
+ notice, this list of conditions and the following disclaimer in the
19
+ documentation and/or other materials provided with the distribution.
20
+
21
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
22
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
23
+ AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
24
+ COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
25
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26
+ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
28
+ OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
+
@@ -0,0 +1,43 @@
1
+ = TkXML
2
+
3
+ Here is an example of a very simple TkXML document:
4
+
5
+ <Tk:Root name="test" title="Test">
6
+ <Tk:Frame name="menuframe">
7
+ <Tk:Menubutton name="filebutton" text="File" underline="0">
8
+ <Tk:Menu name="filemenu" tearoff="false">
9
+ <Tk:_add
10
+ _1="command"
11
+ label="Open"
12
+ command="openDocument"
13
+ underline="0"
14
+ accel="Ctrl+O" />
15
+ <Tk:_add
16
+ _1="command"
17
+ label="Exit"
18
+ command="exitApplication"
19
+ underline="0"
20
+ accel="Ctrl+Q" />
21
+ </Tk:Menu>
22
+ <Tk:_pack side="left" />
23
+ </Tk:Menubutton>
24
+ <Tk:_pack side="left" />
25
+ </Tk:Frame>
26
+ <Tk:_bind
27
+ _1="Control-o"
28
+ _2="openDocument" />
29
+ <Tk:_bind
30
+ _1="Control-q"
31
+ _2="exitApplication" />
32
+ </Tk:Root>
33
+
34
+ To run the Tk application, let us assume the above document has been read
35
+ from file and stored in +source+. Then:
36
+
37
+ tkxml = TkXML.new(source)
38
+ tkxml.build
39
+
40
+ Notice we have not created any methods for the commands. This is something
41
+ that still needs to be done.
42
+
43
+
@@ -1,10 +1,20 @@
1
1
  = TkXML
2
2
 
3
- An XML markup lanaguage for generating Tk user-interfaces. It was inspired
3
+ {Homepage}[http://rubyworks.github.com/tkxml] |
4
+ {Source Code}[http://github.com/rubyworks/tkxml] |
5
+ {Mailing List}[http://groups.google.com/group/rubyworks-mailinglist]
6
+
7
+ {<img src="http://travis-ci.org/rubyworks/tkxml.png" />}[http://travis-ci.org/rubyworks/tkxml]
8
+
9
+
10
+ == DESCRIPTION
11
+
12
+ An XML markup language for generating Tk user-interfaces. It was inspired
4
13
  by GTK's glade format. The TkXML format defines a very simple one-to-one
5
- correlatation to the Ruby Tk API.
14
+ correlation to the Ruby Tk API.
15
+
6
16
 
7
- == Usage
17
+ == SYNOPSIS
8
18
 
9
19
  Here's an +example.xml+ TkXML file:
10
20
 
@@ -30,25 +40,25 @@ To use the library:
30
40
  tkxml = TkXML.new(File.read('example.xml'))
31
41
  tkxml.build
32
42
 
43
+
33
44
  == STATUS
34
45
 
35
- At ths point, TkXML is little more than an interesting expirement in encoding
36
- GUIs via markup. But it certainly has the potential of becoming a productive
46
+ At this point, TkXML is little more than an interesting experiment in encoding
47
+ GUIs via markup. But it may well have the potential of becoming a productive
37
48
  tool if someone were inclined to further it's development.
38
49
 
39
- == COPYING
40
50
 
41
- Copyright (c) 2002 Thomas Sawyer
51
+ == HISTORY
52
+
53
+ An interesting side note. TkXML is the oldest bit of redistributed Ruby code
54
+ your humble author had ever writ.
55
+
56
+
57
+ == COPYRIGHTS
42
58
 
43
- Licensed under the Apache License, Version 2.0 (the "License");
44
- you may not use this file except in compliance with the License.
45
- You may obtain a copy of the License at
59
+ Copyright (c) 2002 Rubyworks
46
60
 
47
- http://www.apache.org/licenses/LICENSE-2.0
61
+ TkXML is distributable in accordance with the *BSD-2-Clause* license.
48
62
 
49
- Unless required by applicable law or agreed to in writing, software
50
- distributed under the License is distributed on an "AS IS" BASIS,
51
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
52
- See the License for the specific language governing permissions and
53
- limitations under the License.
63
+ See NOTICE.rdoc for details.
54
64
 
@@ -0,0 +1,555 @@
1
+ # widgets
2
+
3
+ <button>
4
+
5
+ <activatebackground>
6
+ <activeforeground>
7
+ <anchor>
8
+ <background>
9
+ <bitmap>
10
+ <borderwidth>
11
+ <cursor>
12
+ <disabledforeground>
13
+ <font>
14
+ <foreground>
15
+ <highlightbackground>
16
+ <highlightcolor>
17
+ <highlightthickness>
18
+ <image>
19
+ <justify>
20
+ <padx>
21
+ <pady>
22
+ <relief>
23
+ <repeatdelay>
24
+ <repeatinterval>
25
+ <state>
26
+ <takefocus>
27
+ <text>
28
+ <textvariable>
29
+ <underline>
30
+ <wraplength>
31
+
32
+ <command>
33
+ <compound>
34
+ <default>
35
+ <height>
36
+ <overrelief>
37
+ <width>
38
+
39
+ </button>
40
+
41
+
42
+ <canvas>
43
+
44
+ <background>
45
+ <borderwidth>
46
+ <cursor>
47
+ <highlightbackground>
48
+ <highlightcolor>
49
+ <highlightthickness>
50
+ <insertbackground>
51
+ <insertborderwidth>
52
+ <insertofftime>
53
+ <insertontime>
54
+ <insertwidth>
55
+ <relief>
56
+ <selectbackground>
57
+ <selectborderwidth>
58
+ <selectforeground>
59
+ <state>
60
+ <takefocus>
61
+ <xscrollcommand>
62
+ <yscrollcommand>
63
+
64
+ <closeenough>
65
+ <confine>
66
+ <height>
67
+ <scrollregion>
68
+ <width>
69
+ <xscrollincrement>
70
+ <yscrollincrement>
71
+
72
+ </canvas>
73
+
74
+
75
+ <checkbutton>
76
+
77
+ <activatebackground>
78
+ <activeforeground>
79
+ <anchor>
80
+ <background>
81
+ <bitmap>
82
+ <borderwidth>
83
+ <cursor>
84
+ <disabledforeground>
85
+ <font>
86
+ <foreground>
87
+ <highlightbackground>
88
+ <highlightcolor>
89
+ <highlightthickness>
90
+ <image>
91
+ <justify>
92
+ <padx>
93
+ <pady>
94
+ <relief>
95
+ <state>
96
+ <takefocus>
97
+ <text>
98
+ <textvariable>
99
+ <underline>
100
+ <wraplength>
101
+
102
+ <command>
103
+ <height>
104
+ <indicatoron>
105
+ <offvalue>
106
+ <onvalue>
107
+ <overrelief>
108
+ <selectcolor>
109
+ <selectimage>
110
+ <variable>
111
+ <width>
112
+
113
+ </checkbutton>
114
+
115
+
116
+ <entry>
117
+
118
+ <background>
119
+ <borderwidth>
120
+ <cursor>
121
+ <exportselection>
122
+ <font>
123
+ <foreground>
124
+ <highlightbackground>
125
+ <highlightcolor>
126
+ <highlightthickness>
127
+ <insertbackground>
128
+ <insertborderwidth>
129
+ <insertofftime>
130
+ <insertontime>
131
+ <insertwidth>
132
+ <justify>
133
+ <relief>
134
+ <selectbackground>
135
+ <selectborderwidth>
136
+ <selectforeground>
137
+ <state>
138
+ <takefocus>
139
+ <textvariable>
140
+ <xscrollcommand>
141
+
142
+ <disabledbackground>
143
+ <disabledforeground>
144
+ <invalidcommand>
145
+ <invcmd>
146
+ <readonlybackground>
147
+ <show>
148
+ <validate>
149
+ <validatecommand>
150
+ <vcmd>
151
+ <width>
152
+
153
+ </entry>
154
+
155
+
156
+ <frame>
157
+
158
+ <borderwidth>
159
+ <cursor>
160
+ <highlighbackground>
161
+ <highlightcolor>
162
+ <highlightthickness>
163
+ <padx>
164
+ <pady>
165
+ <relief>
166
+ <takefocus>
167
+
168
+ <background>
169
+ <class>
170
+ <colormap>
171
+ <container>
172
+ <height>
173
+ <visual>
174
+ <width>
175
+
176
+ </frame>
177
+
178
+
179
+ <label>
180
+
181
+ <activebackground>
182
+ <activeforeground>
183
+ <anchor>
184
+ <background
185
+ <bitmap>
186
+ <borderwidth>
187
+ <cursor>
188
+ <disabledforeground>
189
+ <font>
190
+ <foreground>
191
+ <highlightbackground>
192
+ <highlightcolor>
193
+ <highlightthickness>
194
+ <image>
195
+ <justify>
196
+ <padx>
197
+ <pady>
198
+ <relief>
199
+ <takefocus>
200
+ <text>
201
+ <textvariable>
202
+ <underline>
203
+ <wraplength>
204
+
205
+ <height>
206
+ <state>
207
+ <width>
208
+
209
+ </label>
210
+
211
+
212
+ <labelframe>
213
+
214
+ <borderwidth>
215
+ <cursor>
216
+ <font>
217
+ <foreground>
218
+ <highlightbackground>
219
+ <highlightcolor>
220
+ <highlightthickness>
221
+ <padx>
222
+ <pady>
223
+ <relief>
224
+ <takefocus>
225
+ <text>
226
+
227
+ <background>
228
+ <class>
229
+ <colormap>
230
+ <container>
231
+ <height>
232
+ <labelanchor>
233
+ <labelwidget>
234
+ <visual>
235
+ <width>
236
+
237
+ </labelframe>
238
+
239
+
240
+ <listbox>
241
+
242
+ background
243
+ borderwidth
244
+ cursor
245
+ disabledforeground
246
+ exportselection
247
+ font
248
+ foreground
249
+ height
250
+ highlightbackground
251
+ highlightcolor
252
+ highlightthickness
253
+ relief
254
+ selectbackground
255
+ selectborderwidth
256
+ selectforeground
257
+ setgrid
258
+ state
259
+ takefocus
260
+ width
261
+ xscrollcommand
262
+ yscrollcommand
263
+
264
+ height
265
+ listvariable
266
+ selectmode
267
+ state
268
+ width
269
+
270
+ </listbox>
271
+
272
+
273
+ <menu>
274
+ <activebackground>
275
+ <activeborderwidth>
276
+ <activeforeground>
277
+ <background>
278
+ <borderwidth>
279
+ <cursor>
280
+ <disabledforeground>
281
+ <font>
282
+ <foreground>
283
+ <relief>
284
+ <takefocus>
285
+ <postcommand>
286
+ <selectcolor>
287
+ <tearoff>
288
+ <tearoffcommand>
289
+ <title>
290
+ <type>
291
+ </menu>
292
+
293
+
294
+ <menubutton>
295
+ -activebackground
296
+ -activeforeground
297
+ -anchor
298
+ -background
299
+ -bitmap
300
+ -borderwidth
301
+ -cursor
302
+ -disabledforeground
303
+ -font
304
+ -foreground
305
+ -highlightbackground
306
+ -highlightcolor
307
+ -highlightthickness
308
+ -image
309
+ -justify
310
+ -padx
311
+ -pady
312
+ -relief
313
+ -takefocus
314
+ -text
315
+ -textvariable
316
+ -underline
317
+ -wraplength
318
+ -compound
319
+ -direction
320
+ -height
321
+ -indicatoron
322
+ -menu
323
+ -state
324
+ -width
325
+ </menubutton>
326
+
327
+
328
+ <message>
329
+ <anchor>
330
+ <background>
331
+ <borderwidth>
332
+ <cursor>
333
+ <font>
334
+ <foreground>
335
+ <highlightbackground>
336
+ <highlightcolor>
337
+ <highlightthickness>
338
+ <padx>
339
+ <pady>
340
+ <relief>
341
+ <takefocus>
342
+ <text>
343
+ <textvariable>
344
+ <width>
345
+ <aspect>
346
+ <justify>
347
+ </message>
348
+
349
+
350
+ <tk_optionMenu>
351
+ <name>
352
+ <variablename>
353
+ <value>
354
+ </tk_optionMenu>
355
+
356
+
357
+ <panedwindow>
358
+ <background>
359
+ <borderwidth>
360
+ <cursor>
361
+ <height>
362
+ <orient>
363
+ <relief>
364
+ <width>
365
+ <handlepad>
366
+ <handlesize>
367
+ <opaqueresize>
368
+ <sashcursor>
369
+ <sashpad>
370
+ <sashrelief>
371
+ <sashwidth>
372
+ <showhandle>
373
+ </panedwindow>
374
+
375
+
376
+ <radiobutton>
377
+ activebackground
378
+ activeforeground
379
+ anchor
380
+ background
381
+ bitmap
382
+ borderwidth
383
+ cursor
384
+ disabledforeground
385
+ font
386
+ foreground
387
+ highlightbackground
388
+ highlightcolor
389
+ highlightthickness
390
+ image
391
+ justify
392
+ padx
393
+ pady
394
+ relief
395
+ takefocus
396
+ text
397
+ textvariable
398
+ underline
399
+ wraplength
400
+ command
401
+ height
402
+ indicatoron
403
+ selectcolor
404
+ overrelief
405
+ selectimage
406
+ state
407
+ value
408
+ variable
409
+ width
410
+ </radiobutton>
411
+
412
+
413
+ <scale>
414
+ activebackground
415
+ background
416
+ borderwidth
417
+ cursor
418
+ font
419
+ foreground
420
+ highlightbackground
421
+ highlightcolor
422
+ highlightthickness
423
+ orient
424
+ relief
425
+ repeatdelay
426
+ repeatinterval
427
+ takefocus
428
+ troughcolor
429
+ bigincrement
430
+ command
431
+ digits
432
+ from
433
+ label
434
+ length
435
+ resolution
436
+ showvalue
437
+ sliderlength
438
+ sliderrelief
439
+ state
440
+ tickinterval
441
+ to
442
+ variable
443
+ width
444
+ </scale>
445
+
446
+
447
+
448
+ <scrollbar>
449
+ activebackground
450
+ background
451
+ borderwidth
452
+ cursor
453
+ highlightbackground
454
+ highlightcolor
455
+ highlightthickness
456
+ jump
457
+ orient
458
+ relief
459
+ repeatdelay
460
+ repeatinterval
461
+ takefocus
462
+ troughcolor
463
+ activerelief
464
+ command
465
+ elementborderwidth
466
+ width
467
+ </scrollbar>
468
+
469
+
470
+ <spinbox>
471
+ activebackground
472
+ background
473
+ borderwidth
474
+ cursor
475
+ exportselection
476
+ font
477
+ foreground
478
+ highlightbackground
479
+ highlightcolor
480
+ highlightthickness
481
+ insertbackground
482
+ insertborderwidth
483
+ insertofftime
484
+ insertontime
485
+ insertwidth
486
+ justify
487
+ relief
488
+ repeatdelay
489
+ repeatinterval
490
+ selectbackground
491
+ selectborderwidth
492
+ selectforeground
493
+ takefocus
494
+ textvariable
495
+ xscrollcommand
496
+ buttonbackground
497
+ buttoncursor
498
+ buttondownrelief
499
+ buttonuprelief
500
+ command
501
+ disabledbackground
502
+ disabledforeground
503
+ format
504
+ from
505
+ invalidcommand
506
+ invcmd
507
+ increment
508
+ readonlybackground
509
+ state
510
+ to
511
+ validate
512
+ validatecommand
513
+ vcmd
514
+ values
515
+ width
516
+ wrap
517
+ </spinbox>
518
+
519
+
520
+ <text>
521
+ background
522
+ borderwidth
523
+ cursor
524
+ exportselection
525
+ font
526
+ foreground
527
+ highlightbackground
528
+ highlightcolor
529
+ highlightthickness
530
+ insertbackground
531
+ insertborderwidth
532
+ insertofftime
533
+ insertontime
534
+ insertwidth
535
+ padx
536
+ pady
537
+ relief
538
+ selectbackground
539
+ selectborderwidth
540
+ selectforeground
541
+ setgrid
542
+ takefocus
543
+ xscrollcommand
544
+ yscrollcommand
545
+ autoseparators
546
+ height
547
+ spacing1
548
+ spacing2
549
+ spacing3
550
+ state
551
+ tabs
552
+ undo
553
+ width
554
+ wrap
555
+ </text>