home *** CD-ROM | disk | FTP | other *** search
/ PC World 1997 November / PCWorld_1997-11_cd.bin / software / programy / komix / DATA.Z / vieweditor.tcl < prev    next >
Text File  |  1996-08-19  |  2KB  |  55 lines

  1. #---------------------------------------------------------------------------
  2. #
  3. #      (c)     Westmount Technology    1994
  4. #
  5. #      File:           @(#)vieweditor.tcl    /main/hindenburg/2
  6. #      Author:         <generated>
  7. #      Description:
  8. #---------------------------------------------------------------------------
  9. # SccsId = @(#)vieweditor.tcl    /main/hindenburg/2   19 Aug 1996 Copyright 1994 Westmount Technology
  10.  
  11. # Start user added include file section
  12. require "viewedarea.tcl"
  13. # End user added include file section
  14.  
  15. require "custeditor.tcl"
  16.  
  17. Class ViewEditor : {CustEditor} {
  18.     constructor
  19.     method destructor
  20. }
  21.  
  22. constructor ViewEditor {class this name} {
  23.     set this [CustEditor::constructor $class $this $name]
  24.     # Start constructor user section
  25.     $this initObjTypeInformation
  26.     $this menuHdlr [CustBrMenuHandler new viewced]
  27.     $this setToolBarPresence uce
  28.     [$this menuHdlr] setCurrentContext
  29.     set arbiter [.main menuBar].view.menu.viewmodearbiter
  30.     if [isCommand $arbiter] {
  31.         $arbiter currentButton 2
  32.     }
  33.     $this setContextAreaPresence uce
  34.     $this editorArea [ViewEdArea new [$this editorArea].editorArea]
  35.     [$this editorArea] selectionChanged "$this selectionChanged"
  36.     $this setMessageAreaPresence uce
  37.     $this setWindowGeometry vie
  38.     # End constructor user section
  39.     return $this
  40. }
  41.  
  42. method ViewEditor::destructor {this} {
  43.     # Start destructor user section
  44.     $this saveToolBarPresence uce
  45.     $this saveContextAreaPresence uce
  46.     $this saveMessageAreaPresence uce
  47.     $this saveWindowGeometry vie
  48.     [$this menuHdlr] delete
  49.     # End destructor user section
  50.     $this CustEditor::destructor
  51. }
  52.  
  53. # Do not delete this line -- regeneration end marker
  54.  
  55.