home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-30 | 3.6 KB | 142 lines | [TEXT/KAHL] |
- /******************************************************************************
- CDisplayPane.cp
-
- CDisplayPane Panorama/EditText Class
-
- Copyright © 1994 My Software Inc. All rights reserved.
-
- Generated by Visual Architectâ„¢ 9:40 PM Wed, Jun 8, 1994
-
- This file is only generated once. You can modify it by filling
- in the placeholder functions and adding any new functions you wish.
-
- If you change the name of the document class, a fresh version of this
- file will be generated. If you have made any changes to the file
- with the old name, you will have to copy those changes to the new
- file by hand.
-
- ******************************************************************************/
-
- #include "CDisplayPane.h"
-
- #include <Commands.h>
- //#include "AppCommands.h" // Uncomment to include VA-defined commands
-
- TCL_DEFINE_CLASS_D1(CDisplayPane, x_CDisplayPane);
-
- /**** 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 ****/
-
-
- /******************************************************************************
- DoCommand {OVERRIDE}
-
- Add code to this class to handle commands
- ******************************************************************************/
-
- void CDisplayPane::DoCommand(long theCommand)
-
- {
- // Below is the generic command handler for factored classes
-
- // If your class is factored for Apple event recording,
- // you will have to change the CDisplayPane.h file to additionally
- // derive from "public CAEObject" and add command handling
- // like the following. Each command case factored should
- // *return*, not break, so commands not handled by factoring
- // will fall through.
-
- /* Remove comment brackets if factored
-
- if (Factor())
- {
- if (theCommand < 0)
- {
- if (HiShort(-theCommand) == MENUfactored)
- {
- switch (LoShort(-theCommand))
- {
- case 1: // item 1
- DoSomething1();
- return;
- }
- }
- else switch (theCommand)
- {
- cmdFactoredCmd:
- DoSomething();
- return;
- }
- }
- */
-
- // Below is the generic command handler for non-factored classes
-
- if (theCommand < 0) // Respond to MENU items w/o commands
- {
- // replace if (FALSE) with your own test (see above)
- //
- // HiShort(-theCommand) has the MENU ID and
- // LoShort(-theCommand) has the item number
-
- if (FALSE)
- {
- }
- else
- x_CDisplayPane::DoCommand(theCommand);
- }
- else
- {
- switch (theCommand)
- {
- // insert your command cases here
-
- default:
- x_CDisplayPane::DoCommand(theCommand);
- }
- }
- }
-
-
- /******************************************************************************
- PutTo
-
- Put the contents of this object to the stream
- ******************************************************************************/
-
- void CDisplayPane::PutTo(
- CStream &aStream)
- {
- // Put any additional data members for this class
- // before calling the superclass PutTo.
-
- // If you have no additional data members, the
- // PutTo and GetFrom functions can be eliminated.
-
- x_CDisplayPane::PutTo(aStream); /* Let superclass save */
-
- // By convention, any subordinate objects are put
- // after the superclass has had a chance to write
- // its instance variables.
- }
-
-
- /******************************************************************************
- GetFrom
-
- Get the contents of this object from the stream and
- initialize the object
- ******************************************************************************/
-
- void CDisplayPane::GetFrom(
- CStream &aStream)
- {
- // Get any additional data members for this class
- // before calling the superclass GetFrom
-
-
- /* Let superclass restore */
- x_CDisplayPane::GetFrom(aStream);
-
- // Restore any subordinate objects below
- }
-