arcadia 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (168) hide show
  1. data/README +39 -38
  2. data/bin/arc +3 -0
  3. data/bin/arcadia +0 -1
  4. data/conf/arcadia.conf +54 -35
  5. data/conf/arcadia.init.rb +26 -3
  6. data/conf/arcadia.res.rb +56 -4
  7. data/ext/ae-breakpoints/ae-breakpoints.rb +1 -1
  8. data/ext/ae-dir-projects/ae-dir-projects.rb +113 -45
  9. data/ext/ae-editor/ae-editor.conf +6 -2
  10. data/ext/ae-editor/ae-editor.rb +1009 -616
  11. data/ext/ae-editor/langs/coderay.tokens +40 -0
  12. data/ext/ae-editor/langs/conf.lang +12 -10
  13. data/ext/ae-editor/langs/erb.lang.bind +1 -0
  14. data/ext/ae-editor/langs/java.lang +4 -0
  15. data/ext/ae-editor/langs/rb.lang +25 -55
  16. data/ext/ae-editor/langs/rhtml.lang +4 -0
  17. data/ext/ae-editor/langs/tokens.lang.bind +1 -0
  18. data/ext/ae-editor/langs/xml.lang +4 -0
  19. data/ext/ae-file-history/ae-file-history.rb +140 -32
  20. data/ext/ae-output/ae-output.rb +267 -262
  21. data/ext/ae-rad/ae-rad-inspector.rb +1 -1
  22. data/ext/ae-rad/ae-rad-libs.rb +15 -7
  23. data/ext/ae-rad/ae-rad.conf +4 -4
  24. data/ext/ae-rad/lib/tk/al-tk.rb +4 -3
  25. data/ext/ae-ruby-debug/ae-ruby-debug.conf +4 -2
  26. data/ext/ae-ruby-debug/ae-ruby-debug.rb +40 -15
  27. data/ext/ae-search-in-files/ae-search-in-files.rb +70 -14
  28. data/ext/ae-search-in-files/ext/ack-in-files/ack-in-files.conf +15 -0
  29. data/ext/ae-search-in-files/ext/ack-in-files/ack-in-files.rb +80 -0
  30. data/ext/ae-shell/ae-shell.conf +4 -1
  31. data/ext/ae-shell/ae-shell.rb +78 -43
  32. data/ext/test-shutdown-after-startup/test-shutdown-after-startup.conf +4 -0
  33. data/ext/test-shutdown-after-startup/test-shutdown-after-startup.rb +20 -0
  34. data/lib/a-commons.rb +118 -22
  35. data/lib/a-contracts.rb +46 -2
  36. data/lib/a-core.rb +970 -284
  37. data/lib/a-tkcommons.rb +16 -8
  38. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/ArrowButton.html +0 -0
  39. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/BWidget.html +0 -0
  40. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/Button.html +0 -0
  41. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/ButtonBox.html +0 -0
  42. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/ComboBox.html +0 -0
  43. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/Dialog.html +20 -0
  44. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/DragSite.html +6 -4
  45. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/DropSite.html +15 -3
  46. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/DynamicHelp.html +8 -5
  47. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/Entry.html +0 -0
  48. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/Label.html +0 -0
  49. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/LabelEntry.html +0 -0
  50. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/LabelFrame.html +0 -0
  51. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/ListBox.html +1 -1
  52. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/MainFrame.html +8 -0
  53. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/MessageDlg.html +0 -0
  54. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/NoteBook.html +0 -0
  55. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/PagesManager.html +0 -0
  56. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/PanedWindow.html +21 -5
  57. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/PanelFrame.html +0 -0
  58. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/PasswdDlg.html +0 -0
  59. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/ProgressBar.html +0 -0
  60. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/ProgressDlg.html +0 -0
  61. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/ScrollView.html +0 -0
  62. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/ScrollableFrame.html +5 -2
  63. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/ScrolledWindow.html +36 -4
  64. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/SelectColor.html +0 -0
  65. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/SelectFont.html +0 -0
  66. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/Separator.html +0 -0
  67. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/SpinBox.html +0 -0
  68. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/StatusBar.html +0 -0
  69. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/TitleFrame.html +0 -0
  70. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/Tree.html +21 -31
  71. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/Widget.html +0 -0
  72. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/contents.html +0 -0
  73. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/index.html +0 -0
  74. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/navtree.html +0 -0
  75. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/BWman/options.htm +0 -0
  76. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/CHANGES.txt +0 -0
  77. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/ChangeLog +289 -0
  78. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/LICENSE.txt +0 -0
  79. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/README.txt +2 -2
  80. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/arrow.tcl +1 -1
  81. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/bitmap.tcl +0 -0
  82. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/button.tcl +0 -0
  83. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/buttonbox.tcl +23 -12
  84. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/color.tcl +0 -0
  85. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/combobox.tcl +101 -25
  86. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/demo/basic.tcl +0 -0
  87. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/demo/bwidget.xbm +0 -0
  88. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/demo/demo.tcl +1 -1
  89. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/demo/dnd.tcl +0 -0
  90. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/demo/manager.tcl +0 -0
  91. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/demo/select.tcl +0 -0
  92. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/demo/tmpldlg.tcl +0 -0
  93. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/demo/tree.tcl +0 -0
  94. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/demo/x1.xbm +0 -0
  95. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/dialog.tcl +0 -0
  96. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/dragsite.tcl +0 -0
  97. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/dropsite.tcl +2 -1
  98. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/dynhelp.tcl +194 -33
  99. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/entry.tcl +8 -5
  100. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/font.tcl +0 -0
  101. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/bold.gif +0 -0
  102. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/copy.gif +0 -0
  103. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/cut.gif +0 -0
  104. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/dragfile.gif +0 -0
  105. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/dragicon.gif +0 -0
  106. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/error.gif +0 -0
  107. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/file.gif +0 -0
  108. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/folder.gif +0 -0
  109. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/hourglass.gif +0 -0
  110. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/info.gif +0 -0
  111. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/italic.gif +0 -0
  112. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/minus.xbm +0 -0
  113. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/new.gif +0 -0
  114. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/opcopy.xbm +0 -0
  115. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/open.gif +0 -0
  116. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/openfold.gif +0 -0
  117. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/oplink.xbm +0 -0
  118. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/opmove.xbm +0 -0
  119. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/overstrike.gif +0 -0
  120. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/palette.gif +0 -0
  121. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/passwd.gif +0 -0
  122. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/paste.gif +0 -0
  123. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/plus.xbm +0 -0
  124. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/print.gif +0 -0
  125. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/question.gif +0 -0
  126. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/redo.gif +0 -0
  127. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/save.gif +0 -0
  128. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/target.xbm +0 -0
  129. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/underline.gif +0 -0
  130. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/undo.gif +0 -0
  131. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/images/warning.gif +0 -0
  132. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/init.tcl +0 -0
  133. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/label.tcl +0 -0
  134. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/labelentry.tcl +0 -0
  135. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/labelframe.tcl +0 -0
  136. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/lang/da.rc +0 -0
  137. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/lang/de.rc +0 -0
  138. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/lang/en.rc +0 -0
  139. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/lang/es.rc +0 -0
  140. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/lang/fr.rc +0 -0
  141. data/tcl/BWidget-1.9.0/lang/hu.rc +52 -0
  142. data/tcl/BWidget-1.9.0/lang/nl.rc +52 -0
  143. data/tcl/BWidget-1.9.0/lang/no.rc +52 -0
  144. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/listbox.tcl +89 -34
  145. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/mainframe.tcl +14 -13
  146. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/messagedlg.tcl +0 -0
  147. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/notebook.tcl +3 -1
  148. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/pagesmgr.tcl +0 -0
  149. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/panedw.tcl +22 -18
  150. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/panelframe.tcl +0 -0
  151. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/passwddlg.tcl +7 -3
  152. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/pkgIndex.tcl +2 -2
  153. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/progressbar.tcl +0 -0
  154. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/progressdlg.tcl +0 -0
  155. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/scrollframe.tcl +60 -24
  156. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/scrollview.tcl +0 -0
  157. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/scrollw.tcl +13 -11
  158. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/separator.tcl +0 -0
  159. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/spinbox.tcl +0 -0
  160. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/statusbar.tcl +0 -0
  161. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/tests/entry.test +0 -0
  162. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/titleframe.tcl +0 -0
  163. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/tree.tcl +51 -41
  164. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/utils.tcl +26 -11
  165. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/widget.tcl +53 -19
  166. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/wizard.tcl +0 -0
  167. data/tcl/{BWidget-1.8.0 → BWidget-1.9.0}/xpm2image.tcl +0 -0
  168. metadata +170 -145
