// $Revision: 1.8 $ //------------------------------------------------------------------------------ // // Copyright (C) 1994, 1995 Taligent, Inc. All rights reserved. // // Project: StockBrowser // File: ViewerPresenter.h // Build/Version: 1.0.0 // // Description: TViewerPresenter creates the menus and the main content // view for the Stock Viewer document. // //------------------------------------------------------------------------------ #ifndef TaligentSamples_VIEWERPRESENTER #define TaligentSamples_VIEWERPRESENTER class TViewerPresenter; #ifndef Taligent_GUICOMPOUNDDOCUMENT #include #endif class TSubMenuItem; class TStandardGraph; class TStockGraphConstructor; //============================================================================== // TViewerPresenter class TViewerPresenter : public TGUIPresenter { public: TaligentTypeExtensionDeclarationsMacro(TViewerPresenter) public: TViewerPresenter(); TViewerPresenter(const TViewerPresenter& source); TViewerPresenter(const TGUIBundle& guiBundle); virtual ~TViewerPresenter(); protected: static TSubMenuItem* fgViewMenu; virtual TView* HandleCreateMainView(TGUIBundle* bundleToAlias) const; virtual void HandleMenuActivate(TMenu& theMainMenu); virtual void HandleMenuDeactivate(TMenu& theMainMenu); virtual TSubMenuItem* CreateViewSubMenuItem() const; virtual TStandardGraph* CreateStandardGraph() const; virtual TCollectionOf* CreateCollectionOfGraphConstructors() const; private: TViewerPresenter& operator=(const TViewerPresenter& source); enum {kOriginalVersion}; }; #endif