Updated for new location of YAZ headers.
[ir-tcl-moved-to-github.git] / client.tcl
index 7e2ef83..5346e93 100644 (file)
@@ -4,7 +4,16 @@
 # Sebastian Hammer, Adam Dickmeiss
 #
 # $Log: client.tcl,v $
-# Revision 1.105  1998-06-10 13:00:45  adam
+# Revision 1.108  1999-11-30 14:05:58  adam
+# Updated for new location of YAZ headers.
+#
+# Revision 1.107  1999/02/11 11:30:08  adam
+# Updated for WIN32.
+#
+# Revision 1.106  1998/06/10 13:22:47  adam
+# Minor changes.
+#
+# Revision 1.105  1998/06/10 13:00:45  adam
 # Added ir-version command.
 #
 # Revision 1.104  1998/02/12 13:32:41  adam
@@ -814,8 +823,8 @@ if {[catch {set g $windowGeometry(.)}]} {
 # to a default value or to the value in windowGeometry(.)
 toplevelG .init
 place-force .init .
-message .init.top -text "IrTcl" -relief raised -border 1 -font $font(bb,normal)
-text .init.msg -width 30 -height 4
+message .init.top -aspect 500 -text "IrTcl" -relief raised -border 1 -font $font(bb,normal)
+text .init.msg -width 40 -height 4
 pack .init.top -side top -fill x -expand yes
 pack .init.msg -side bottom -fill both -expand yes
 wm iconify .
@@ -4157,15 +4166,19 @@ set logLevel all
 if {[catch {ir-version}]} {
     set e [info sharedlibextension]
     .init.msg insert end "Loading irtcl$e.\n"
-    load ${libdir}/irtcl$e irtcl
+    catch {load ${libdir}/irtcl$e irtcl}
     if {[catch {ir-version}]} {
-       load irtcl$e irtcl
+       catch {load irtcl$e irtcl}
     }
 }
 
 .init.msg insert end "IrTcl version [lindex [ir-version] 0]\n"
 .init.msg insert end "YAZ version [lindex [ir-version] 1]\n"
-ir-log-init all irtcl.log
+if $debugMode {        
+       ir-log-init all {} irtcl.log
+} else {
+       ir-log-init none {} {}
+}
 
 # Create Z Assocation
 ir z39