@@ -6,7 +6,7 @@
6
6
  require "lib/a-commons"
7
7
  require "tk/menu"
8
8
 
9
- class MyBwTree < Tk::BWidget::Tree
9
+ class BWidgetTreePatched < Tk::BWidget::Tree
10
10
 
11
11
  def open?(node)
12
12
  bool(self.itemcget(tagid(node), 'open'))
@@ -53,8 +53,8 @@ class TkApplication < Application
53
53
  @tcltk_info = TclTkInfo.new
54
54
  end
55
55
 
56
- def sys_info
57
- "#{super} [TclTk version = #{tcltk_info.level}]"
56
+ def self.sys_info
57
+ "#{super}\n[TclTk version = #{TclTkInfo.new.level}]"
58
58
  end
59
59
 
60
60
  def run
@@ -240,6 +240,7 @@ class TkFrameAdapter < TkFrame
240
240
  super(scope_parent, *args)
241
241
  @scope_parent = scope_parent
242
242
  @movable = true
243
+ #ObjectSpace.define_finalizer(self, self.method(:detach_frame).to_proc)
243
244
  end
244
245
 
245
246
  def add_moved_by(_obj)
@@ -265,7 +266,7 @@ class TkFrameAdapter < TkFrame
265
266
  if @movable
266
267
  @frame.bind_append("Configure",proc{ refresh})
