home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C++ / Applications / SeeMovieRun 2.0 / Headers / x_CAboutBox.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-02  |  2.6 KB  |  105 lines  |  [TEXT/KAHL]

  1. /******************************************************************************
  2.  x_CAboutBox.h
  3.  
  4.             Header File For CAboutBox Lower-Layer Dialog Class
  5.     
  6.     Copyright Â© 1995 Gregory Bonk for NewMedia Inc.. All rights reserved.
  7.  
  8.     Generated by Visual Architectâ„¢
  9.  
  10.     This file is rewritten each time you generate code. You should not
  11.     make changes to this file; changes should go in the My.h
  12.     file, instead.
  13.  
  14.     If you want to change how Visual Architect generates this file, you can
  15.     change the template for this file. It is "_Dialog.h" in the Visual Architect
  16.     Templates folder.
  17.  
  18.  ******************************************************************************/
  19.  
  20. #pragma once
  21.  
  22. #include "CDialogDirector.h"
  23.  
  24. class CIconPane;
  25. class CStaticText;
  26. class CButton;
  27.  
  28.     // Data struct for initializing dialog items
  29.     // and receiving changed values
  30.  
  31. typedef struct
  32. {
  33.     // This dialog has no editable panes!
  34.     // The Boolean prevents a compile error.
  35.     
  36.     Boolean    dummy;
  37. } CAboutBoxData;
  38.  
  39.     // We define a separate struct for UpdateData() which
  40.     // eliminates duplicate data types
  41.  
  42. typedef struct
  43. {
  44.     Str255        stringvalue;            // CDialogText
  45.     long        longvalue;                // CIntegerText
  46.     short        value;                    // All other controls and buttons
  47.     Point        selection;                // CArrayPane
  48. } CAboutBoxUpdate;
  49.  
  50. class CDirectorOwner;
  51. class CPanorama;
  52. class CPane;
  53.  
  54. class x_CAboutBox : public CDialogDirector
  55. {
  56. public:
  57.  
  58.     TCL_DECLARE_CLASS
  59.  
  60.                                         // Pointers to panes in window
  61.     CIconPane    *fAboutBox_Icon1;
  62.     CStaticText    *fAboutBox_Stat2;
  63.     CStaticText    *fAboutBox_Stat3;
  64.     CStaticText    *fAboutBox_Stat4;
  65.     CStaticText    *fAboutBox_Stat6;
  66.     CButton    *fAboutBox_Butn7;
  67.     CStaticText    *fAboutBox_Stat8;
  68.     CStaticText    *fAboutBox_Stat11;
  69.  
  70.  
  71.     void     Ix_CAboutBox(CDirectorOwner *aSupervisor, Boolean push = FALSE);
  72.  
  73.     virtual    long    DoModalDialog(long defaultCmd);
  74.     virtual    Boolean    Close(Boolean quitting);
  75.     virtual    void    ProviderChanged(CCollaborator *aProvider, long reason, void* info);
  76.  
  77. protected:
  78.     Boolean            ignore;
  79.     Boolean            pushData;
  80.     CAboutBoxData    saveData;
  81.  
  82.     virtual void     MakeNewWindow(void);
  83.  
  84.                                 // Pull-style functions
  85.     virtual void     BeginData(CAboutBoxData *initial);
  86.     virtual void     UpdateData(CAboutBoxUpdate *update, long itemNo);
  87.     virtual void     EndData(CAboutBoxData *final);
  88.  
  89.                                 // Push-style functions
  90.     virtual void    SetData(const CAboutBoxData& initial);
  91.     virtual void    GetData(CAboutBoxData& final);
  92.  
  93.     virtual void    DispensePaneValues(const CAboutBoxData& data);
  94.     virtual void    CollectPaneValues(CAboutBoxData& data);
  95.  
  96.  
  97.     CPane    *FindPane(long ID);
  98.  
  99. private:
  100.     virtual    void     DoBeginData(Boolean push);
  101.     virtual    void     DoEndData(long theCommand);
  102. };
  103.  
  104. #define    CVueCAboutBox    129
  105.