home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / PowerPlant / Multi-Panel Dialogs 1.1 / MPD Sources / CMPDIncludeView.h < prev    next >
Encoding:
Text File  |  1996-09-09  |  1.3 KB  |  38 lines  |  [TEXT/R*ch]

  1. // ===========================================================================
  2. //    File:                        CMPDIncludeView.h
  3. // Version:                    1.0 - Feb 1, 1996
  4. //    Author:                    Mike Shields (mshields@inconnect.com)
  5. //                            
  6. //    Copyright ©1996 Mike Shields. All rights reserved.
  7. // ===========================================================================
  8. //    CMPDIncludeView.cp        <- double-click + Command-D to see class declaration
  9. //
  10. // Class which controls the loading and disposing of a panel subpane in a
  11. // multi-pane dialog.
  12. // Also handles the relationship of getting and setting the data represented by 
  13. // that particular panel
  14.  
  15. #pragma once
  16.  
  17. #include "CIncludeView.h"
  18.  
  19. class CMPDIncludeView : public CIncludeView
  20. {
  21. public:
  22.     enum { class_ID = 'MPDi' };
  23.     static CMPDIncludeView*
  24.                             CreateFromStream(LStream *inStream);
  25.                             
  26.                             CMPDIncludeView();
  27.                             CMPDIncludeView(LStream *inStream);
  28.     virtual                ~CMPDIncludeView();
  29.  
  30.     virtual void        LoadNewMPDPanel(ResIDT inPanelID, Handle inNewPanelData, 
  31.                                                 Handle inOldPanelData, Boolean inRefresh);
  32.     virtual void        UseNewPanelData(Handle inNewPanelData, Boolean inRefresh);
  33.     virtual void        GetPanelData(Handle inDataToReplace);
  34.     virtual Boolean    ValidatePanel(void);
  35.     virtual Boolean    WantDefaultsButton(void);
  36.     virtual Boolean    WantRevertButton(void);
  37. };
  38.