267
268
  @frame.bind_append("Map",proc{refresh})
268
- @frame.bind_append("Unmap",proc{unplace})
269
+ @frame.bind_append("Unmap",proc{unplace if TkWinfo.mapped?(@frame)})
269
270
  end
270
271
  self
271
272
  end
@@ -900,6 +901,10 @@ class TkTitledFrame < TkBaseTitledFrame
900
901
  end
901
902
  self.raise
902
903
  end
904
+
905
+ def maximized?
906
+ @state == 'maximize'
907
+ end
903
908
 
904
909
  def maximize
905
910
  if @state == 'normal'
@@ -1138,6 +1143,7 @@ class TkProgressframe < TkFloatTitledFrame
1138
1143
  attr_accessor :max
1139
1144
  def initialize(parent=nil, _max=100, *args)
1140
1145
  super(parent)
1146
+ _max=1 if _max<=0
1141
1147
  @max = _max
1142
1148
  @progress = TkVariable.new
1143
1149
  @progress.value = -1
@@ -1332,6 +1338,11 @@ class TkScrollWidget
1332
1338
  do_xscrollcommand(first,last)
1333
1339
  })
1334
1340
  end
1341
+
1342
+ def destroy
1343
+ @h_scroll.destroy
1344
+ @v_scroll.destroy
1345
+ end
1335
1346
 
1336
1347
  def add_yscrollcommand(cmd=Proc.new)
1337
1348
  @v_scroll_command = cmd
@@ -1425,7 +1436,4 @@ class KeyTest < TkFloatTitledFrame
1425
1436
  _wrapper.show_h_scroll
