home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Think Class Libraries / WASTE TCL 2.0b2 / WASTE VA / Source / CMain.cp < prev    next >
Encoding:
Text File  |  1996-01-06  |  2.7 KB  |  101 lines  |  [TEXT/KAHL]

  1. /******************************************************************************
  2.  CMain.cp
  3.  
  4.                 CMain Document Class
  5.     
  6.     Copyright Â© 1995 Dan Crevier. All rights reserved.
  7.  
  8.     Generated by Visual Architectâ„¢ 9:19 AM Mon, Nov 6, 1995
  9.  
  10.     This file is only generated once. You can modify it by filling
  11.     in the placeholder functions and adding any new functions you wish.
  12.  
  13.     If you change the name of the document class, a fresh version of this
  14.     file will be generated. If you have made any changes to the file
  15.     with the old name, you will have to copy those changes to the new
  16.     file by hand.
  17.  
  18.  ******************************************************************************/
  19.  
  20. #include "CMain.h"
  21. //#include "AppCommands.h"            // Remove comments if DoCommand overridden
  22.  
  23. #include <CApplication.h>
  24. #include "CVAWASTEText.h"
  25. #include "CVAWASTEDlgText.h"
  26.  
  27. TCL_DEFINE_CLASS_M1(CMain, x_CMain);
  28.  
  29. /**** C O N S T R U C T I O N / D E S T R U C T I O N   M E T H O D S ****/
  30.  
  31.  
  32. /******************************************************************************
  33.  ICMain
  34.  
  35.     Initialize the document
  36.  
  37.  ******************************************************************************/
  38.  
  39. void CMain::ICMain()
  40.  
  41. {
  42.     Ix_CMain();
  43.  
  44.         // Initialize data members here
  45.  
  46. }
  47.  
  48.  
  49. /******************************************************************************
  50.  MakeNewContents
  51.  
  52.     Create "blank" document contents. MakeNewContents is called
  53.     after itsWindow is created and before it is first selected,
  54.     whether or not the document uses a file.
  55.  ******************************************************************************/
  56.  
  57. void CMain::MakeNewContents()
  58.  
  59. {
  60.         // Initialize document contents and itsWindow here
  61.  
  62.     // enable drag handlers for CWASTEText box
  63.     fMain_TextField->InstallDragHandlers();
  64.     // give it a margin
  65.     fMain_TextField->SetTextMargin(3);
  66.     
  67.     // set gopher to text field
  68.     itsGopher = fMain_TextField;
  69. }
  70.  
  71.  
  72. /******************************************************************************
  73.  ContentsToWindow
  74.  
  75.      Make window reflect document's contents.  If the document does
  76.      not use a file, this function is never called and may be deleted.
  77. ******************************************************************************/
  78.  
  79. void CMain::ContentsToWindow()
  80.  
  81. {
  82.         // Transfer data from itsContents to itsWindow.
  83.         // See Chapter 8, Using Object I/O
  84.     
  85. }
  86.  
  87.  
  88. /******************************************************************************
  89.  WindowToContents
  90.  
  91.      Make document's contents reflect window's contents (if they
  92.      don't already).  If the document does not use a file, this
  93.      function is never called and may be deleted.
  94. ******************************************************************************/
  95.  
  96. void CMain::WindowToContents()
  97.  
  98. {
  99.         // Transfer data from itsWindow to itsContents
  100. }
  101.