// $Revision: 1.1 $ // Copyright (c) 1994 Taligent, Inc. All rights reserved. #ifndef TaligentSamples_SAMPLEWINDOWPROGRAM #define TaligentSamples_SAMPLEWINDOWPROGRAM #ifndef Taligent_TASK #include #endif #ifndef Taligent_WINDOW #include #endif #ifndef Taligent_MENUWINDOW #include #endif #ifndef Taligent_TEXT #include #endif class TSampleWindowProgram : public TThreadProgram { public: MCollectibleDeclarationsMacro(TSampleWindowProgram); TSampleWindowProgram(); TSampleWindowProgram(TWindow* windowToAdopt); TSampleWindowProgram(TWindow* windowToAdopt, TMenuWindow* menuWindowToAdopt); TSampleWindowProgram(TView* viewToAdopt, const TText& viewTitle, const TGPoint& location = TGPoint(100, 100)); TSampleWindowProgram(TView* viewToAdopt, const TText& viewTitle, TMenu* menuToAdopt, const TText& menuTitle, const TGPoint& location = TGPoint(100, 100)); TSampleWindowProgram(const TSampleWindowProgram&); virtual ~TSampleWindowProgram(); TSampleWindowProgram& operator=(const TSampleWindowProgram&); virtual void AdoptWindow(TWindow* windowToAdopt); virtual void AdoptWindow(TView* viewToAdopt, const TText& title, const TGPoint& location = TGPoint(100, 100)); virtual TStream& operator>>=(TStream&) const; virtual TStream& operator<<=(TStream&); virtual void Run(); private: void InitWindowAndAdopt(TView*, const TText&, const TGPoint&); TDequeOf fWindows; TMenuWindow* fMenuWindow; }; #endif // TaligentSamples_SAMPLEWINDOWPROGRAM