1426
1437
  place('x'=>100,'y'=>100,'height'=> 220,'width'=> 500)
1427
1438
  end
1428
- end
1429
-
1430
-
1431
-
1439
+ end
@@ -32,8 +32,13 @@
32
32
  <TD>&nbsp;&nbsp;<A HREF="#-bitmap">-bitmap</A></TR>
33
33
  </TR>
34
34
  <TR>
35
+
36
+ <TD>&nbsp;&nbsp;<A HREF="#-buttonwidth">-buttonwidth</A></TR>
35
37
  <TD>&nbsp;&nbsp;<A HREF="#-cancel">-cancel</A></TR>
38
+ </TR>
39
+ <TR>
36
40
  <TD>&nbsp;&nbsp;<A HREF="#-default">-default</A></TR>
41
+ <TD>&nbsp;&nbsp;<A HREF="#-geometry">-geometry</A></TR>
37
42
  </TR>
38
43
  <TR>
39
44
  <TD>&nbsp;&nbsp;<A HREF="#-image">-image</A></TR>
@@ -134,6 +139,13 @@ Specifies a bitmap to display at the left of the user frame.
134
139
  <B>image</B> option override <B>bitmap</B>.
135
140
  </DD>
136
141
  </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>
137
149
  <DL><DT><A NAME="-cancel"><B>-cancel</B></A></DT>
138
150
  <DD>
139
151
 
@@ -148,6 +160,14 @@ Specifies the number of the default button of the Dialog.
148
160
  When user press Return in the Dialog, this button is invoked.
149
161
  </DD>
150
162
  </DL>
163
+ </DL>
164
+ <DL><DT><A NAME="-geometry"><B>-geometry</B></A></DT>
165
+ <DD>
166
+
167
+ Set the <B>geometry</B> used when method <B>draw</B> is called.
168
+ See <B>wm geometry</B> for a parameter description.
169
+ </DD>
170
+ </DL>
151
171
  <DL><DT><A NAME="-image"><B>-image (read-only)</B></A></DT>
152
172
  <DD>
153
173
 
@@ -98,15 +98,17 @@ Command called when drag initiates. When the event of option <B>dragevent</B> oc
98
98
  <LI>a toplevel created to represent dragged data. When returning, if it
99
99
  has no children, a bitmap is automatically displayed.
100
100
  </UL>
101
- The command must return a list containing three elements:
101
+ If the command returns an empty string, then the drag will be
102
+ suppressed. Otherwise the command must return a list containing three
103
+ elements:
102
104
  <UL>
103
105
  <LI>the type of the data,
104
106
  <LI>the list of acceptable basic operations (<B>copy</B>, <B>move</B> and <B>link</B>)
105
107
  <LI>and the data.
106
108
  </UL>
107
- Note that even if <B>copy</B> does not appear in the list of basic operation,
108
- it is considered as an acceptable operation, since <B>copy</B> semantic does not modify
109
- the drag source.
109
+ Note that even if <B>copy</B> does not appear in the list of basic
110
+ operation, it is considered as an acceptable operation, since
111
+ <B>copy</B> semantic does not modify the drag source.
110
112
 
111
113
  </DD>
112
114
  </DL>
@@ -67,9 +67,21 @@ This command is used to declare <I>path</I> as a drop site. Options are:
67
67
  <DL><DT><A NAME="DropSite-dropcmd"><B>-dropcmd</B></A></DT>
68
68
  <DD>
69
69
 
70
- This command is called when user release the drag icon over a valid drop target widget.
71
- It takes the same arguments as <B>-dragovercmd</B> command. Its return values is passed
72
- as a result to the <B>-dragendcmd</B> command of the drag source widget.
70
+ This command is called when user release the drag icon over a valid
71
+ drop target widget. Arguments passed to the command are:
72
+
73
+ <UL>
74
+ <LI>pathname of the drop target (the widget itself),
75
+ <LI>pathname of the drag source,
76
+ <LI>root x-coordinate of the pointer,
77
+ <LI>root y-coordinate of the pointer,
78
+ <LI>operation,
79
+ <LI>type of the dragged data,
80
+ <LI>dragged data.
81
+ </UL>
82
+
83
+ Its return values is passed as a result to the <B>-dragendcmd</B>
84
+ command of the drag source widget.
73
85
 
