main

TCL/TK UseCase3



Abstract : Initializes every thing. Comments : Initializes the iGraph through which all C++ propagation patterns are called. Gets the whole Tcl/Tk ball of wall rolling by sourcing all supporting files. Starts the Tool Bar window and the Main window.
################################# # Welcome to the DemDraw GUI code! # # The GUI was written in Tcl/Tk by the Fall '95 COM1205 # Tcl/Tk team. Group members include: # # Joshua Houghton : Team Leader; Tcl/Tk code intergator; Tool Bar function # Paul Guglielmino : Help Function; Tcl/Tk Research & Delevolpment # Marsha Akeson : Main Program Window; Documentation # Steven Kaufman : Printing Function; Tcl/Tk Research & Delevolpment # Michael Boucher : Secretary; Open/Save Function; Documentation # Chih-Chien Ueng : Open/Save Function; Tcl/Tk Research & Delevolpment ################################# # Where are those cool icons? set INCLUDE "$env(BIT_DIR)/bitmaps" # Creates new graph object. global iGraph set iGraph [Graph new:] # Initializes the C++ graph. (Needs to only be called once.) $iGraph cppInit: # Toolbar window procedures. source $env(TCL_DIR)/toolbar.tcl # Main window and misc. procedures. source $env(TCL_DIR)/mainwin.tcl # Dialogue box procedures. source $env(TCL_DIR)/dialogs.tcl # Tcl/Tk procedures used by C++. (Tcl/Tk code also calls these.) source $env(TCL_DIR)/drawing.tcl # Procedures for the actions to be taken when event bindings occur source $env(TCL_DIR)/bindings.tcl # All procedures relating to a vertex. source $env(TCL_DIR)/vertex.tcl # All procedures relating to an edge. source $env(TCL_DIR)/edge.tcl # On-line... source $env(TCL_DIR)/helpmenu.tcl # Lets get started.... setup_tools setup_mainwin