#!/usr/bin/tclsh # Part of MCU 8051 IDE ( http://https://sourceforge.net/projects/mcu8051ide/ ) ############################################################################ # Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012 by Martin Ošmera # # martin.osmera@gmail.com # # # # Copyright (C) 2014 by Moravia Microsystems, s.r.o. # # martin.osmera@gmail.com # # # # This program is free software; you can redistribute it and#or modify # # it under the terms of the GNU General Public License as published by # # the Free Software Foundation; either version 2 of the License, or # # (at your option) any later version. # # # # This program is distributed in the hope that it will be useful, # # but WITHOUT ANY WARRANTY; without even the implied warranty of # # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # # GNU General Public License for more details. # # # # You should have received a copy of the GNU General Public License # # along with this program; if not, write to the # # Free Software Foundation, Inc., # # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # ############################################################################ # >>> File inclusion guard if { ! [ info exists _ENVIRONMENT_TCL ] } { set _ENVIRONMENT_TCL _ # <<< File inclusion guard # -------------------------------------------------------------------------- # DESCRIPTION # * Defines some settings and procedures # * Defines basic GUI environment: # - Main menubar # - Main toolbar # - Status bar # -------------------------------------------------------------------------- # PRE-INITIALIZATION # ---------------------------------------- # Restore last session set show_welcome_dialog 0 if {![X::restore_session]} { set show_welcome_dialog 1 } # Restore spell checker configuration from the last session if {${::PROGRAM_AVAILABLE(hunspell)}} { set ::Editor::spellchecker_enabled ${::CONFIG(SPELL_CHECK_ENABLED)} set ::Editor::spellchecker_dictionary ${::CONFIG(SPELL_CHECK_DICTIONARY)} } else { set ::Editor::spellchecker_enabled 0 set ::Editor::spellchecker_dictionary {} } # Some key shortcuts for main window bind . {manipulate_panel {sim} ; break} bind . {manipulate_panel {graph} ; break} bind . {manipulate_panel {mess} ; break} bind . {manipulate_panel {todo} ; break} bind . {manipulate_panel {calc} ; break} # bind . {manipulate_panel {lsh} ; break} # bind . {manipulate_panel {open} ; break} # bind . {manipulate_panel {proj} ; break} # bind . {manipulate_panel {fsb} ; break} # bind . {manipulate_panel {sfr} ; break} bind . {manipulate_panel {book} ; break} bind . {manipulate_panel {brk} ; break} bind . {manipulate_panel {ins} ; break} bind . {manipulate_panel {wtch} ; break} bind . {manipulate_panel {sub} ; break} # bind . {manipulate_panel {rsh} ; break} # General widget bindings bind Menu