home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / sompar.zip / PARTS.HPP < prev    next >
C/C++ Source or Header  |  1994-01-07  |  1KB  |  70 lines

  1. //
  2. // Project: Digitalk Parts like Toolbar and SOMObjects Demo
  3. // File:    Parts.hpp
  4. // Author:  Stewart Hyde
  5. // Created: Dec   17, 1993
  6. // Updated: Jan    7, 1994
  7. //
  8. // Description:
  9. //
  10.  
  11. #ifndef _PARTS_HPP_
  12.     #define _PARTS_HPP_
  13.  
  14. #ifndef _INOTEBK_
  15.   #include <inotebk.hpp>
  16. #endif
  17.    
  18. #ifndef _IPAGEHDR_
  19.   #include <ipagehdr.hpp>
  20. #endif
  21.  
  22. #ifndef _SOMACT_HPP_
  23.     #include "somact.hpp"
  24. #endif
  25.  
  26.   
  27. // ------------------------------------------------------------------------
  28. //  Class:            PartsNoteTool
  29. //  Derived:        INotebook
  30. //                        IPageHandler
  31. //                
  32. //  Description:    This class describes the Notebook Toolbar that is like
  33. //                        the one included in the Digitalk Parts package
  34. //
  35. // ------------------------------------------------------------------------
  36.  
  37. class PartsNoteTool : public INotebook,
  38.                       public IPageHandler
  39. {
  40.    typedef INotebook Inherited;
  41.    
  42.    public:
  43.         PartsNoteTool(IWindow *parentWin, IWindow *ownerWin, SomAction *somAction);
  44.          ~PartsNoteTool();
  45.  
  46.    protected:
  47.          virtual void initNoteBookPages();
  48.          virtual Boolean select(IPageSelectEvent &evt);
  49.  
  50.    private:
  51.         SomAction *somAct;
  52.          Boolean constructing;
  53.         IPageHandle page1;
  54.         IPageHandle page2;
  55.         IPageHandle page3;
  56.         IPageHandle page4;
  57.     
  58. };
  59.   
  60. //
  61. // Inline functions
  62. //
  63.  
  64. inline PartsNoteTool::~PartsNoteTool()
  65. {
  66. }
  67.  
  68.  
  69. #endif // _PARTS_HPP_
  70.