#!/usr/bin/env wish
#
#  '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,v 0.9 2000/12/24 00:06:14 gene Exp $

set lib_path "/usr/local/lib/cbb"

# load needed functions
source "$lib_path/tcl/common.tcl"

# Load first tcl piece (creates splash screen procedure)
source "$lib_path/tcl/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/tcl/balance.tcl"
source "$lib_path/tcl/balloon.tcl"
source "$lib_path/tcl/bindings.tcl"
source "$lib_path/tcl/categories.tcl"
source "$lib_path/tcl/dates.tcl"
source "$lib_path/tcl/file.tcl"
source "$lib_path/tcl/filebox.tcl"
source "$lib_path/tcl/help.tcl"
source "$lib_path/tcl/main.tcl"
source "$lib_path/tcl/menu.tcl"
source "$lib_path/tcl/prefs.tcl"
source "$lib_path/tcl/reports.tcl"
source "$lib_path/tcl/splits.tcl"
source "$lib_path/tcl/undo.tcl"

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