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

  1. //
  2. // Project: Digitalk Parts like Toolbar and SOMObjects Demo
  3. // File:    SetPages.hpp
  4. // Author:  Stewart Hyde
  5. // Created: Dec   17, 1993
  6. // Updated: Jan    6, 1993
  7. //
  8. // Description:
  9. //
  10.  
  11. #ifndef _SETPAGES_HPP_
  12.   #define _SETPAGES_HPP_
  13.  
  14. #ifndef _ICANVAS_
  15.   #include <icanvas.hpp>
  16. #endif
  17.  
  18. #ifndef _IFONT_
  19.   #include <ifont.hpp>
  20. #endif
  21.  
  22. #ifndef _ICMDHDR_
  23.   #include <icmdhdr.hpp>
  24. #endif
  25.     
  26. #ifndef _IPUSHBUT_
  27.   #include <ipushbut.hpp>
  28. #endif
  29.    
  30. #ifndef _IENTRYFD_
  31.   #include <ientryfd.hpp>
  32. #endif
  33.    
  34. #ifndef _ISTATTXT_
  35.   #include <istattxt.hpp>
  36. #endif
  37.    
  38. #ifndef _IGROUPBX_
  39.   #include <igroupbx.hpp>
  40. #endif
  41.  
  42. #ifndef _IGRAPHBT_
  43.   #include <igraphbt.hpp>
  44. #endif
  45.  
  46. #ifndef _SOMACT_HPP_
  47.     #include "somact.hpp"
  48. #endif
  49.  
  50. class IFrameWindow;
  51.  
  52. // ------------------------------------------------------------------------
  53. //  Class:            DialogPage
  54. //  Derived:        ICanvas
  55. //                        ICommandHandler
  56. //                
  57. //  Description:    This class describes the based dialog page class use 
  58. //                        by the pages in Parts style notebook.
  59. //
  60. // ------------------------------------------------------------------------
  61.  
  62. class DialogPage : public ICanvas,
  63.                      public ICommandHandler
  64. {
  65.     typedef ICanvas Inherited;
  66.       public:
  67.         DialogPage(IWindow *parentWin, IWindow *ownerWin,
  68.                       int nIndex, SomAction *somAction);
  69.         ~DialogPage();
  70.         virtual IRectangle mapDialogRect(const IRectangle &rect);
  71.         void setStatusEntry(unsigned long resId);
  72.   
  73.   protected:
  74.         virtual Boolean command(ICommandEvent &evt);
  75.         virtual void pageAction(unsigned long ulAction);
  76.         
  77.            
  78.   private:
  79.         void setupControls();
  80.         SomAction                         *somAct;
  81.         IGraphicPushButton          gbtn101;
  82.         IGraphicPushButton          gbtn102;
  83.         IGraphicPushButton          gbtn103;
  84.         IGraphicPushButton          gbtn104;
  85.         IGraphicPushButton          gbtn105;
  86.         IGraphicPushButton          gbtn106;
  87.         IGraphicPushButton          gbtn107;
  88.         IGraphicPushButton          gbtn108;
  89.         IEntryField                 edt109;
  90.         IStaticText                 txt110;
  91.         IGroupBox                   grp112;
  92.         int                                   nPageIndex;
  93.  
  94. };
  95.  
  96. // ------------------------------------------------------------------------
  97. //  Class:            Set1Page
  98. //  Derived:        DialogPage
  99. //                
  100. //  Description:    This class describes the Page #1 dialog in notebook
  101. //
  102. // ------------------------------------------------------------------------
  103.  
  104.   
  105. class Set1Page : public DialogPage
  106. {
  107.       public:
  108.           Set1Page(IWindow *parentWin, IWindow *ownerWin, SomAction *somAction);
  109.         ~Set1Page();
  110.       protected:
  111.         virtual Boolean command(ICommandEvent &evt);
  112. };
  113.  
  114. // ------------------------------------------------------------------------
  115. //  Class:            Set2Page
  116. //  Derived:        DialogPage
  117. //                
  118. //  Description:    This class describes the Page #2 dialog in notebook
  119. //
  120. // ------------------------------------------------------------------------
  121.  
  122. class Set2Page : public DialogPage
  123. {
  124.     public:
  125.           Set2Page(IWindow *parentWin, IWindow *ownerWin, SomAction *somAction);
  126.         ~Set2Page();
  127.       protected:
  128.         virtual Boolean command(ICommandEvent &evt);
  129.                  
  130. };
  131.  
  132. // ------------------------------------------------------------------------
  133. //  Class:            Set3Page
  134. //  Derived:        DialogPage
  135. //                
  136. //  Description:    This class describes the Page #3 dialog in notebook
  137. //
  138. // ------------------------------------------------------------------------
  139.  
  140. class Set3Page : public DialogPage
  141. {
  142.     public:
  143.           Set3Page(IWindow *parentWin, IWindow *ownerWin, SomAction *somAction);
  144.         ~Set3Page();
  145.   protected:
  146.         virtual Boolean command(ICommandEvent &evt);
  147. };
  148.  
  149. // ------------------------------------------------------------------------
  150. //  Class:            Set4Page
  151. //  Derived:        DialogPage
  152. //                
  153. //  Description:    This class describes the Page #4 dialog in notebook
  154. //
  155. // ------------------------------------------------------------------------
  156.  
  157. class Set4Page : public DialogPage
  158. {
  159.     public:
  160.           Set4Page(IWindow *parentWin, IWindow *ownerWin, SomAction *somAction);
  161.         ~Set4Page();
  162.       protected:
  163.         virtual Boolean command(ICommandEvent &evt);
  164. };
  165.  
  166. //
  167. // INLINE functions
  168. //
  169.  
  170. inline DialogPage::~DialogPage()
  171. {
  172. }
  173.  
  174. inline Set1Page::~Set1Page()
  175. {
  176. }
  177.  
  178. inline Set2Page::~Set2Page()
  179. {
  180. }
  181.  
  182. inline Set3Page::~Set3Page()
  183. {
  184. }
  185.  
  186. inline Set4Page::~Set4Page()
  187. {
  188. }
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195. #endif // _SETPAGES_HPP
  196.