74
86
  </DD>
75
87
  </DL>
@@ -62,8 +62,8 @@ This command adds dynamic help to the given <i>widget</i>.
62
62
 
63
63
  <DL><DT><A NAME="add-item"><B>-item</B></A></DT>
64
64
  <DD>
65
- If specified, refers to an item or tag on a canvas to bind the
66
- help to instead of a widget.
65
+ If specified, refers to an item or tag on a canvas widget or to a tag
66
+ in a text widget to bind the help to instead of to a widget.
67
67
  </DD>
68
68
  </DL>
69
69
 
@@ -201,9 +201,12 @@ Depending on <I>type</I>, other options must be provided.
201
201
  </TABLE>
202
202
  <BR>If one of the option is missing or is empty, help is removed for this widget.
203
203
  <p>
204
- If <i>tagOrItem</i> is specified, then <i>path</i> is a canvas, and
205
- <i>tagOrItem</i> is the name of a tag or item on the canvas to which
206
- the help will be bound.
204
+
205
+ If <i>tagOrItem</i> is specified, then <i>path</i> is a canvas or a text. In
206
+ case of a canvas, <i>tagOrItem</i> is the name of a tag or item on the canvas
207
+ to which the help will be bound. In case of a text, <i>tagOrItem</i> is the
208
+ name of a tag on the text to which the help will be bound.
209
+
207
210
  </p>
208
211
  For type other than <I>balloon</I>, <I>varName</I> is typically a variable
209
212
  linked to a label.
@@ -367,7 +367,7 @@ Set it to false if you call <B>update</B> while modifying the listbox.
367
367
  </DD>
368
368
  </DL>
369
369
 
370
- <DL><DT><A NAME="-selectmode"><B>-selectmode (read-only)</B></A></DT>
370
+ <DL><DT><A NAME="-selectmode"><B>-selectmode</B></A></DT>
371
371
  <DD>
372
372
 
373
373
  Specifies the desired selection-mode for the listbox. Must be one of
@@ -247,6 +247,13 @@ Returns the pathname of the <I>index</I>th added indicator.
247
247
 
248
248
  Returns the pathname of the menu whose id is <I>menuid</I>.
249
249
  </DD></DL>
250
+ <DL><DT><A NAME="getmenustate"><I>pathName</I> <B>getmenustate</B></A>
251
+ <I>tag</I>
252
+ <I>state</I>
253
+ </DT><DD>
254
+
255
+ Returns the state of the given menu <I>tag</I>.
256
+ </DD></DL>
250
257
  <DL><DT><A NAME="gettoolbar"><I>pathName</I> <B>gettoolbar</B></A>
251
258
  <I>index</I>
252
259
  </DT><DD>
@@ -260,6 +267,7 @@ Returns the pathname of the <I>index</I>th added toolbar.
260
267
 
261
268
  Set the <B>-state</B> option value of all the menu entries that have the tag <I>tag</I>
262
269
  to <I>state</I>.
270
+ A menu entry is disabled, if one of its associated tags have state <B>disabled</B>.
263
271
 
264
272
  </DD></DL>
265
273
  <DL><DT><A NAME="showstatusbar"><I>pathName</I> <B>showstatusbar</B></A>
@@ -20,12 +20,16 @@
20
20
  <DT><I><A HREF="#wso">WIDGET-SPECIFIC OPTIONS</A></I></DT>
21
21
  <DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0>
22
22
  <TR>
