// $Revision: 1.5 $ // Copyright (C) 1994 Taligent, Inc. All rights reserved. #ifndef Taligent_MARSPRESENTER #define Taligent_MARSPRESENTER #ifndef Taligent_GUICOMPOUNDDOCUMENT #include #endif #ifndef Taligent_GRAFEDIT #include #endif class TMarsPresenter : public TGUIPresenter { public: TMarsPresenter(const TGUIBundle&); virtual ~TMarsPresenter(); // We need VersionDeclarationsMacro to define the class meta information. // This meta information is needed by TGUIPresenterStateFor<>. VersionDeclarationsMacro(TMarsPresenter); DynamicCastDeclarationsMacro(); protected: virtual TView* HandleCreateMainView (TGUIBundle* theBundleToAlias) const; virtual void SetCanvasView(TCanvasView* canvasView); virtual void HandleMenuActivate(TMenu& theMainMenu); virtual void HandleMenuDeactivate(TMenu& theMainMenu); private: TStandardText* CopyLocalizedText( TArchive* theArchive, const TStandardText& theKey ) const; enum { kOriginalVersion }; TCanvasView* fCanvasView; static TSubMenuItem *gToolSubMenuItem; static TSubMenuItem *gColorSubMenuItem; static TSubMenuItem *gPenSubMenuItem; static TSubMenuItem *gTextSubMenuItem; }; #endif