arcadia 0.9.3 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. data/README +11 -10
  2. data/bin/arcadia +3 -0
  3. data/conf/arcadia.conf +117 -75
  4. data/conf/arcadia.res.rb +219 -58
  5. data/conf/theme-dark.conf +11 -8
  6. data/conf/theme-dark.res.rb +81 -10
  7. data/ext/ae-breakpoints/ae-breakpoints.rb +1 -1
  8. data/ext/ae-dir-projects/ae-dir-projects.conf +2 -2
  9. data/ext/ae-dir-projects/ae-dir-projects.rb +84 -47
  10. data/ext/ae-editor/ae-editor.rb +541 -190
  11. data/ext/ae-editor/langs/coderay.tokens +1 -0
  12. data/ext/ae-editor/langs/conf.lang +5 -4
  13. data/ext/ae-editor/langs/java.lang +2 -1
  14. data/ext/ae-editor/langs/python.lang +4 -0
  15. data/ext/ae-editor/langs/rhtml.lang +2 -1
  16. data/ext/ae-editor/langs/ruby.lang +45 -0
  17. data/ext/ae-editor/langs/tcl.lang +80 -2
  18. data/ext/ae-editor/langs/text.lang +2 -0
  19. data/ext/ae-editor/langs/xml.lang +1 -0
  20. data/ext/ae-file-history/ae-file-history.conf +2 -2
  21. data/ext/ae-file-history/ae-file-history.rb +66 -20
  22. data/ext/ae-output/ae-output.conf +3 -3
  23. data/ext/ae-output/ae-output.rb +37 -23
  24. data/ext/ae-rad/ae-rad-palette.rb +3 -3
  25. data/ext/ae-ruby-debug/ae-ruby-debug.conf +2 -2
  26. data/ext/ae-ruby-debug/ae-ruby-debug.rb +38 -42
  27. data/ext/ae-search-in-files/ae-search-in-files.conf +2 -2
  28. data/ext/ae-search-in-files/ae-search-in-files.rb +20 -9
  29. data/ext/ae-search-in-files/ext/ack-in-files/ack-in-files.conf +2 -2
  30. data/ext/ae-shell/ae-shell.conf +1 -1
  31. data/ext/ae-shell/ae-shell.rb +57 -46
  32. data/ext/ae-subprocess-inspector/ae-subprocess-inspector.rb +99 -46
  33. data/ext/ae-subprocess-inspector/process.res +0 -0
  34. data/lib/a-commons.rb +13 -9
  35. data/lib/a-contracts.rb +24 -1
  36. data/lib/a-core.rb +586 -196
  37. data/lib/a-tkcommons.rb +155 -55
  38. data/lib/anigif.rb +9 -0
  39. data/lib/ctags.exe +0 -0
  40. data/tcl/anigif/anigif.tcl +199 -0
  41. data/tcl/anigif/pkgIndex.tcl +3 -0
  42. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/ArrowButton.html +0 -0
  43. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/BWidget.html +0 -0
  44. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/Button.html +36 -2
  45. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/ButtonBox.html +9 -7
  46. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/ComboBox.html +0 -0
  47. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/Dialog.html +5 -11
  48. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/DragSite.html +0 -0
  49. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/DropSite.html +0 -0
  50. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/DynamicHelp.html +0 -0
  51. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/Entry.html +0 -0
  52. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/Label.html +32 -1
  53. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/LabelEntry.html +0 -0
  54. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/LabelFrame.html +0 -0
  55. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/ListBox.html +0 -0
  56. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/MainFrame.html +0 -0
  57. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/MessageDlg.html +0 -0
  58. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/NoteBook.html +0 -0
  59. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/PagesManager.html +0 -0
  60. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/PanedWindow.html +0 -0
  61. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/PanelFrame.html +0 -0
  62. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/PasswdDlg.html +0 -0
  63. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/ProgressBar.html +0 -0
  64. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/ProgressDlg.html +0 -0
  65. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/ScrollView.html +0 -0
  66. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/ScrollableFrame.html +0 -0
  67. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/ScrolledWindow.html +13 -1
  68. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/SelectColor.html +0 -0
  69. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/SelectFont.html +0 -0
  70. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/Separator.html +0 -0
  71. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/SpinBox.html +0 -0
  72. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/StatusBar.html +0 -0
  73. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/TitleFrame.html +0 -0
  74. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/Tree.html +0 -0
  75. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/Widget.html +0 -0
  76. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/contents.html +12 -1
  77. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/index.html +0 -0
  78. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/navtree.html +0 -0
  79. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/options.htm +0 -0
  80. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/CHANGES.txt +0 -0
  81. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/ChangeLog +70 -0
  82. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/LICENSE.txt +0 -0
  83. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/README.txt +0 -0
  84. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/arrow.tcl +0 -0
  85. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/bitmap.tcl +0 -0
  86. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/button.tcl +121 -53
  87. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/buttonbox.tcl +10 -5
  88. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/color.tcl +0 -0
  89. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/combobox.tcl +0 -0
  90. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/demo/basic.tcl +0 -0
  91. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/demo/bwidget.xbm +0 -0
  92. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/demo/demo.tcl +0 -0
  93. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/demo/dnd.tcl +0 -0
  94. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/demo/manager.tcl +0 -0
  95. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/demo/select.tcl +0 -0
  96. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/demo/tmpldlg.tcl +0 -0
  97. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/demo/tree.tcl +0 -0
  98. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/demo/x1.xbm +0 -0
  99. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/dialog.tcl +14 -2
  100. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/dragsite.tcl +0 -0
  101. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/dropsite.tcl +0 -0
  102. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/dynhelp.tcl +0 -0
  103. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/entry.tcl +0 -0
  104. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/font.tcl +0 -0
  105. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/bold.gif +0 -0
  106. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/copy.gif +0 -0
  107. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/cut.gif +0 -0
  108. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/dragfile.gif +0 -0
  109. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/dragicon.gif +0 -0
  110. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/error.gif +0 -0
  111. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/file.gif +0 -0
  112. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/folder.gif +0 -0
  113. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/hourglass.gif +0 -0
  114. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/info.gif +0 -0
  115. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/italic.gif +0 -0
  116. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/minus.xbm +0 -0
  117. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/new.gif +0 -0
  118. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/opcopy.xbm +0 -0
  119. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/open.gif +0 -0
  120. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/openfold.gif +0 -0
  121. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/oplink.xbm +0 -0
  122. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/opmove.xbm +0 -0
  123. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/overstrike.gif +0 -0
  124. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/palette.gif +0 -0
  125. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/passwd.gif +0 -0
  126. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/paste.gif +0 -0
  127. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/plus.xbm +0 -0
  128. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/print.gif +0 -0
  129. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/question.gif +0 -0
  130. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/redo.gif +0 -0
  131. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/save.gif +0 -0
  132. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/target.xbm +0 -0
  133. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/underline.gif +0 -0
  134. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/undo.gif +0 -0
  135. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/warning.gif +0 -0
  136. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/init.tcl +15 -1
  137. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/label.tcl +76 -18
  138. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/labelentry.tcl +0 -0
  139. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/labelframe.tcl +0 -0
  140. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/lang/da.rc +0 -0
  141. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/lang/de.rc +0 -0
  142. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/lang/en.rc +0 -0
  143. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/lang/es.rc +0 -0
  144. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/lang/fr.rc +0 -0
  145. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/lang/hu.rc +0 -0
  146. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/lang/nl.rc +0 -0
  147. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/lang/no.rc +0 -0
  148. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/lang/pl.rc +0 -0
  149. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/listbox.tcl +0 -0
  150. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/mainframe.tcl +3 -2
  151. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/messagedlg.tcl +0 -0
  152. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/notebook.tcl +0 -0
  153. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/pagesmgr.tcl +0 -0
  154. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/panedw.tcl +0 -0
  155. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/panelframe.tcl +0 -0
  156. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/passwddlg.tcl +0 -0
  157. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/pkgIndex.tcl +2 -2
  158. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/progressbar.tcl +0 -0
  159. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/progressdlg.tcl +0 -0
  160. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/scrollframe.tcl +0 -0
  161. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/scrollview.tcl +0 -0
  162. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/scrollw.tcl +37 -25
  163. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/separator.tcl +0 -0
  164. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/spinbox.tcl +0 -0
  165. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/statusbar.tcl +0 -0
  166. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/tests/entry.test +0 -0
  167. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/titleframe.tcl +0 -0
  168. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/tree.tcl +17 -9
  169. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/utils.tcl +0 -0
  170. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/widget.tcl +0 -0
  171. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/wizard.tcl +0 -0
  172. data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/xpm2image.tcl +0 -0
  173. data/tcl/fsdialog/de.msg +30 -0
  174. data/tcl/fsdialog/en.msg +31 -0
  175. data/tcl/fsdialog/fsdialog.tcl +1749 -0
  176. data/tcl/fsdialog/fsdlg-gif.tcl +259 -0
  177. data/tcl/fsdialog/fsdlg-png.tcl +265 -0
  178. data/tcl/fsdialog/sv.msg +32 -0
  179. data/tcl/fsdialog/tclIndex +6 -0
  180. metadata +179 -174
  181. data/ext/ae-editor/langs/erb.lang.bind +0 -1
  182. data/ext/ae-editor/langs/lang.lang.bind +0 -1
  183. data/ext/ae-editor/langs/pers.lang.bind +0 -1
  184. data/ext/ae-editor/langs/rb.lang +0 -73
  185. data/ext/ae-editor/langs/rbw.lang.bind +0 -1
  186. data/ext/ae-editor/langs/tokens.lang.bind +0 -1
