// $Revision: 1.1 $ // Copyright (C) 1995 Taligent, Inc. All rights reserved. #ifndef Taligent_MARSTESTPRESENTER #define Taligent_MARSTESTPRESENTER #ifndef Taligent_MARSPRESENTER #include "../MarsPresenter.h" #endif #include #ifndef Taligent_MOMENTARYCONTROLS #include #endif class TMarsTestPresenter; class TTestOtherClassesState : public MMomentaryControlState { public: TTestOtherClassesState(TGUIBundle *, TMarsTestPresenter *); virtual void Select(); TGUIBundle* GetGUIBundle() const; protected: private: TGUIBundle* fGUIBundle; TMarsTestPresenter *fPresenter; }; class TMarsTestPresenter : public TMarsPresenter { public: TMarsTestPresenter(const TGUIBundle&); virtual ~TMarsTestPresenter(); // We need VersionDeclarationsMacro to define the class meta information. // This meta information is needed by TGUIPresenterStateFor<>. VersionDeclarationsMacro(TMarsTestPresenter); DynamicCastDeclarationsMacro(); TView* GetView(); protected: virtual TView* HandleCreateMainView (TGUIBundle* theBundleToAlias) const; virtual void HandleMenuActivate(TMenu& theMainMenu); virtual void HandleMenuDeactivate(TMenu& theMainMenu); static const TMenuDomainID kMarsAPITestDomainID; static const TMenuItemID kTestAllClassesMenu; private: TStandardText* CopyLocalizedText( TArchive* theArchive, const TStandardText& theKey ) const; enum { kOriginalVersion }; TViewHandle* fCanvasViewHandle; static TSubMenuItem *gTestSubMenuItem; }; #endif