23
- <TD>&nbsp;&nbsp;<A HREF="#-pad">-pad</A></TR>
24
- <TD>&nbsp;&nbsp;<A HREF="#-side">-side</A></TR>
23
+ <TD>&nbsp;&nbsp;<A HREF="#-activator">-activator</A></TD>
24
+ <TD>&nbsp;&nbsp;<A HREF="#-pad">-pad</A></TD>
25
25
  </TR>
26
26
  <TR>
27
- <TD>&nbsp;&nbsp;<A HREF="#-weights">-weights</A></TR>
28
- <TD>&nbsp;&nbsp;<A HREF="#-width">-width</A></TR>
27
+ <TD>&nbsp;&nbsp;<A HREF="#-side">-side</A></TD>
28
+ <TD>&nbsp;&nbsp;<A HREF="#-weights">-weights</A></TD>
29
+ </TR>
30
+ <TR>
31
+ <TD>&nbsp;&nbsp;<A HREF="#-width">-width</A></TD>
32
+ </TR>
29
33
  </TABLE></DD>
30
34
  </DL>
31
35
  <DL>
@@ -54,6 +58,17 @@ between children.
54
58
  </P>
55
59
  <BR><HR WIDTH="50%"><BR>
56
60
  <B><A NAME="wso">WIDGET-SPECIFIC OPTIONS</A></B><BR>
61
+ <DL><DT><A NAME="-activator"><B>-activator (read-only)</B></A></DT>
62
+ <DD>
63
+
64
+ By default, the control sash is either a button or a line depending
65
+ upon the underlying operating system. This sash may be explicitly set
66
+ using this option. If set to <B>line</B> then the sash consists of
67
+ just a dividing line. Otherwise if set to <B>button</B> then it
68
+ constists of a knob that can be dragged.
69
+
70
+ </DD>
71
+ </DL>
57
72
  <DL><DT><A NAME="-pad"><B>-pad (read-only)</B></A></DT>
58
73
  <DD>
59
74
 
@@ -82,7 +97,8 @@ their weight. Default value for <B>weights</B> is <I>extra</I>.
82
97
  <DL><DT><A NAME="-width"><B>-width (read-only)</B></A></DT>
83
98
  <DD>
84
99
 
85
- Specifies the width of the button of the sash.
100
+ Specifies the width of the button of the sash. This option is ignored
101
+ if the activator is set to <B>line</B>.
86
102
 
87
103
  </DD>
88
104
  </DL>
@@ -14,11 +14,14 @@
14
14
  <DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0>
15
15
  <TR>
16
16
  <TD>&nbsp;&nbsp;<A HREF="options.htm#M-background">-background or -bg</A></TD>
17
- <TD>&nbsp;&nbsp;<A HREF="options.htm#M-xscrollcommand">-xscrollcommand</A></TR>
17
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-xscrollcommand">-xscrollcommand</A></TD></TR>
18
18
  </TR>
19
19
  <TR>
20
- <TD>&nbsp;&nbsp;<A HREF="options.htm#M-yscrollcommand">-yscrollcommand</A></TR>
20
+ <TD>&nbsp;&nbsp;<A HREF="options.htm#M-yscrollcommand">-yscrollcommand</A></TD></TR>
21
21
  </TABLE></DD>
22
+ <BR>
23
+ Themed widget (<B>Widget::theme true</B>): Options <B>-background</B> and <B>-bg</B> are not available.
24
+ Modify style <B>TFrame</B> property <B>-background</B> instead.
22
25
  </DL>
23
26
  <DL>
24
27
  <DT><I><A HREF="#wso">WIDGET-SPECIFIC OPTIONS</A></I></DT>
@@ -25,7 +25,11 @@
25
25
  <DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0>
26
26
  <TR>
27
27
  <TD>&nbsp;&nbsp;<A HREF="#-auto">-auto</A></TR>
28
+ <TD>&nbsp;&nbsp;<A HREF="#-ipad">-ipad</A></TR>
29
+ <TD>&nbsp;&nbsp;<A HREF="#-managed">-managed</A></TR>
28
30
  <TD>&nbsp;&nbsp;<A HREF="#-scrollbar">-scrollbar</A></TR>