@@ -0,0 +1,3 @@
1
+ # pkgIndex for AniGif 1.3
2
+
3
+ package ifneeded anigif 1.3 [list source [file join $dir anigif.tcl]]
@@ -11,6 +11,7 @@
11
11
  </DL>
12
12
  <DL>
13
13
  <DT><I>STANDARD OPTIONS</I></DT>
14
+ <DT><I>Not themed</I></DT>
14
15
  <DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0>
15
16
  <TR>
16
17
  <TD>&nbsp;&nbsp;<A HREF="options.htm#M-activebackground">-activebackground</A></TD>
@@ -59,6 +60,27 @@
59
60
  <TR>
60
61
  <TD>&nbsp;&nbsp;<A HREF="options.htm#M-wraplength">-wraplength</A></TD>
61
62
  </TABLE></DD>
63
+ <DT><I>Themed</I></DT>
64
+ <DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0>
65
+ <TR>
66
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-compound">-compound</A></TD>
67
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-cursor">-cursor</A></TD>
68
+ </TR>
69
+ <TR>
70
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-image">-image</A></TD>
71
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-style">-style</A></TD>
72
+ </TR>
73
+ <TR>
74
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-repeatdelay">-repeatdelay</A></TD>
75
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-repeatinterval">-repeatinterval</A></TD>
76
+ </TR>
77
+ <TR>
78
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-takefocus">-takefocus</A></TD>
79
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-text">-text</A></TD>
80
+ </TR>
81
+ <TR>
82
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-textvariable">-textvariable</A></TD>
83
+ </TABLE></DD>
62
84
  </DL>
