// $Revision: 1.12 $ //------------------------------------------------------------------------------ // // Copyright (C) 1994, 1995 Taligent, Inc. All rights reserved. // // Project: StockBrowser // File: PickerPresenter.h // Build/Version: 1.0.0 // // Description: TEmptyPickerPresenter creates a TPickerView which // displays a linear list of stocks. // // TStandardPickerPresenter extends TEmptyPickerPresenter // by connecting to the Stock Server and downloading the // currently available stocks, which it gives to the model // for adoption. // //------------------------------------------------------------------------------ #ifndef TaligentSamples_PICKERPRESENTER #define TaligentSamples_PICKERPRESENTER class TEmptyPickerPresenter; class TStandardPickerPresenter; #ifndef Taligent_GUICOMPOUNDDOCUMENT #include #endif //============================================================================== // TEmptyPickerPresenter class TEmptyPickerPresenter : public TGUIPresenter { public: TaligentTypeExtensionDeclarationsMacro(TEmptyPickerPresenter) public: TEmptyPickerPresenter(const TEmptyPickerPresenter& source); TEmptyPickerPresenter(const TGUIBundle& theBundle); virtual ~TEmptyPickerPresenter(); virtual TStream& operator>>=(TStream& toStream) const; virtual TStream& operator<<=(TStream& fromStream); protected: TEmptyPickerPresenter(); virtual TView* HandleCreateMainView(TGUIBundle* theBundleToAlias) const; virtual void HandlePrint(const TPrinter& printer); private: enum {kOriginalVersion}; bool fPrinting; }; //============================================================================== // TStandardPickerPresenter class TStandardPickerPresenter : public TEmptyPickerPresenter { public: TaligentTypeExtensionDeclarationsMacro(TStandardPickerPresenter) public: TStandardPickerPresenter(const TStandardPickerPresenter& source); TStandardPickerPresenter(const TGUIBundle& theBundle); virtual ~TStandardPickerPresenter(); virtual TStream& operator>>=(TStream& toStream) const; virtual TStream& operator<<=(TStream& fromStream); protected: TStandardPickerPresenter(); virtual void HandleOpen(); private: enum {kOriginalVersion}; }; #endif