31
+ <TD>&nbsp;&nbsp;<A HREF="#-sides">-sides</A></TR>
32
+ <TD>&nbsp;&nbsp;<A HREF="#-size">-size</A></TR>
29
33
  </TR>
30
34
  </TABLE></DD>
31
35
  </DL>
@@ -60,15 +64,43 @@ Specifies the desired auto managed scrollbar:
60
64
  <LI><B>none</B> means scrollbar are always drawn
61
65
  <LI><B>horizontal</B> means horizontal scrollbar is drawn as needed
62
66
  <LI><B>vertical</B> means vertical scrollbar is drawn as needed
63
- <LI><B>both</B> means horizontal and vertical scrollbars are drawn as needed
64
- <LI><B>horizontal</B> means horizontal scrollbar is drawn as needed
67
+ <LI><B>both</B> means horizontal and vertical scrollbars are drawn as needed (default value)
68
+ </DD>
69
+ </DL>
70
+ <DL><DT><A NAME="-ipad"><B>-ipad (read-only)</B></A></DT>
71
+ <DD>
72
+
73
+ Padding in pixels between client widget and scrollbars.
74
+ Default value: <B>1</B>.
75
+ </DD>
76
+ </DL>
77
+ <DL><DT><A NAME="-managed"><B>-managed (read-only)</B></A></DT>
78
+ <DD>
79
+
80
+ If true, scrollbar are managed during creation, so their size are included in the requested size of the
81
+ ScrolledWindow. If false, they are not.
82
+ Default value: <B>true</B>.
65
83
  </DD>
66
84
  </DL>
67
- <DL><DT><A NAME="-scrollbar"><B>-scrollbar (read-only)</B></A></DT>
85
+ <DL><DT><A NAME="-scrollbar"><B>-scrollbar</B></A></DT>
68
86
  <DD>
69
87
 
70
88
  Specifies the desired scrollbar: <B>none</B>, <B>horizontal</B>, <B>vertical</B>
71
- or <B>both</B>. This option is not modifiable with <B>ScrolledWindow::configure</B>.
89
+ or <B>both</B> (default value).
90
+ </DD>
91
+ </DL>
92
+ <DL><DT><A NAME="-sides"><B>-sides (read-only)</B></A></DT>
93
+ <DD>
94
+
95
+ Side of the scrollbars.
96
+ Possible values are: <B>ne</B>, <B>en</B>, <B>nw</B>, <B>wn</B>, <B>se</B> (default value), <B>es</B>, <B>sw</B>, <B>ws</B>.
97
+ </DD>
98
+ </DL>
99
+ <DL><DT><A NAME="-size"><B>-size (read-only)</B></A></DT>
100
+ <DD>
101
+
102
+ Size of the scrollbars in pixels.
103
+ Use </B>0</B> for standard size (default value).
72
104
  </DD>
73
105
  </DL>
74
106
  <HR WIDTH="50%"><BR>
@@ -499,12 +499,6 @@ avoid errors because the characters are special to the tree widget.
499
499
 
500
500
  This command associates a command to execute whenever the event
501
501
  sequence given by <I>event</I> occurs anywhere within the Tree area.
502
-
503
- <p>
504
- Any occurrence of <b>%W</b> in script is substituted with the path of
505
- the tree. <em><a href="#bug">(See note below about this behavior.)</a></em>
506
- </p>
507
-
508
502
  </DD></DL>
509
503
  <DL><DT><A NAME="bindImage"><I>pathName</I> <B>bindImage</B></A>
510
504
  <I>event</I>
@@ -513,13 +507,11 @@ the tree. <em><a href="#bug">(See note below about this behavior.)</a></em>
513
507
 
514
508
  This command associates a command to execute whenever the event
515
509
  sequence given by <I>event</I> occurs on the image of a node.
