#if !defined(__oc3wlapp_h) // Sentry, use file only if it's not already included. #define __oc3wlapp_h /***************************************************************************** * * Copyright (c) 1999, KL GROUP INC. All Rights Reserved. * http://www.klgroup.com * * This file is provided for demonstration and educational uses only. * Permission to use, copy, modify and distribute this file for * any purpose and without fee is hereby granted, provided that the * above copyright notice and this permission notice appear in all * copies, and that the name of KL Group not be used in advertising * or publicity pertaining to this material without the specific, * prior written permission of an authorized representative of * KL Group. * * KL GROUP MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY * OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR * PURPOSE, OR NON-INFRINGEMENT. KL GROUP SHALL NOT BE LIABLE FOR ANY * DAMAGES SUFFERED BY USERS AS A RESULT OF USING, MODIFYING OR * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. */ /* Project oc3owl OVERVIEW ======== Class definition for oc3owlApp (TApplication). */ #include #pragma hdrstop #include #include "oc3wmdic.h" #include "oc3wlapp.rh" // Definition of all resources. // TFileDrop class Maintains information about a dropped file, its name, where it was dropped, // and whether or not it was in the client area class TFileDrop { public: operator == (const TFileDrop& other) const {return this == &other;} char* FileName; TPoint Point; bool InClientArea; TFileDrop (char*, TPoint&, bool, TModule*); ~TFileDrop (); const char* WhoAmI (); private: // // hidden to prevent accidental copying or assignment // TFileDrop (const TFileDrop&); TFileDrop & operator = (const TFileDrop&); }; typedef TIBagAsVector TFileList; typedef TIBagAsVectorIterator TFileListIter; //{{TApplication = oc3owlApp}} class oc3owlApp : public TApplication { private: void SetupSpeedBar (TDecoratedMDIFrame *frame); void AddFiles (TFileList* files); public: oc3owlApp (); virtual ~oc3owlApp (); void CreateGadgets (TControlBar *cb, bool server = false); oc3owlMDIClient *mdiClient; // Public data members used by the print menu commands and Paint routine in MDIChild. TPrinter *Printer; // Printer support. int Printing; // Printing in progress. //{{oc3owlAppVIRTUAL_BEGIN}} public: virtual void InitMainWindow (); virtual void InitInstance (); //{{oc3owlAppVIRTUAL_END}} //{{oc3owlAppRSP_TBL_BEGIN}} protected: void EvNewView (TView& view); void EvCloseView (TView& view); void CmHelpAbout (); void EvDropFiles (TDropInfo drop); void EvWinIniChange (char far* section); //{{oc3owlAppRSP_TBL_END}} DECLARE_RESPONSE_TABLE(oc3owlApp); }; //{{oc3owlApp}} #endif // __oc3wlapp_h sentry.