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.
- data/README +11 -10
- data/bin/arcadia +3 -0
- data/conf/arcadia.conf +117 -75
- data/conf/arcadia.res.rb +219 -58
- data/conf/theme-dark.conf +11 -8
- data/conf/theme-dark.res.rb +81 -10
- data/ext/ae-breakpoints/ae-breakpoints.rb +1 -1
- data/ext/ae-dir-projects/ae-dir-projects.conf +2 -2
- data/ext/ae-dir-projects/ae-dir-projects.rb +84 -47
- data/ext/ae-editor/ae-editor.rb +541 -190
- data/ext/ae-editor/langs/coderay.tokens +1 -0
- data/ext/ae-editor/langs/conf.lang +5 -4
- data/ext/ae-editor/langs/java.lang +2 -1
- data/ext/ae-editor/langs/python.lang +4 -0
- data/ext/ae-editor/langs/rhtml.lang +2 -1
- data/ext/ae-editor/langs/ruby.lang +45 -0
- data/ext/ae-editor/langs/tcl.lang +80 -2
- data/ext/ae-editor/langs/text.lang +2 -0
- data/ext/ae-editor/langs/xml.lang +1 -0
- data/ext/ae-file-history/ae-file-history.conf +2 -2
- data/ext/ae-file-history/ae-file-history.rb +66 -20
- data/ext/ae-output/ae-output.conf +3 -3
- data/ext/ae-output/ae-output.rb +37 -23
- data/ext/ae-rad/ae-rad-palette.rb +3 -3
- data/ext/ae-ruby-debug/ae-ruby-debug.conf +2 -2
- data/ext/ae-ruby-debug/ae-ruby-debug.rb +38 -42
- data/ext/ae-search-in-files/ae-search-in-files.conf +2 -2
- data/ext/ae-search-in-files/ae-search-in-files.rb +20 -9
- data/ext/ae-search-in-files/ext/ack-in-files/ack-in-files.conf +2 -2
- data/ext/ae-shell/ae-shell.conf +1 -1
- data/ext/ae-shell/ae-shell.rb +57 -46
- data/ext/ae-subprocess-inspector/ae-subprocess-inspector.rb +99 -46
- data/ext/ae-subprocess-inspector/process.res +0 -0
- data/lib/a-commons.rb +13 -9
- data/lib/a-contracts.rb +24 -1
- data/lib/a-core.rb +586 -196
- data/lib/a-tkcommons.rb +155 -55
- data/lib/anigif.rb +9 -0
- data/lib/ctags.exe +0 -0
- data/tcl/anigif/anigif.tcl +199 -0
- data/tcl/anigif/pkgIndex.tcl +3 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/ArrowButton.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/BWidget.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/Button.html +36 -2
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/ButtonBox.html +9 -7
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/ComboBox.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/Dialog.html +5 -11
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/DragSite.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/DropSite.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/DynamicHelp.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/Entry.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/Label.html +32 -1
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/LabelEntry.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/LabelFrame.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/ListBox.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/MainFrame.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/MessageDlg.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/NoteBook.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/PagesManager.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/PanedWindow.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/PanelFrame.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/PasswdDlg.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/ProgressBar.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/ProgressDlg.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/ScrollView.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/ScrollableFrame.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/ScrolledWindow.html +13 -1
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/SelectColor.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/SelectFont.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/Separator.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/SpinBox.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/StatusBar.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/TitleFrame.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/Tree.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/Widget.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/contents.html +12 -1
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/index.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/navtree.html +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/BWman/options.htm +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/CHANGES.txt +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/ChangeLog +70 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/LICENSE.txt +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/README.txt +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/arrow.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/bitmap.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/button.tcl +121 -53
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/buttonbox.tcl +10 -5
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/color.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/combobox.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/demo/basic.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/demo/bwidget.xbm +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/demo/demo.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/demo/dnd.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/demo/manager.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/demo/select.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/demo/tmpldlg.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/demo/tree.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/demo/x1.xbm +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/dialog.tcl +14 -2
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/dragsite.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/dropsite.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/dynhelp.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/entry.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/font.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/bold.gif +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/copy.gif +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/cut.gif +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/dragfile.gif +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/dragicon.gif +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/error.gif +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/file.gif +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/folder.gif +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/hourglass.gif +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/info.gif +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/italic.gif +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/minus.xbm +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/new.gif +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/opcopy.xbm +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/open.gif +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/openfold.gif +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/oplink.xbm +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/opmove.xbm +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/overstrike.gif +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/palette.gif +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/passwd.gif +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/paste.gif +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/plus.xbm +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/print.gif +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/question.gif +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/redo.gif +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/save.gif +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/target.xbm +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/underline.gif +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/undo.gif +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/images/warning.gif +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/init.tcl +15 -1
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/label.tcl +76 -18
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/labelentry.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/labelframe.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/lang/da.rc +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/lang/de.rc +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/lang/en.rc +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/lang/es.rc +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/lang/fr.rc +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/lang/hu.rc +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/lang/nl.rc +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/lang/no.rc +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/lang/pl.rc +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/listbox.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/mainframe.tcl +3 -2
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/messagedlg.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/notebook.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/pagesmgr.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/panedw.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/panelframe.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/passwddlg.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/pkgIndex.tcl +2 -2
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/progressbar.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/progressdlg.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/scrollframe.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/scrollview.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/scrollw.tcl +37 -25
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/separator.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/spinbox.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/statusbar.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/tests/entry.test +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/titleframe.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/tree.tcl +17 -9
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/utils.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/widget.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/wizard.tcl +0 -0
- data/tcl/{BWidget-1.9.2 → bwidget-1.9.4}/xpm2image.tcl +0 -0
- data/tcl/fsdialog/de.msg +30 -0
- data/tcl/fsdialog/en.msg +31 -0
- data/tcl/fsdialog/fsdialog.tcl +1749 -0
- data/tcl/fsdialog/fsdlg-gif.tcl +259 -0
- data/tcl/fsdialog/fsdlg-png.tcl +265 -0
- data/tcl/fsdialog/sv.msg +32 -0
- data/tcl/fsdialog/tclIndex +6 -0
- metadata +179 -174
- data/ext/ae-editor/langs/erb.lang.bind +0 -1
- data/ext/ae-editor/langs/lang.lang.bind +0 -1
- data/ext/ae-editor/langs/pers.lang.bind +0 -1
- data/ext/ae-editor/langs/rb.lang +0 -73
- data/ext/ae-editor/langs/rbw.lang.bind +0 -1
- data/ext/ae-editor/langs/tokens.lang.bind +0 -1
|
File without changes
|
|
File without changes
|
|
@@ -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> <A HREF="options.htm#M-activebackground">-activebackground</A></TD>
|
|
@@ -59,6 +60,27 @@
|
|
|
59
60
|
<TR>
|
|
60
61
|
<TD> <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> <A HREF="options.htm#M-compound">-compound</A></TD>
|
|
67
|
+
<TD> <A HREF="options.htm#M-cursor">-cursor</A></TD>
|
|
68
|
+
</TR>
|
|
69
|
+
<TR>
|
|
70
|
+
<TD> <A HREF="options.htm#M-image">-image</A></TD>
|
|
71
|
+
<TD> <A HREF="options.htm#M-style">-style</A></TD>
|
|
72
|
+
</TR>
|
|
73
|
+
<TR>
|
|
74
|
+
<TD> <A HREF="options.htm#M-repeatdelay">-repeatdelay</A></TD>
|
|
75
|
+
<TD> <A HREF="options.htm#M-repeatinterval">-repeatinterval</A></TD>
|
|
76
|
+
</TR>
|
|
77
|
+
<TR>
|
|
78
|
+
<TD> <A HREF="options.htm#M-takefocus">-takefocus</A></TD>
|
|
79
|
+
<TD> <A HREF="options.htm#M-text">-text</A></TD>
|
|
80
|
+
</TR>
|
|
81
|
+
<TR>
|
|
82
|
+
<TD> <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><<Invoke>></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> <A HREF="#-default">-default</A></TR>
|
|
18
18
|
</TR>
|
|
19
19
|
<TR>
|
|
20
|
-
<TD> <A HREF="#-homogeneous">-homogeneous</A></
|
|
20
|
+
<TD> <A HREF="#-homogeneous">-homogeneous</A></TD>
|
|
21
21
|
<TD> <A HREF="#-orient">-orient</A></TR>
|
|
22
22
|
</TR>
|
|
23
23
|
<TR>
|
|
24
|
-
<TD> <A HREF="#-padx">-padx</A></
|
|
24
|
+
<TD> <A HREF="#-padx">-padx</A></TD>
|
|
25
25
|
<TD> <A HREF="#-pady">-pady</A></TR>
|
|
26
26
|
</TR>
|
|
27
27
|
<TR>
|
|
28
|
-
<TD> <A HREF="#-spacing">-spacing</A></
|
|
28
|
+
<TD> <A HREF="#-spacing">-spacing</A></TD>
|
|
29
29
|
<TD> <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>
|
|
File without changes
|
|
@@ -33,8 +33,7 @@
|
|
|
33
33
|
</TR>
|
|
34
34
|
<TR>
|
|
35
35
|
|
|
36
|
-
<TD> <A HREF="#-
|
|
37
|
-
<TD> <A HREF="#-cancel">-cancel</A></TR>
|
|
36
|
+
<TD> <A HREF="#-cancel">-cancel</A></TD>
|
|
38
37
|
</TR>
|
|
39
38
|
<TR>
|
|
40
39
|
<TD> <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
|
|
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>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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> <A HREF="options.htm#M-anchor">-anchor</A></TR>
|
|
@@ -53,6 +54,35 @@
|
|
|
53
54
|
<TD> <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> <A HREF="options.htm#M-anchor">-anchor</A></TR>
|
|
61
|
+
<TD> <A HREF="options.htm#M-background">-background or -bg</A></TD>
|
|
62
|
+
</TR>
|
|
63
|
+
<TR>
|
|
64
|
+
<TD> <A HREF="options.htm#M-cursor">-cursor</A></TD></TR>
|
|
65
|
+
<TR>
|
|
66
|
+
<TD> <A HREF="options.htm#M-font">-font</A></TR>
|
|
67
|
+
<TD> <A HREF="options.htm#M-foreground">-foreground or -fg</A></TD>
|
|
68
|
+
</TR>
|
|
69
|
+
<TD> <A HREF="options.htm#M-image">-image</A></TR>
|
|
70
|
+
</TR>
|
|
71
|
+
<TR>
|
|
72
|
+
<TD> <A HREF="options.htm#M-justify">-justify</A></TD>
|
|
73
|
+
</TR>
|
|
74
|
+
<TR>
|
|
75
|
+
<TD> <A HREF="options.htm#M-relief">-relief</A></TD>
|
|
76
|
+
</TR>
|
|
77
|
+
<TR>
|
|
78
|
+
<TD> <A HREF="options.htm#M-takefocus">-takefocus</A></TR>
|
|
79
|
+
<TD> <A HREF="options.htm#M-text">-text</A></TR>
|
|
80
|
+
</TR>
|
|
81
|
+
<TR>
|
|
82
|
+
<TD> <A HREF="options.htm#M-textvariable">-textvariable</A></TR>
|
|
83
|
+
<TD> <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>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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> <A HREF="options.htm#M-background">-background or -bg</A></TD>
|
|
@@ -19,6 +20,16 @@
|
|
|
19
20
|
<TR>
|
|
20
21
|
<TD> <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> <A HREF="options.htm#M-borderwidth">-borderwidth or -bd</A></TD>
|
|
27
|
+
<TD> <A HREF="options.htm#M-relief">-relief</A></TD>
|
|
28
|
+
</TR>
|
|
29
|
+
<TR>
|
|
30
|
+
<TD> (<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>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
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
|
-
|
|
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 -
|
|
94
|
-
|
|
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
|
-
|
|
139
|
+
-relief -state -textvariable -name -text -underline] break
|
|
127
140
|
if { $cr || $cs } {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
if {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
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
|
-
|
|
142
|
-
|
|
143
|
-
|
|
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
|
-
|
|
187
|
-
|
|
188
|
-
|
|
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
|
-
|
|
193
|
-
|
|
194
|
-
if {
|
|
195
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 {
|
|
223
|
-
$path:cmd
|
|
224
|
-
}
|
|
225
|
-
$path
|
|
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
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
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
|
-
|
|
263
|
-
|
|
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 {
|
|
290
|
-
|
|
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
|
+
}
|