home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / C++-7 / DISK4 / SAMPLES / CPPTUTOR / OOD / OODEMO.TX$ / OODEMO
Encoding:
Text File  |  1992-02-21  |  2.1 KB  |  95 lines

  1.           OODEMO.TXT: Notes on the Object-Oriented Design Example
  2.  
  3. PRIM.H/.CPP
  4.    Defines primitive classes Point and Rect.
  5.  
  6. MISC.H/.CPP
  7.    Defines Screen, Mouse, and various constants.
  8.  
  9. EVENT.H/.CPP
  10.    Defines Event hierarchy.
  11.  
  12.                    (Event)
  13.                       |
  14.      ---------------------------------- 
  15.      |          |          |          |
  16.   KbdEvent  MouseEvent  ScrlEvent  PushEvent
  17.  
  18.  
  19. LIST.H/.CPP
  20.     Defines List and ListItem. Used for WinMgr's collection class.
  21.  
  22.  
  23. INTERACT.H/.CPP
  24.    Defines basic Interactor hierarchy (derived from ListItem).
  25.  
  26.                  (Interactor)
  27.                       |
  28.                -------------
  29.                |           |
  30.            (Control)     (Win)
  31.                |
  32.          ------------
  33.          |          |
  34.      ScrollBar  PushButton   
  35.  
  36.  
  37. TEXTWIN.H/.CPP
  38.    Defines TextWin, EditWin. (Derived from Win.)
  39.  
  40.          TextWin
  41.            |
  42.          EditWin
  43.  
  44.  
  45. LIFEWIN.H/.CPP
  46.  
  47.    Defines LifeWin. (Derived from TextWin.)
  48.  
  49. WINMGR.H/.CPP
  50.    Defines WinMgr. 
  51.  
  52. OODEMO.CPP
  53.    Driver program for demo.
  54.  
  55.  
  56.  
  57.  
  58.  
  59. *********************************************************
  60.  
  61. Notes on OODEMO.EXE
  62. -------------------
  63.  
  64. Usage
  65. -----
  66.  
  67. TAB changes the active window.
  68.  
  69. ESC quits.
  70.  
  71. All windows respond to cursor keys, HOME, END, PGUP, PGDN.
  72.  
  73. Windows can be moved with Ctrl-U (up), Ctrl-H (left), Ctrl-J (right), 
  74. and Ctrl-N (down).
  75.  
  76. Windows can be resized with Ctrl-T (shorter), Ctrl-F (narrower), 
  77. Ctrl-G (wider), and Ctrl-V (longer).
  78.  
  79. DELETE removes active window.
  80.  
  81. EditWin accepts text input.
  82.  
  83. Cells can be added or killed from the LifeWin screen, using
  84. either the mouse or the spacebar. Commands can be executed
  85. by clicking mouse on the buttons, or with the keyboard
  86. (C to clear, R to randomize, N to compute next generation.)
  87.  
  88. Limitations
  89. -----------
  90. Scrollbar sliders cannot be dragged. There is no "auto-repeat"
  91. for the end arrows; i.e. holding down the mouse button will
  92. not cause continuous scrolling. There is no bounds-checking
  93. to prevent windows from being moved off the screen.
  94.  
  95.