63
85
  <DL>
64
86
  <DT><I><A HREF="#wso">WIDGET-SPECIFIC OPTIONS</A></I></DT>
@@ -161,7 +183,8 @@ If an image or bitmap is being displayed in the Button then the value is in
161
183
  screen units;
162
184
  for text it is in lines of text.
163
185
  If this option isn't specified, the Button's desired height is computed
164
- from the size of the image or bitmap or text being displayed in it.
186
+ from the size of the image or bitmap or text being displayed in it.<BR>
187
+ Option not available when widget is <I>themed</I>.
165
188
  </DD>
166
189
  </DL>
167
190
  <DL><DT><A NAME="-helptext"><B>-helptext</B></A></DT>
@@ -197,7 +220,9 @@ are extracted from its value.
197
220
 
198
221
  Specifies the 3-D effect desired for the widget. Acceptable values are standard values for
199
222
  button relief (<B>raised</B>, <B>sunken</B>, <B>flat</B>, <B>ridge</B>, <B>solid</B>, and <B>groove</B>) and <B>link</B>, which specifies that button relief is <B>flat</B> when pointer
200
- is outside the button and <B>raised</B> when pointer is inside.
223
+ is outside the button and <B>raised</B> when pointer is inside.<BR>
224
+ This option has only the following effect if the widget is <I>themed</I>:
225
+ The value <B>link</B> used a style <B>Toolbutton</B> while any other value uses the standard effect.
201
226
  </DD>
202
227
  </DL>
203
228
  <DL><DT><A NAME="-state"><B>-state</B></A></DT>
@@ -269,5 +294,14 @@ Button is redisplayed with active color and sunken relief, and
269
294
  normal color and its defined relief, and <B>disarmcommand</B> then <B>command</B>
270
295
  are called.
271
296
  <P><B>invoke</B> is called when Button has input focus and user press the space bar.
297
+
298
+ </DD></DL>
299
+ <HR WIDTH="50%"><BR>
300
+ <B><A NAME="wc">BINDINGS</A></B><BR>
301
+ <DL><DT><A NAME="Invoke"><I>&lt;&lt;Invoke&gt;&gt;</I></A>
302
+ </DT><DD>
303
+
304
+ Invoke the <B>invoke</B> widget command.
272
305
  </DD></DL>
306
+ <HR WIDTH="50%"><BR>
273
307
  </BODY></HTML>
@@ -17,15 +17,15 @@
17
17
  <TD>&nbsp;&nbsp;<A HREF="#-default">-default</A></TR>
18
18
  </TR>
19
19
  <TR>
20
- <TD>&nbsp;&nbsp;<A HREF="#-homogeneous">-homogeneous</A></TR>
20
+ <TD>&nbsp;&nbsp;<A HREF="#-homogeneous">-homogeneous</A></TD>
21
21
  <TD>&nbsp;&nbsp;<A HREF="#-orient">-orient</A></TR>
