home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1997 February / macformat-047.iso / Shareware Plus / Developers / The Gray Council 1.2.1 / projects / MacApp / UMyApplication.h < prev   
Encoding:
Text File  |  1996-09-04  |  1.4 KB  |  51 lines  |  [TEXT/CWIE]

  1. //
  2. // GrayCouncil
  3. // Copyright ©1996 by Trygve Isaacson. All Rights Reserved.
  4. //
  5. // This file contains the GrayCouncil MacApp test program's
  6. // application class definition.
  7. //
  8.  
  9. #ifndef __UMYAPPLICATION__
  10. #define __UMYAPPLICATION__
  11.  
  12. #include "UApplication.h"
  13.  
  14. #include "GrayCouncilMA.h"
  15.  
  16. class TMyApplication: public TApplication
  17.     {
  18.     MA_DECLARE_CLASS;
  19.  
  20.     public:
  21.         
  22.         TMyApplication();
  23.         virtual ~TMyApplication();
  24.  
  25.         void    IMyApplication();
  26.  
  27.         virtual void DoSetupMenus();
  28.         virtual void DoMenuCommand(CommandNumber aCommand);
  29.         virtual void DoEvent(EventNumber eventNumber, TEventHandler* source, TEvent* event);
  30.         virtual Boolean DoIdle(IdlePhase phase);
  31.         virtual void DoAboutBox();
  32.  
  33.     protected:
  34.     
  35.         void    PoseExampleDialog(UInt32 dialogIndex);
  36.         void    SetupExampleDialog(UInt32 dialogIndex, TWindow* itsWindow);
  37.         void    CleanupExampleDialog(UInt32 dialogIndex, TWindow* itsWindow);
  38.         void    EnableDisableDialog(UInt32 dialogIndex, TWindow* itsWindow, Boolean enable);
  39.         
  40.         void    ToggleButtons(TButton* buttonToDisable, TButton* buttonToEnable);
  41.         
  42.         UInt32                    mCurrentDialogIndex;
  43.         AGAProgressIndicatorMA*    mProgressIndicator1;    // valid while it is idling
  44.         AGAProgressIndicatorMA*    mProgressIndicator2;    // valid while it is idling
  45.         Boolean                    mMovingProgressOrigin;    // true if ind. 2 has moving origin
  46.         Boolean                    mSkipNext;                // toggle to make origin move slower than value
  47.     };
  48.  
  49. #endif // __UMYAPPLICATION__
  50.  
  51.