home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Snippets / Development Tools & Languages / DTSCPlusLibrary / Sources / Toolbox.h < prev    next >
Encoding:
Text File  |  1993-01-14  |  2.7 KB  |  104 lines  |  [TEXT/MPS ]

  1. /* _________________________________________________________________________________________________________ //
  2.   Copyright © 1992-93 Apple Computer, Inc. All rights reserved.
  3.   Macintosh Developer Technical Support.C++ Macintosh Toolbox Framework.
  4.   Programmer: Kent Sandvik
  5.   Date: Saturday, June 6, 1992 19:18:53
  6.   Revision comments are at the end of this file.
  7.   ---
  8.   TToolbox is a Toolbox utility class, used for initialization and Toolbox functions.
  9.   TToolbox.h contains the header file information for the Toolbox class construction.
  10.   _________________________________________________________________________________________________________ */
  11.  
  12. // Declare label for this header file
  13. #ifndef _TOOLBOX_
  14. #define _TOOLBOX_
  15.  
  16. #ifndef _DTSCPLUSLIBRARY_
  17. #include "DTSCPlusLibrary.h"
  18. #endif
  19.  
  20.  
  21. //    TOOLBOX INCLUDES
  22. #ifndef __TYPES__
  23. #include <Types.h>
  24. #endif
  25.  
  26. #ifndef __QUICKDRAW__
  27. #include <Quickdraw.h>
  28. #endif
  29.  
  30. #ifndef __FONTS__
  31. #include <Fonts.h>
  32. #endif
  33.  
  34. #ifndef __WINDOWS__
  35. #include <Windows.h>
  36. #endif
  37.  
  38. #ifndef __MENUS__
  39. #include <Menus.h>
  40. #endif
  41.  
  42. #ifndef __TEXTEDIT__
  43. #include <TextEdit.h>
  44. #endif
  45.  
  46. #ifndef __DIALOGS__
  47. #include <Dialogs.h>
  48. #endif
  49.  
  50. #ifndef __EVENTS__
  51. #include <Events.h>
  52. #endif
  53.  
  54. #ifndef __MEMORY__
  55. #include <Memory.h>
  56. #endif
  57.  
  58. #ifndef __OSUTILS__
  59. #include <OSUtils.h>
  60. #endif
  61.  
  62. #ifndef __GESTALTEQU__
  63. #include <GestaltEqu.h>
  64. #endif
  65.  
  66.  
  67. const short kDefaultPulls = 3;                    // define how many times we want to toggle until we are frontmost app.
  68. const short kDefaultMasterPointers = 8;            // default amount of Master pointers generated originally
  69.  
  70. // _________________________________________________________________________________________________________ //
  71. //    Class Interface
  72. class TToolbox
  73. // The TToolbox class is a simple toolbox initialization class, TToolbox.Initialize
  74. // should do most of the needed work inside an appplication when the application starts.
  75. // TToolbox also contains environment testing code (traps, system, functions).
  76. {
  77. public:
  78.     //    CONSTRUCTORS & DESTRUCTORS
  79.     TToolbox();                                    // various constructors, delete if not needed
  80.     virtual~ TToolbox();                        // virtual destructor
  81.  
  82.     //    INITIATION ROUTINES                            
  83.     virtual void Initialize();                    // standard initialization routine
  84.  
  85.     //    MAIN INTERFACE
  86.     virtual void InitializeToolbox();            // initialize Toolbox
  87.     virtual void PullApplicationToFront(short nCount = kDefaultPulls);// pull application to front
  88.     virtual Boolean CreateMasterPointers(short nMasterPtr = kDefaultMasterPointers);// create master pointers
  89. };
  90.  
  91.  
  92. #endif
  93.  
  94. // _________________________________________________________________________________________________________ //
  95.  
  96.  
  97. /*    Change History (most recent last):
  98.   No        Init.    Date        Comment
  99.   1            khs        6/6/92        New file
  100.   2            khs        1/3/93        Cleanup
  101. */
  102.  
  103.  
  104.