22
22
  </TR>
23
23
  <TR>
24
- <TD>&nbsp;&nbsp;<A HREF="#-padx">-padx</A></TR>
24
+ <TD>&nbsp;&nbsp;<A HREF="#-padx">-padx</A></TD>
25
25
  <TD>&nbsp;&nbsp;<A HREF="#-pady">-pady</A></TR>
26
26
  </TR>
27
27
  <TR>
28
- <TD>&nbsp;&nbsp;<A HREF="#-spacing">-spacing</A></TR>
28
+ <TD>&nbsp;&nbsp;<A HREF="#-spacing">-spacing</A></TD>
29
29
  <TD>&nbsp;&nbsp;<A HREF="#-state">-state</A></TR>
30
30
  </TABLE></DD>
31
31
  </DL>
@@ -103,7 +103,8 @@ Indicates the button whose <b>-text</b> option is <i>text</i>.
103
103
  <DL><DT><A NAME="-background"><B>-background</B></A></DT>
104
104
  <DD>
105
105
 
106
- Specifies a default background color for all added buttons and for the frame.
106
+ Specifies a default background color for all added buttons and for the frame.<BR>
107
+ For <I>themed</I> wigets, the button color is not set.
107
108
 
108
109
  </DD>
109
110
  </DL>
@@ -139,14 +140,15 @@ If this option is <B>vertical</B>, buttons are added from left to right.
139
140
  <DL><DT><A NAME="-padx"><B>-padx</B></A></DT>
140
141
  <DD>
141
142
 
142
- Specifies a default value for the -padx option of all added buttons.
143
-
143
+ Specifies a default value for the -padx option of all added buttons.<BR>
144
+ Option has no effect for <I>themed</I> wigets.
144
145
  </DD>
145
146
  </DL>
146
147
  <DL><DT><A NAME="-pady"><B>-pady</B></A></DT>
147
148
  <DD>
148
149
 
149
- Specifies a default value for the -pady option of all added buttons.
150
+ Specifies a default value for the -pady option of all added buttons.<BR>
151
+ Option has no effect for <I>themed</I> wigets.
150
152
 
151
153
  </DD>
152
154
  </DL>
@@ -33,8 +33,7 @@
33
33
  </TR>
34
34
  <TR>
35
35
 
36
- <TD>&nbsp;&nbsp;<A HREF="#-buttonwidth">-buttonwidth</A></TR>
37
- <TD>&nbsp;&nbsp;<A HREF="#-cancel">-cancel</A></TR>
36
+ <TD>&nbsp;&nbsp;<A HREF="#-cancel">-cancel</A></TD>
38
37
  </TR>
39
38
  <TR>
40
39
  <TD>&nbsp;&nbsp;<A HREF="#-default">-default</A></TR>
@@ -139,18 +138,13 @@ Specifies a bitmap to display at the left of the user frame.
139
138
  <B>image</B> option override <B>bitmap</B>.
140
139
  </DD>
141
140
  </DL>
142
- <DL><DT><A NAME="-buttonwidth"><B>-buttonwidth (read-only)</B></A></DT>
143
- <DD>
144
-
145
- Specifies the width of the buttons as specified for the option <B>width</B>
146
- of the <B>button</b> widget.
147
- </DD>
148
- </DL>
149
141
  <DL><DT><A NAME="-cancel"><B>-cancel</B></A></DT>
150
142
  <DD>
151
143
 
152
- Specifies the number of the cancel button of the Dialog. When user press Esc in the Dialog,
153
- this button is invoked.
144
+ Specifies the number of the cancel button of the Dialog. When user presses Esc or the windows close button,
145
+ this button is invoked.<BR>
146
+ If set to <B>-1</B>, Esc does not invoke anything.
147
+ The window close button <I>destroys</I> the dialog in this case and returns <B>-1</B>.
154
148
  </DD>
155
149
  </DL>
156
150
  <DL><DT><A NAME="-default"><B>-default</B></A></DT>
@@ -11,6 +11,7 @@
11
11
  </DL>
12
12
  <DL>
13
13
  <DT><I>STANDARD OPTIONS</I></DT>
14
+ <DT><I>Not themed</I></DT>
14
15
  <DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0>
15
16
  <TR>
16
17
  <TD>&nbsp;&nbsp;<A HREF="options.htm#M-anchor">-anchor</A></TR>
@@ -53,6 +54,35 @@
53
54
  <TD>&nbsp;&nbsp;<A HREF="options.htm#M-wraplength">-wraplength</A></TR>
54
55
  </TR>
55
56
  </TABLE></DD>
