#!wish8.2 -f
#
#  'CBB' -- Check Book Balancer
#           Front end to the perl engine.
#
#  Written by Curtis Olson.  Started August 25, 1994.
#
#  Copyright (C) 1994 - 1999  Curtis L. Olson  - curt@me.umn.edu
#
#  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., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# $Id: cbb.in,v 1.1.1.1 1999/12/18 02:04:50 curt Exp $


# the following is ok as [pwd] instead of [mypwd].  The [mypwd] routine
# hasn't been loaded yet anyways ... :-)
set lib_path "/usr/local/lib/cbb"

# Load first tcl piece (creates splash screen procedure)
source "$lib_path/init.tcl"

# read the default user files
set cbb(splash) 1
cbb_init_language english
cbb_init_vars

if { $cbb(splash) } {
    # disable main window and draw splash screen
    wm withdraw .
    cbb_splash
}

# Load the rest of the tcl pieces
source "$lib_path/balance.tcl"
source "$lib_path/balloon.tcl"
source "$lib_path/bindings.tcl"
source "$lib_path/categories.tcl"
source "$lib_path/common.tcl"
source "$lib_path/file.tcl"
source "$lib_path/filebox.tcl"
source "$lib_path/help.tcl"
source "$lib_path/main.tcl"
source "$lib_path/menu.tcl"
source "$lib_path/prefs.tcl"
source "$lib_path/reports.tcl"
source "$lib_path/splits.tcl"
source "$lib_path/undo.tcl"

# initialize variables, parse command line, setup main window, etc.
cbb_setup
