set arr [$w.l subwidget arrow] ; tixBalloon $arr.bal ; $arr.bal bind $arr -msg "Last spots"
- button $w.mdtv -image [image create photo -file $env(WOK_LIBRARY)/opencascade.gif] ;#command wokSeeLayout
- ;#tixBalloon $w.mdtv.bal
- ;#$w.mdtv.bal bind $w.mdtv -msg "See Layout"
+ if [file exists $env(WOK_LIBRARY)/images/opencascade.gif] {
+ set ogif $env(WOK_LIBRARY)/images/opencascade.gif
+ } else {
+ set ogif $env(WOK_LIBRARY)/opencascade.gif
+ }
+ button $w.mdtv -image [image create photo -file $ogif]
+
tixForm $dis -left $lastbut -bottom $top -top $w.mnu
}
}
}
- if ![lempty $recurse] {
- set result [concat $result [osutils:tk:close $recurse]]
- }
+ ;# if ![lempty $recurse] {
+ ;# set result [concat $result [osutils:tk:close $recurse]]
+ ;# }
+ if { $recurse != {} } {
+ set result [concat $result [osutils:tk:close $recurse]]
+ }
return $result
}
;#
if { $typed == 2 } {
lappend l [list [uinfo -c $fu] $fu]
}
+ if { $typed == 3 } {
+ lappend l [list [uinfo -t $fu] [wokinfo -n $fu]]
+ }
+ if { $typed == 4 } {
+ lappend l [list [uinfo -t $fu] $fu]
+ }
} else {
puts stderr "Unit inconnue $u"
}
+proc iwokNotYetImplemented { } {
+puts stderr \
+ {
+ This proc is not available on this version of Tcl/Tk.
+ The commands used to prepare, store and integrate as available as
+ respectively : wprepare , wstore , and wintegre.
+ See online help for these commands.
+ }
+}
+
+
+
+
proc iwokUsage { } {
puts stderr {Usage : iwok [-fh] }
puts stderr ""
global IWOK_GLOBALS
global env
-
+ global tcl_platform
+ global tcl_version
+
if { [lsearch $args -h] != -1 } {
iwokUsage
return
}
+
+
+ regsub -all {\.[^.]*} $tcl_version "" major
+ if { $major == 8 } {
+ iwokNotYetImplemented
+ return
+ }
+
+ if [catch {package require Tix} statix ] {
+ puts stderr "$statix"
+ return
+ }
+
set fast 0
if { [lsearch $args -f] != -1 } { set fast 1 }
catch {wokKillAll}
- if {[wokparam -e %Station] == "lin"} {
- package ifneeded Tk 8.0 "load [list /usr/lib/libtk8.0.so]"
- }
- package require Tk
- package require Tix
-
set IWOK_GLOBALS(windows) {}
set IWOK_GLOBALS(toplevel) .wok[join [split [id user][id host] .] _]
set IWOK_GLOBALS(toplevel,geometry) 1200x80+10+30
set IWOK_GLOBALS(boldfont) [tix option get bold_font]
;# ucreate -P dans factory/workshop/ => erreur ?!!!
- set IWOK_GLOBALS(ucreate-P) [list {j jini} {p package} {s schema} {i interface} {C client} {e engine} {x executable} {n nocdlpack} {t toolkit} {r resource} {O documentation} {c ccl} {f frontal} {d delivery} {I idl} {S server} {m module}]
+ set IWOK_GLOBALS(ucreate-P) [list {j jini} {p package} {s schema} {i interface} {C client} {e engine} {x executable} {n nocdlpack} {t toolkit} {r resource} {O documentation} {c ccl} {f frontal} {d delivery} {I idl} {S server} ]
foreach type $IWOK_GLOBALS(ucreate-P) {
set st [lindex $type 0]
switch -- $IWOK_GLOBALS(EDF,EDITOR) {
connected_emacs {
- wokemacs findfile $IWOK_GLOBALS(EDF,clients) $file
}
iwok_editor {
global env
global IWOK_GLOBALS
global tcl_platform
- set cnx [wokemacs clients]
- if { $cnx != {} } {
- set IWOK_GLOBALS(EDF,clients) $cnx
- return connected_emacs
- } else {
- if { "$tcl_platform(platform)" == "unix" } {
- if {[info exists env(EDITOR)]} {
- return $env(EDITOR)
- } else {
- return iwok_editor
- }
+ if { "$tcl_platform(platform)" == "unix" } {
+ if {[info exists env(EDITOR)]} {
+ return $env(EDITOR)
} else {
return iwok_editor
}
+ } else {
+ return iwok_editor
}
}
;#