57
+ <DT><I>Themed</I></DT>
58
+ <DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0>
59
+ <TR>
60
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-anchor">-anchor</A></TR>
61
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-background">-background or -bg</A></TD>
62
+ </TR>
63
+ <TR>
64
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-cursor">-cursor</A></TD></TR>
65
+ <TR>
66
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-font">-font</A></TR>
67
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-foreground">-foreground or -fg</A></TD>
68
+ </TR>
69
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-image">-image</A></TR>
70
+ </TR>
71
+ <TR>
72
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-justify">-justify</A></TD>
73
+ </TR>
74
+ <TR>
75
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-relief">-relief</A></TD>
76
+ </TR>
77
+ <TR>
78
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-takefocus">-takefocus</A></TR>
79
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-text">-text</A></TR>
80
+ </TR>
81
+ <TR>
82
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-textvariable">-textvariable</A></TR>
83
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-wraplength">-wraplength</A></TR>
84
+ </TR>
85
+ </TABLE></DD>
56
86
  </DL>
57
87
  <DL>
58
88
  <DT><I><A HREF="#wso">WIDGET-SPECIFIC OPTIONS</A></I></DT>
@@ -237,7 +267,8 @@ Specifies a desired height for the label.
237
267
  If an image or bitmap is being displayed in the label then the value is in
238
268
  screen units, for text it is in lines of text.
239
269
  If this option isn't specified, the label's desired height is computed
240
- from the size of the image or bitmap or text being displayed in it.
270
+ from the size of the image or bitmap or text being displayed in it.<BR>
271
+ Option not available for <I>themed</I> widgets.
241
272
  </DD>
242
273
  </DL>
243
274
  <DL><DT><A NAME="-helptext"><B>-helptext</B></A></DT>
@@ -11,6 +11,7 @@
11
11
  </DL>
12
12
  <DL>
13
13
  <DT><I>STANDARD OPTIONS</I></DT>
14
+ <DT><I>Not themed</I></DT>
14
15
  <DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0>
15
16
  <TR>
16
17
  <TD>&nbsp;&nbsp;<A HREF="options.htm#M-background">-background or -bg</A></TD>
@@ -19,6 +20,16 @@
19
20
  <TR>
20
21
  <TD>&nbsp;&nbsp;<A HREF="options.htm#M-relief">-relief</A></TR>
21
22
  </TABLE></DD>
23
+ <DT><I>Themed</I></DT>
24
+ <DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0>
25
+ <TR>
26
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-borderwidth">-borderwidth or -bd</A></TD>
27
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-relief">-relief</A></TD>
28
+ </TR>
29
+ <TR>
30
+ <TD>&nbsp;&nbsp;(<B>-bg</B> has no effect)</TD>
31
+ </TR>
32
+ </TABLE></DD>
22
33
  </DL>
23
34
  <DL>
24
35
  <DT><I><A HREF="#wso">WIDGET-SPECIFIC OPTIONS</A></I></DT>
