// This code implementation is the intellectual property of // the RD44 GEANT4 collaboration. // // By copying, distributing or modifying the Program (or any work // based on the Program) you indicate your acceptance of this statement, // and all its terms. // // $Id: g4xvtdoc.h,v 2.1 1998/07/12 02:39:03 urbi Exp $ // GEANT4 tag $Name: geant4-00 $ // /******************************************************************** * Copyright (c) 1996 File Name: G4XvtDoc.h Author: Date: Class: G4XvtDoc Inheritance: CDocument->G4XvtDoc Helper(s): Purpose: This is an example of how to override the minimal set of methods of CDocument. It initializes data maintained by the class, creates a window in which to display the data, implements methods for handling requests to access the data, and provides a basic skeleton for persistence. Usage: Override or add methods as necessary. Modifications: * ********************************************************************/ #ifndef G4XvtDoc_H #define G4XvtDoc_H #include "XVTPwr.h" #include "AppDef.h" #include GUI_i #include CDocument_i #ifdef DSP_RELEASE #include G4XvtDoc_f #endif //#include CTypeInfo_i class G4XvtDoc : public CDocument { public: G4XvtDoc( CApplication * theApplication = G -> GetApplication( ), PWRID theDocumentId = G -> GetId( ) ); virtual ~G4XvtDoc( void ); virtual void BuildWindow( void ); virtual void DoCommand( long theCommand, void * theData = NULL ); virtual void DoMenuCommand( MENU_TAG theMenuItem, BOOLEAN isShiftKey, BOOLEAN isControlKey ); virtual BOOLEAN DoSave( void ); virtual BOOLEAN DoOpen( void ); virtual BOOLEAN Save( void ); virtual BOOLEAN Open( void ); protected: // By default, copy and assignment are disallowed G4XvtDoc( const G4XvtDoc& theDocument ) : CDocument( theDocument ) { } G4XvtDoc& operator=( const G4XvtDoc& theDocument ) { return( *this ); } private: G4DocData itsData; WINDOW theWin; // PWRClassInfo }; #endif // G4XvtDoc_H