~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Open Mash Cross Reference
mash/tcl/fca/main.tcl

Component: ~ [ mash ] ~ [ apps ] ~ [ gsm ] ~ [ lib ] ~ [ otcl ] ~ [ srm ] ~ [ tcl8.3 ] ~ [ tclcl ] ~ [ tk8.3 ] ~ [ tutorials ] ~

  1 # main.tcl --
  2 #
  3 #       This is the main entry point for the fca tool.
  4 #       Tcl source code expansion with tcl-expand.tcl starts here.
  5 #       Tcl execution also starts here.
  6 #
  7 # Copyright (c) 1997-2002 The Regents of the University of California.
  8 # All rights reserved.
  9 #
 10 # Redistribution and use in source and binary forms, with or without
 11 # modification, are permitted provided that the following conditions are met:
 12 #
 13 # A. Redistributions of source code must retain the above copyright notice,
 14 #    this list of conditions and the following disclaimer.
 15 # B. Redistributions in binary form must reproduce the above copyright notice,
 16 #    this list of conditions and the following disclaimer in the documentation
 17 #    and/or other materials provided with the distribution.
 18 # C. Neither the names of the copyright holders nor the names of its
 19 #    contributors may be used to endorse or promote products derived from this
 20 #    software without specific prior written permission.
 21 #
 22 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
 23 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 24 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 25 # ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
 26 # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 27 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 28 # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 29 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 30 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 31 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 32 
 33 
 34 #
 35 # Put all the tcl files needed for mb here
 36 #
 37 
 38 proc havefont { f } { return 1 }
 39 
 40 # common files
 41 source tcl/common/util.tcl
 42 source tcl/common/application.tcl
 43 
 44 # srm stuff
 45 source tcl/srm/cf-srm.tcl
 46 
 47 proc DbgOut {str} {
 48     puts "$str"
 49 }
 50 
 51 
 52 proc assert { expression {msg {}} } {
 53     if { ![uplevel expr $expression] } {
 54         if { $msg!={} } {
 55             error "assert failed for '$expression': $msg"
 56         } else {
 57             error "assert failed for '$expression'"
 58         }
 59     }
 60 }
 61 
 62 
 63 # fca stuff
 64 source tcl/fca/fca-fcp.tcl
 65 source tcl/fca/fca-fcd.tcl
 66 source tcl/fca/fca-mgr.tcl
 67 source tcl/fca/fca-rreq.tcl
 68 source tcl/fca/fca-rcvr.tcl
 69 source tcl/fca/fca-modrcvr.tcl
 70 source tcl/fca/fca-localrcvr.tcl
 71 source tcl/fca/fca-pkt.tcl
 72 source tcl/fca/application-fca.tcl
 73 source tcl/fca/fca-cb.tcl
 74 
 75 # ui stuff
 76 source tcl/ui_tools/ui-util.tcl
 77 source tcl/ui_tools/ui-dropdown.tcl
 78 source tcl/ui_tools/ui-minimize.tcl
 79 source tcl/ui_tools/ui-list.tcl
 80 source tcl/ui_tools/ui-book.tcl
 81 source tcl/ui_tools/ui-fonts.tcl
 82 source tcl/ui_tools/images.tcl
 83 source tcl/fca/icons.tcl
 84 source tcl/fca/fca-ui.tcl
 85 source tcl/fca/fca-uimgr.tcl
 86 
 87 
 88 #
 89 # First procedure to be called from mash
 90 #
 91 # o start up the MediaBoard application
 92 #
 93 proc main argv {
 94     global FCApp
 95     set FCApp [new FCApp $argv]
 96 }
 97 
 98 ui_init_default
 99 main $argv
100 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.