#
# ~cvs/scrib/app_example/config.tcl
#
# author: jason aftosmis (jason@icemcfd.com)
# date:   april 2002 
#
# This file generates the configures a scrib application
#   --It must be present
#   --It can thus far have the following commands:
#     o scrib_app_config_internal
#     o scrib_app_button_add
#     o scrib_app_set_environment
#     o scrib_app_install_medgui_file

#-------------------------------------------------------------------------

## scrib_app_config_*
##
## MAKES PRETTY: tags defining the application: site_name, app_name, app_version

scrib_app_config_app_site    "Site name"
scrib_app_config_app_name    "Script application name"
scrib_app_config_app_version "1.1"

scrib_app_config_gui_color grey

#-------------------------------------------------------------------

## scrib_app_(side_)button_add
##
## MAKES USEFUL: add these buttons to the base set of buttons
## these procs should go in procedures.tcl (which can refer
## to scrib_lib* procs)!!

#                    *command to call*       *name of button*
scrib_app_button_add scrib_app_document_self "Programmer's guide"
scrib_app_button_add app_ex_procedure_test   "Script 1"
scrib_app_button_add app_ex_procedure_test   "Script n"
scrib_app_button_add app_ex_procedure_test   "Script n+1"

scrib_app_side_button_add app_ex_procedure_test   "Side script 1"
scrib_app_side_button_add app_ex_procedure_test   "Side script n"
scrib_app_side_button_add app_ex_procedure_test   "Side script n+1"

#-------------------------------------------------------------------

## scrib_app_set_environment
##
## OPTIONAL: set these environment variables to these values

#                         *variable*            *value*
scrib_app_set_environment ICEM_MED_MENUS_SUFFIX example
scrib_app_set_environment ICEM_USE_MENUBAR      3

#-------------------------------------------------------------------

## scrib_app_set_environment
##
## OPTIONAL: install these files to the med gui directory

#                             *file*       
scrib_app_install_medgui_file ../med_menus/menus_example.tcl
#
if 0 {
    # Or, you could do it this way:
    #
    # Install a custom MED gui and tell MED to use it.
    #
    scrib_app_install_custom_med_menu SM
}
