#!/usr/bin/wish8.0 package require Fgis set planchet .map option add *font -cronyx-times-bold-r-normal--10-* frame .menu -relief raised -bd 2 menubutton .menu.file -text "File" -menu [set m .menu.file.m] menu $m $m add command -label "Open..." -command add_layer $m add command -label "Save..." -state disabled -command {save_layer [select_layer]} $m add command -label "Close..." -state disabled -command {close_layer [select_layer]} $m add separator $m add command -label "Print..." -command [list fgisPrintDialog $planchet] $m add separator $m add command -label "Quit" -command confirmExit menubutton .menu.layer -text "Layer" -menu [set m .menu.layer.m] menu $m $m add command -label "Show..." -command {show_layer [select_layer] } -state disabled $m add command -label "Look..." -command select_layers -state disabled $m add command -label "Properties..." -command {edit_layer [select_layer]} -state disabled pack .menu.file .menu.layer -side left pack .menu -side top -expand y -fill x label .status -anchor w planchet $planchet -width 640 -height 480 -status .status toolbar .tool $planchet pack .tool -expand y -fill x pack $planchet pack .status -expand y -fill x button .tool.layer -text "?" -command add_layer pack .tool.layer -side left -before .tool.scale wm protocol . WM_DELETE_WINDOW confirmExit foreach file $argv { add_layer $file }