@@ -100,7 +111,8 @@ Possible values are: <B>ne</B>, <B>en</B>, <B>nw</B>, <B>wn</B>, <B>se</B> (defa
100
111
  <DD>
101
112
 
102
113
  Size of the scrollbars in pixels.
103
- Use </B>0</B> for standard size (default value).
114
+ Use </B>0</B> for standard size (default value).<BR>
115
+ This option has no effect if widget is <I>themed</I>.
104
116
  </DD>
105
117
  </DL>
106
118
  <HR WIDTH="50%"><BR>
@@ -81,4 +81,15 @@ LabelFrame containing an Entry widget.
81
81
  <TR><TD><A HREF="BWidget.html">BWidget</A></TD>
82
82
  <TD>Description text</TD></TR>
83
83
  </TABLE>
84
- </DD></BODY></HTML>
84
+ </DD>
85
+
86
+ <BR><HR><BR><B>Load BWidget</B><BR><BR>
87
+
88
+ Possible load sequence:
89
+ <pre>
90
+ # If package msgcat is available, its locale is used for BWidget
91
+ package require msgcat
92
+ # load BWidget
93
+ package require BWidget
94
+ </pre>
95
+ </BODY></HTML>
File without changes
@@ -1,3 +1,73 @@
1
+ 2010-01-17 Harald Oehlmann <oehhar@users.sourceforge.net>
2
+
3
+ * pkgIndex.tcl: corrected package version in package provide
4
+
5
+ 2010-12-14 Harald Oehlmann <oehhar@users.sourceforge.net>
6
+
7
+ **** BWidget 1.9.4 tagged ****
8
+
9
+ 2010-12-14 Andreas Kupries <andreask@activestate.com>
10
+
11
+ * tree.tcl [Bug 3106208]: Followup. Moved the fixed code of the
12
+ last entry I did (2010-11-09) into a new command Tree::MergeFlag
13
+ and call this from both Tree::itemconfigure and Tree::insert.
14
+ Missing the place in Tree::insert caused another problem, found by
15
+ Dustin Littau.
16
+
17
+ 2010-11-05 Harald Oehlmann <oehhar@users.sourceforge.net>
18
+
19
+ **** BWidget 1.9.3 tagged ****
20
+
21
+ 2010-11-23 Harald Oehlmann <oehhar@users.sourceforge.net>
22
+
23
+ * scrollw.tcl Add theming support for ScrolledWindow widget.
24
+ * ScrolledWindow.html Themed mode documented.
25
+
26
+ 2010-11-21 Harald Oehlmann <oehhar@users.sourceforge.net>
27
+
28
+ * label.tcl Add theming support for Label widget.
29
+ * label.html Themed mode documented.
30
+
31
+ 2010-11-16 Harald Oehlmann <oehhar@users.sourceforge.net>
32
+
33
+ * button.tcl Add theming support for Button widget.
34
+ Option "-relief link" is mapped to "Toolbutton style.
35
+ Option -height is not available when themed.
36
+ Thanks to Kevin Walzer for the test on MacOS.
37
+ * buttonbox.tcl When themed, only set themed button options.
38
+ The widget itself is not jet themed.
39
+ * Dialog.html Removed documentation of unavailable option -buttonwidth.
40
+
41
+ 2010-11-09 Andreas Kupries <andreask@activestate.com>
42
+
43
+ * tree.tcl (Tree::itemconfigure): Fix intermingling of node names
44
+ and flag values which can cause an lsearch to fail, by mistaking a
45
+ flag value as the node searched for, and then treating a node name
46
+ as flags. As the upd,nodes value is a dictionary it should not be
47
+ search as a list. Now using a temporary array for quicker check
48
+ and append/replace [Bug 3106208].
49
+
50
+ 2010-11-09 Harald Oehlmann <oehhar@users.sourceforge.net>
51
+
52
+ * mainframe.tcl Menu text shows white on white on Mac aqua
53
+ [Bug 3105665] reported by Scott Smedley fixed by Kevin Walzer.
54
+
55
+ 2010-10-15 Harald Oehlmann <oehhar@users.sourceforge.net>
56
+
57
+ * label.tcl The frame surround the label gets under
58
+ unknown conditions a -padx 5. A pad of 0 is now
59
+ hard coded (Bug 3087955)
60
+
61
+ 2010-08-04 Harald Oehlmann <oehhar@users.sourceforge.net>
62
+
63
+ * dialog.tcl Changed behaviour of window close button.
64
+ If -cancel is given, this button is invoked.
65
+ The cancel option may now be changed using the configure
66
+ method.
67
+
68
+ * init.tcl If msgcat is available use its locale to load
69
+ a lang/*.rc file instead always using en.rc.
70
+
1
71
  2010-06-09 Harald Oehlmann <oehhar@users.sourceforge.net>
2
72
 
3
73
  * Included lang/pl.rc from HEAD.
File without changes
File without changes
File without changes
File without changes
@@ -53,6 +53,7 @@ namespace eval Button {
53
53
  bind BwButton <ButtonRelease-1> {Button::_release %W}
54
54
  bind BwButton <Key-space> {Button::invoke %W; break}
55
55
  bind BwButton <Return> {Button::invoke %W; break}
56
+ bind BwButton <<Invoke>> {Button::invoke %W; break}
56
57
  bind BwButton <Destroy> {Widget::destroy %W}
57
58
  }
58
59
 
@@ -63,14 +64,14 @@ namespace eval Button {
63
64
  proc Button::create { path args } {
64
65
  array set maps [list Button {} :cmd {}]
65
66
  array set maps [Widget::parseArgs Button $args]
66
- eval [concat [list button $path] $maps(:cmd)]
67
+ if {$::Widget::_theme} {
68
+ eval [concat [list ttk::button $path] $maps(:cmd)]
69
+ } else {
70
+ eval [concat [list button $path] $maps(:cmd)]
71
+ }
67
72
  Widget::initFromODB Button $path $maps(Button)
68
73
 
69
74
  # Do some extra configuration on the button
70
- set relief [Widget::getMegawidgetOption $path -relief]
71
- if { [string equal $relief "link"] } {
72
- set relief "flat"
73
- }
74
75
  set var [Widget::getMegawidgetOption $path -textvariable]
75
76
  set st [Widget::getMegawidgetOption $path -state]
76
77
  if { ![string length $var] } {
@@ -90,8 +91,20 @@ proc Button::create { path args } {
90
91
  Widget::configure $path [list -underline $under]
91
92
  }
92
93
 
93
- $path configure -relief $relief -text $text -underline $under \
94
- -textvariable $var -state $st
94
+ $path configure -text $text -underline $under \
95
+ -textvariable $var -state $st
96
+ # Map relief flat on Toolbutton for ttk
97
+ set relief [Widget::getMegawidgetOption $path -relief]
98
+ if {$::Widget::_theme} {
99
+ if { [string equal $relief "link"] } {
100
+ $path configure -style Toolbutton
101
+ }
102
+ } else {
103
+ if { [string equal $relief "link"] } {
104
+ set relief "flat"
105
+ }
106
+ $path configure -relief $relief
107
+ }
95
108
  bindtags $path [list $path BwButton [winfo toplevel $path] all]
96
109
 
97
110
  set accel1 [string tolower [string index $text $under]]
@@ -123,24 +136,33 @@ proc Button::configure { path args } {
123
136
 
124
137
  # Extract all the modified bits we're interested in
125
138
  foreach {cr cs cv cn ct cu} [Widget::hasChangedX $path \
126
- -relief -state -textvariable -name -text -underline] break
139
+ -relief -state -textvariable -name -text -underline] break
127
140
  if { $cr || $cs } {
128
- set relief [Widget::cget $path -relief]
129
- set state [Widget::cget $path -state]
130
- if { [string equal $relief "link"] } {
131
- if { [string equal $state "active"] } {
132
- set relief "raised"
133
- } else {
134
- set relief "flat"
135
- }
136
- }
137
- $path:cmd configure -relief $relief -state $state
141
+ set relief [Widget::cget $path -relief]
142
+ set state [Widget::cget $path -state]
143
+ if { $::Widget::_theme} {
144
+ if { [string equal $relief "link"] } {
145
+ $path:cmd configure -style Toolbutton
146
+ } else {
147
+ $path:cmd configure -style ""
148
+ }
149
+ } else {
150
+ if { [string equal $relief "link"] } {
151
+ if { [string equal $state "active"] } {
152
+ set relief "raised"
153
+ } else {
154
+ set relief "flat"
155
+ }
156
+ }
157
+ $path:cmd configure -relief $relief
158
+ }
159
+ $path:cmd configure -state $state
138
160
  }
139
161
 
140
162
  if { $cv || $cn || $ct || $cu } {
141
- set var [Widget::cget $path -textvariable]
142
- set text [Widget::cget $path -text]
143
- set under [Widget::cget $path -underline]
163
+ set var [Widget::cget $path -textvariable]
164
+ set text [Widget::cget $path -text]
165
+ set under [Widget::cget $path -underline]
144
166
  if { ![string length $var] } {
145
167
  set desc [BWidget::getname [Widget::cget $path -name]]
146
168
  if { [llength $desc] } {
@@ -178,37 +200,68 @@ proc Button::cget { path option } {
178
200
  }
179
201
 
180
202
 
203
+ # ----------------------------------------------------------------------------
204
+ # Command Button::identify
205
+ # ----------------------------------------------------------------------------
206
+ proc Button::identify { path args } {
207
+ eval $path:cmd identify $args
208
+ }
209
+
210
+
211
+ # ----------------------------------------------------------------------------
212
+ # Command Button::instate
213
+ # ----------------------------------------------------------------------------
214
+ proc Button::instate { path args } {
215
+ eval $path:cmd instate $args
216
+ }
217
+
218
+
219
+ # ----------------------------------------------------------------------------
220
+ # Command Button::state
221
+ # ----------------------------------------------------------------------------
222
+ proc Button::state { path args } {
223
+ eval $path:cmd state $args
224
+ }
225
+
226
+
181
227
  # ----------------------------------------------------------------------------
182
228
  # Command Button::invoke
183
229
  # ----------------------------------------------------------------------------
184
230
  proc Button::invoke { path } {
185
231
  if { ![string equal [$path:cmd cget -state] "disabled"] } {
186
- $path:cmd configure -state active -relief sunken
187
- update idletasks
188
- set cmd [Widget::getMegawidgetOption $path -armcommand]
232
+ if { $::Widget::_theme} {
233
+ $path:cmd configure -state active
234
+ $path:cmd state pressed
235
+ } else {
236
+ $path:cmd configure -state active -relief sunken
237
+ }
238
+ update idletasks
239
+ set cmd [Widget::getMegawidgetOption $path -armcommand]
189
240
  if { $cmd != "" } {
190
241
  uplevel \#0 $cmd
191
242
  }
192
- after 100
193
- set relief [Widget::getMegawidgetOption $path -relief]
194
- if { [string equal $relief "link"] } {
195
- set relief flat
243
+ after 100
244
+ $path:cmd configure -state [Widget::getMegawidgetOption $path -state]
245
+ if { $::Widget::_theme} {
246
+ $path:cmd state !pressed
247
+ } else {
248
+ set relief [Widget::getMegawidgetOption $path -relief]
249
+ if { [string equal $relief "link"] } {
250
+ set relief flat
251
+ }
252
+ $path:cmd configure -relief $relief
196
253
  }
197
- $path:cmd configure \
198
- -state [Widget::getMegawidgetOption $path -state] \
199
- -relief $relief
200
- set cmd [Widget::getMegawidgetOption $path -disarmcommand]
254
+ set cmd [Widget::getMegawidgetOption $path -disarmcommand]
201
255
  if { $cmd != "" } {
202
256
  uplevel \#0 $cmd
203
257
  }
204
- set cmd [Widget::getMegawidgetOption $path -command]
258
+ set cmd [Widget::getMegawidgetOption $path -command]
205
259
  if { $cmd != "" } {
206
260
  uplevel \#0 $cmd
207
261
  }
208
262
  }
209
263
  }
210
264
 
211
-
212
265
  # ----------------------------------------------------------------------------
213
266
  # Command Button::_enter
214
267
  # ----------------------------------------------------------------------------
@@ -219,10 +272,14 @@ proc Button::_enter { path } {
219
272
  set _current $path
220
273
  if { ![string equal [$path:cmd cget -state] "disabled"] } {
221
274
  $path:cmd configure -state active
222
- if { $_pressed == $path } {
223
- $path:cmd configure -relief sunken
224
- } elseif { [string equal [Widget::cget $path -relief] "link"] } {
225
- $path:cmd configure -relief raised
275
+ if { $::Widget::_theme } {
276
+ # $path:cmd state active
277
+ } else {
278
+ if { $_pressed == $path } {
279
+ $path:cmd configure -relief sunken
280
+ } elseif { [string equal [Widget::cget $path -relief] "link"] } {
281
+ $path:cmd configure -relief raised
282
+ }
226
283
  }
227
284
  }
228
285
  }
@@ -238,14 +295,17 @@ proc Button::_leave { path } {
238
295
  set _current ""
239
296
  if { ![string equal [$path:cmd cget -state] "disabled"] } {
240
297
  $path:cmd configure -state [Widget::cget $path -state]
241
- set relief [Widget::cget $path -relief]
242
- if { $_pressed == $path } {
243
- if { [string equal $relief "link"] } {
244
- set relief raised
298
+ if { $::Widget::_theme } {
299
+ } else {
300
+ set relief [Widget::cget $path -relief]
301
+ if { $_pressed == $path } {
302
+ if { [string equal $relief "link"] } {
303
+ set relief raised
304
+ }
305
+ $path:cmd configure -relief $relief
306
+ } elseif { [string equal $relief "link"] } {
307
+ $path:cmd configure -relief flat
245
308
  }
246
- $path:cmd configure -relief $relief
247
- } elseif { [string equal $relief "link"] } {
248
- $path:cmd configure -relief flat
249
309
  }
250
310
  }
251
311
  }
@@ -259,8 +319,13 @@ proc Button::_press { path } {
259
319
 
260
320
  if { ![string equal [$path:cmd cget -state] "disabled"] } {
261
321
  set _pressed $path
262
- $path:cmd configure -relief sunken
263
- set cmd [Widget::getMegawidgetOption $path -armcommand]
322
+ if { $::Widget::_theme} {
323
+ ttk::clickToFocus $path
324
+ $path state pressed
325
+ } else {
326
+ $path:cmd configure -relief sunken
327
+ }
328
+ set cmd [Widget::getMegawidgetOption $path -armcommand]
264
329
  if { $cmd != "" } {
265
330
  uplevel \#0 $cmd
266
331
  set repeatdelay [Widget::getMegawidgetOption $path -repeatdelay]
@@ -284,12 +349,16 @@ proc Button::_release { path } {
284
349
 
285
350
  if { $_pressed == $path } {
286
351
  set _pressed ""
287
- set relief [Widget::getMegawidgetOption $path -relief]
288
352
  after cancel "Button::_repeat $path"
289
- if { [string equal $relief "link"] } {
290
- set relief raised
353
+ if { $::Widget::_theme} {
354
+ $path state !pressed
355
+ } else {
356
+ set relief [Widget::getMegawidgetOption $path -relief]
357
+ if { [string equal $relief "link"] } {
358
+ set relief raised
359
+ }
360
+ $path:cmd configure -relief $relief
291
361
  }
292
- $path:cmd configure -relief $relief
293
362
  set cmd [Widget::getMegawidgetOption $path -disarmcommand]
294
363
  if { $cmd != "" } {
295
364
  uplevel \#0 $cmd
@@ -320,5 +389,4 @@ proc Button::_repeat { path } {
320
389
  [set delay [Widget::getMegawidgetOption $path -repeatdelay]] > 0) } {
321
390
  after $delay "Button::_repeat $path"
322
391
  }
323
- }
324
-
392
+ }