516
- The node idenfier on which the event occurs is appended to the command.
517
-
518
- <p>
519
- Any occurrence of <b>%W</b> in script is substituted with the path of
520
- the tree. <em><a href="#bug">(See note below about this behavior.)</a></em>
521
- </p>
510
+ The node idenfier on which the event occurs is appended to the command and may be used to manipulate the tree (e.g. don't use <B>%W</B>).
522
511
 
512
+ <P>
513
+ If <B>-selectfill</B> is given, an eventual binding of the background box by <B>bindText</B> is overwritten.
514
+ </P>
523
515
  </DD></DL>
524
516
  <DL><DT><A NAME="bindText"><I>pathName</I> <B>bindText</B></A>
525
517
  <I>event</I>
@@ -528,13 +520,11 @@ the tree. <em><a href="#bug">(See note below about this behavior.)</a></em>
528
520
 
529
521
  This command associates a command to execute whenever the event
530
522
  sequence given by <I>event</I> occurs on the label of a node.
531
- The node idenfier on which the event occurs is appended to the command.
532
-
533
- <p>
534
- Any occurrence of <b>%W</b> in script is substituted with the path of
535
- the tree. <em><a href="#bug">(See note below about this behavior.)</a></em>
536
- </p>
523
+ The node idenfier on which the event occurs is appended to the command and may be used to manipulate the tree (e.g. don't use <B>%W</B>).
537
524
 
525
+ <P>
526
+ If <B>-selectfill</B> is given, an eventual binding of the background box by <B>bindImage</B> is overwritten.
527
+ </P>
538
528
  </DD></DL>
539
529
  <DL><DT><A NAME="cget"><I>pathName</I> <B>cget</B></A>
540
530
  <I>option</I>
@@ -649,7 +639,9 @@ Inserts a new node identified by <I>node</I> in the children list of
649
639
 
650
640
  <p>
651
641
  Any instance of <i>#auto</i> within the node name will be replaced by the
652
- number of the item in the order of insertion.
642
+ number of the item in the order of insertion. The non-printable characters
643
+ \1 to \5 are reserved for internal use and should not be present in node
644
+ names.
653
645
  </p>
654
646
 
655
647
 
@@ -701,12 +693,21 @@ Specifies the foreground color of the label of the node.
701
693
 
702
694
  Specifies a font for the label of the node.
703
695
 
696
+ </DD>
697
+ </DL>
698
+ <DL><DT><A NAME="-helpcmd"><B>-helpcmd</B></A></DT>
699
+ <DD>
700
+
701
+ If specified, refers to a command to execute to get the help text to display.
702
+ The command must return a string to display.
703
+ If the command returns an empty string, no help is displayed.
704
+ See also <A HREF="DynamicHelp.html">DynamicHelp</A>.
704
705
  </DD>
705
706
  </DL>
706
707
  <DL><DT><A NAME="-helptext"><B>-helptext</B></A></DT>
707
708
  <DD>
708
709
 
709
- Text for dynamic help. If empty, no help is available for this widget.
710
+ Text for dynamic help.
710
711
  See also <A HREF="DynamicHelp.html">DynamicHelp</A>.
711
712
  </DD>
712
713
  </DL>
@@ -933,15 +934,4 @@ not be generated.
933
934
  The tree has all the standard mouse wheel bindings when it has focus.
934
935
  </p>
935
936
 
936
- <B><A NAME="bug">CURRENT BUG WITH BINDS</A></B><BR>
937
-
938
- <p>
939
- There currently exists a bug with the Tree's <B>bindArea</B>,
940
- <B>bindImage</B>, and <B>bindText</B> commands. Contrary to the given
941
- text, occurrences of <B>%W</B> within scripts do <em>not</em>
942
- substitute the Tree's path, but rather the Tree's underlying canvas.
943
- A future release of BWidget will fix this error. For now it is
944
- recommended that you do not use <B>%W</B> within your scripts.
945
- </p>
946
-
947
937
  </BODY></HTML>