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
|
@@ -145,11 +145,16 @@ proc ButtonBox::insert { path idx args } {
|
|
|
145
145
|
set args [array get flags]
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
148
|
+
if { $::Widget::_theme} {
|
|
149
|
+
eval [list Button::create $but] \
|
|
150
|
+
$args [list -default $style]
|
|
151
|
+
} else {
|
|
152
|
+
eval [list Button::create $but \
|
|
153
|
+
-background [Widget::getoption $path -background]\
|
|
154
|
+
-padx [Widget::getoption $path -padx] \
|
|
155
|
+
-pady [Widget::getoption $path -pady]] \
|
|
156
|
+
$args [list -default $style]
|
|
157
|
+
}
|
|
153
158
|
|
|
154
159
|
# ericm@scriptics.com: set up tags, just like the menu items
|
|
155
160
|
foreach tag $tags {
|
|
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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# ----------------------------------------------------------------------------
|
|
2
2
|
# dialog.tcl
|
|
3
3
|
# This file is part of Unifix BWidget Toolkit
|
|
4
|
-
# $Id: dialog.tcl,v 1.15
|
|
4
|
+
# $Id: dialog.tcl,v 1.15.2.1 2010/08/04 13:07:59 oehhar Exp $
|
|
5
5
|
# ----------------------------------------------------------------------------
|
|
6
6
|
# Index of commands:
|
|
7
7
|
# - Dialog::create
|
|
@@ -118,7 +118,11 @@ proc Dialog::create { path args } {
|
|
|
118
118
|
set _widget($path,realized) 0
|
|
119
119
|
set _widget($path,nbut) 0
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
set cancel [Widget::getoption $path -cancel]
|
|
122
|
+
bind $path <Escape> [list ButtonBox::invoke $path.bbox $cancel]
|
|
123
|
+
if {$cancel != -1} {
|
|
124
|
+
wm protocol $path WM_DELETE_WINDOW [list ButtonBox::invoke $path.bbox $cancel]
|
|
125
|
+
}
|
|
122
126
|
bind $path <Return> [list ButtonBox::invoke $path.bbox default]
|
|
123
127
|
|
|
124
128
|
return [Widget::create Dialog $path]
|
|
@@ -142,6 +146,14 @@ proc Dialog::configure { path args } {
|
|
|
142
146
|
Separator::configure $path.sep -background $bg
|
|
143
147
|
}
|
|
144
148
|
}
|
|
149
|
+
if { [Widget::hasChanged $path -cancel cancel] } {
|
|
150
|
+
bind $path <Escape> [list ButtonBox::invoke $path.bbox $cancel]
|
|
151
|
+
if {$cancel == -1} {
|
|
152
|
+
wm protocol $path WM_DELETE_WINDOW ""
|
|
153
|
+
} else {
|
|
154
|
+
wm protocol $path WM_DELETE_WINDOW [list ButtonBox::invoke $path.bbox $cancel]
|
|
155
|
+
}
|
|
156
|
+
}
|
|
145
157
|
return $res
|
|
146
158
|
}
|
|
147
159
|
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -29,7 +29,21 @@ proc Widget::_opt_defaults {{prio widgetDefault}} {
|
|
|
29
29
|
}
|
|
30
30
|
Widget::_opt_defaults
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
# Try to load lang file corresponding to current msgcat locale
|
|
33
|
+
proc Widget::_opt_lang {} {
|
|
34
|
+
set langfile [file join $::BWIDGET::LIBRARY "lang" "en.rc"]
|
|
35
|
+
if {0 != [llength [info commands ::msgcat::mcpreferences]]} {
|
|
36
|
+
foreach lang [::msgcat::mcpreferences] {
|
|
37
|
+
set l [file join $::BWIDGET::LIBRARY "lang" "$lang.rc"]
|
|
38
|
+
if {[file readable $l]} {
|
|
39
|
+
set langfile $l
|
|
40
|
+
break
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
option read $langfile
|
|
45
|
+
}
|
|
46
|
+
Widget::_opt_lang
|
|
33
47
|
|
|
34
48
|
## Add a TraverseIn binding to standard Tk widgets to handle some of
|
|
35
49
|
## the BWidget-specific things we do.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# ------------------------------------------------------------------------------
|
|
2
2
|
# label.tcl
|
|
3
3
|
# This file is part of Unifix BWidget Toolkit
|
|
4
|
-
# $Id: label.tcl,v 1.10
|
|
4
|
+
# $Id: label.tcl,v 1.10.2.2 2010/11/21 19:35:48 oehhar Exp $
|
|
5
5
|
# ------------------------------------------------------------------------------
|
|
6
6
|
# Index of commands:
|
|
7
7
|
# - Label::create
|
|
@@ -16,8 +16,13 @@
|
|
|
16
16
|
namespace eval Label {
|
|
17
17
|
Widget::define Label label DragSite DropSite DynamicHelp
|
|
18
18
|
|
|
19
|
-
Widget::
|
|
20
|
-
|
|
19
|
+
if {$::Widget::_theme} {
|
|
20
|
+
Widget::tkinclude Label label .l \
|
|
21
|
+
remove { -foreground -text -textvariable -underline -state}
|
|
22
|
+
} else {
|
|
23
|
+
Widget::tkinclude Label label .l \
|
|
24
|
+
remove { -foreground -text -textvariable -underline }
|
|
25
|
+
}
|
|
21
26
|
|
|
22
27
|
Widget::declare Label {
|
|
23
28
|
{-name String "" 0}
|
|
@@ -56,21 +61,32 @@ namespace eval Label {
|
|
|
56
61
|
proc Label::create { path args } {
|
|
57
62
|
array set maps [list Label {} .l {}]
|
|
58
63
|
array set maps [Widget::parseArgs Label $args]
|
|
59
|
-
frame $path -class Label -borderwidth 0 -highlightthickness 0 -relief flat
|
|
64
|
+
frame $path -class Label -borderwidth 0 -highlightthickness 0 -relief flat -padx 0 -pady 0
|
|
60
65
|
Widget::initFromODB Label $path $maps(Label)
|
|
61
66
|
|
|
62
|
-
|
|
67
|
+
if {$::Widget::_theme} {
|
|
68
|
+
eval [list ttk::label $path.l] $maps(.l)
|
|
69
|
+
} else {
|
|
70
|
+
eval [list label $path.l] $maps(.l)
|
|
71
|
+
}
|
|
63
72
|
|
|
64
|
-
if {
|
|
65
|
-
|
|
73
|
+
if {$::Widget::_theme} {
|
|
74
|
+
if { [Widget::cget $path -state] != "normal" } {
|
|
75
|
+
$path.l state disabled
|
|
76
|
+
}
|
|
66
77
|
} else {
|
|
67
|
-
|
|
68
|
-
|
|
78
|
+
if { [Widget::cget $path -state] == "normal" } {
|
|
79
|
+
set fg [Widget::cget $path -foreground]
|
|
80
|
+
} else {
|
|
81
|
+
set fg [Widget::cget $path -disabledforeground]
|
|
82
|
+
}
|
|
83
|
+
$path.l configure -foreground $fg
|
|
84
|
+
}
|
|
69
85
|
|
|
70
86
|
set var [Widget::cget $path -textvariable]
|
|
71
87
|
if { $var == "" &&
|
|
72
88
|
[Widget::cget $path -image] == "" &&
|
|
73
|
-
[Widget::cget $path -bitmap] == ""} {
|
|
89
|
+
($::Widget::_theme || [Widget::cget $path -bitmap] == "")} {
|
|
74
90
|
set desc [BWidget::getname [Widget::cget $path -name]]
|
|
75
91
|
if { $desc != "" } {
|
|
76
92
|
set text [lindex $desc 0]
|
|
@@ -85,7 +101,7 @@ proc Label::create { path args } {
|
|
|
85
101
|
}
|
|
86
102
|
|
|
87
103
|
$path.l configure -text $text -textvariable $var \
|
|
88
|
-
-underline $under
|
|
104
|
+
-underline $under
|
|
89
105
|
|
|
90
106
|
set accel [string tolower [string index $text $under]]
|
|
91
107
|
if { $accel != "" } {
|
|
@@ -118,20 +134,38 @@ proc Label::configure { path args } {
|
|
|
118
134
|
set res [Widget::configure $path $args]
|
|
119
135
|
|
|
120
136
|
set cfg [Widget::hasChanged $path -foreground fg]
|
|
121
|
-
set cdfg [Widget::hasChanged $path -disabledforeground dfg]
|
|
122
137
|
set cst [Widget::hasChanged $path -state state]
|
|
123
138
|
|
|
124
|
-
if {
|
|
125
|
-
if { $
|
|
139
|
+
if {$::Widget::_theme} {
|
|
140
|
+
if { $cfg } {
|
|
126
141
|
$path.l configure -fg $fg
|
|
127
|
-
} else {
|
|
128
|
-
$path.l configure -fg $dfg
|
|
129
142
|
}
|
|
130
|
-
|
|
143
|
+
if { $cst } {
|
|
144
|
+
if { $state == "normal" } {
|
|
145
|
+
$path.l state !disabled
|
|
146
|
+
} else {
|
|
147
|
+
$path.l state disabled
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
} else {
|
|
151
|
+
set cdfg [Widget::hasChanged $path -disabledforeground dfg]
|
|
152
|
+
if { $cst || $cfg || $cdfg } {
|
|
153
|
+
if { $state == "normal" } {
|
|
154
|
+
$path.l configure -fg $fg
|
|
155
|
+
} else {
|
|
156
|
+
$path.l configure -fg $dfg
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
131
160
|
|
|
132
161
|
set cv [Widget::hasChanged $path -textvariable var]
|
|
133
162
|
set cb [Widget::hasChanged $path -image img]
|
|
134
|
-
|
|
163
|
+
if {$::Widget::_theme} {
|
|
164
|
+
set ci 0
|
|
165
|
+
set bmp ""
|
|
166
|
+
} else {
|
|
167
|
+
set ci [Widget::hasChanged $path -bitmap bmp]
|
|
168
|
+
}
|
|
135
169
|
set cn [Widget::hasChanged $path -name name]
|
|
136
170
|
set ct [Widget::hasChanged $path -text text]
|
|
137
171
|
set cu [Widget::hasChanged $path -underline under]
|
|
@@ -175,6 +209,30 @@ proc Label::cget { path option } {
|
|
|
175
209
|
}
|
|
176
210
|
|
|
177
211
|
|
|
212
|
+
# ----------------------------------------------------------------------------
|
|
213
|
+
# Command Label::identify
|
|
214
|
+
# ----------------------------------------------------------------------------
|
|
215
|
+
proc Label::identify { path args } {
|
|
216
|
+
eval $path.l identify $args
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
# ----------------------------------------------------------------------------
|
|
221
|
+
# Command Label::instate
|
|
222
|
+
# ----------------------------------------------------------------------------
|
|
223
|
+
proc Label::instate { path args } {
|
|
224
|
+
eval $path.l instate $args
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
# ----------------------------------------------------------------------------
|
|
229
|
+
# Command Label::state
|
|
230
|
+
# ----------------------------------------------------------------------------
|
|
231
|
+
proc Label::state { path args } {
|
|
232
|
+
eval $path.l state $args
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
|
|
178
236
|
# ------------------------------------------------------------------------------
|
|
179
237
|
# Command Label::setfocus
|
|
180
238
|
# ------------------------------------------------------------------------------
|
|
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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# ----------------------------------------------------------------------------
|
|
2
2
|
# mainframe.tcl
|
|
3
3
|
# This file is part of Unifix BWidget Toolkit
|
|
4
|
-
# $Id: mainframe.tcl,v 1.24
|
|
4
|
+
# $Id: mainframe.tcl,v 1.24.2.1 2010/11/09 16:05:43 oehhar Exp $
|
|
5
5
|
# ------------------------------------------------------------------------------
|
|
6
6
|
# Index of commands:
|
|
7
7
|
# - MainFrame::create
|
|
@@ -518,7 +518,8 @@ proc MainFrame::_create_menubar { path descmenu } {
|
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
|
|
521
|
-
if {![Widget::theme] && $tcl_platform(platform) == "unix"
|
|
521
|
+
if { ![Widget::theme] && $tcl_platform(platform) == "unix"
|
|
522
|
+
&& [tk windowingsystem] !="aqua" } {
|
|
522
523
|
set menuopts [list -background [Widget::getoption $path -background] \
|
|
523
524
|
-borderwidth 1]
|
|
524
525
|
} else {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
if {[catch {package require Tcl}]} return
|
|
2
|
-
package ifneeded BWidget 1.9.
|
|
2
|
+
package ifneeded BWidget 1.9.4 "\
|
|
3
3
|
package require Tk 8.1.1;\
|
|
4
|
-
[list tclPkgSetup $dir BWidget 1.9.
|
|
4
|
+
[list tclPkgSetup $dir BWidget 1.9.4 {
|
|
5
5
|
{arrow.tcl source {ArrowButton ArrowButton::create ArrowButton::use}}
|
|
6
6
|
{labelframe.tcl source {LabelFrame LabelFrame::create LabelFrame::use}}
|
|
7
7
|
{labelentry.tcl source {LabelEntry LabelEntry::create LabelEntry::use}}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# -----------------------------------------------------------------------------
|
|
2
2
|
# scrollw.tcl
|
|
3
3
|
# This file is part of Unifix BWidget Toolkit
|
|
4
|
-
# $Id: scrollw.tcl,v 1.13
|
|
4
|
+
# $Id: scrollw.tcl,v 1.13.2.1 2010/11/23 08:21:17 oehhar Exp $
|
|
5
5
|
# -----------------------------------------------------------------------------
|
|
6
6
|
# Index of commands:
|
|
7
7
|
# - ScrolledWindow::create
|
|
@@ -47,21 +47,31 @@ proc ScrolledWindow::create { path args } {
|
|
|
47
47
|
|
|
48
48
|
set bg [Widget::cget $path -background]
|
|
49
49
|
set sbsize [Widget::cget $path -size]
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
50
|
+
|
|
51
|
+
if { $::Widget::_theme } {
|
|
52
|
+
set sw [eval [list ttk::frame $path \
|
|
53
|
+
-relief flat -borderwidth 0 -takefocus 0] \
|
|
54
|
+
[Widget::subcget $path :cmd]]
|
|
55
|
+
ttk::scrollbar $path.hscroll \
|
|
56
|
+
-takefocus 0 -orient horiz
|
|
57
|
+
ttk::scrollbar $path.vscroll \
|
|
58
|
+
-takefocus 0 -orient vert
|
|
59
|
+
} else {
|
|
60
|
+
set sw [eval [list frame $path \
|
|
61
|
+
-relief flat -borderwidth 0 -background $bg \
|
|
62
|
+
-highlightthickness 0 -takefocus 0] \
|
|
63
|
+
[Widget::subcget $path :cmd]]
|
|
64
|
+
scrollbar $path.hscroll \
|
|
65
|
+
-highlightthickness 0 -takefocus 0 \
|
|
66
|
+
-orient horiz \
|
|
67
|
+
-relief sunken \
|
|
68
|
+
-bg $bg
|
|
69
|
+
scrollbar $path.vscroll \
|
|
70
|
+
-highlightthickness 0 -takefocus 0 \
|
|
71
|
+
-orient vert \
|
|
72
|
+
-relief sunken \
|
|
73
|
+
-bg $bg
|
|
74
|
+
}
|
|
65
75
|
|
|
66
76
|
set data(realized) 0
|
|
67
77
|
|
|
@@ -77,11 +87,13 @@ proc ScrolledWindow::create { path args } {
|
|
|
77
87
|
set data(hsb,packed) 0
|
|
78
88
|
set data(vsb,packed) 0
|
|
79
89
|
}
|
|
80
|
-
if {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
90
|
+
if { ! $::Widget::_theme } {
|
|
91
|
+
if {$sbsize} {
|
|
92
|
+
$path.vscroll configure -width $sbsize
|
|
93
|
+
$path.hscroll configure -width $sbsize
|
|
94
|
+
} else {
|
|
95
|
+
set sbsize [$path.vscroll cget -width]
|
|
96
|
+
}
|
|
85
97
|
}
|
|
86
98
|
set data(ipad) [Widget::cget $path -ipad]
|
|
87
99
|
|
|
@@ -141,10 +153,10 @@ proc ScrolledWindow::configure { path args } {
|
|
|
141
153
|
Widget::getVariable $path data
|
|
142
154
|
|
|
143
155
|
set res [Widget::configure $path $args]
|
|
144
|
-
if { [Widget::hasChanged $path -background bg] } {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
156
|
+
if { ! $::Widget::_theme && [Widget::hasChanged $path -background bg] } {
|
|
157
|
+
$path configure -background $bg
|
|
158
|
+
catch {$path.hscroll configure -background $bg}
|
|
159
|
+
catch {$path.vscroll configure -background $bg}
|
|
148
160
|
}
|
|
149
161
|
|
|
150
162
|
if {[Widget::hasChanged $path -scrollbar scrollbar] | \
|