home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pwrgu2.zip / POWERGU2.EXE / CANVAS / COMPLEX / XCANVAS.HPP < prev   
Text File  |  1995-08-21  |  3KB  |  111 lines

  1. #ifndef _XCANVAS_
  2. #define _XCANVAS_
  3. //************************************************************
  4. // Canvas - Complex Canvas Example
  5. //
  6. // Copyright (C) 1994, Law, Leong, Love, Olson, Tsuji.
  7. // All Rights Reserved.
  8. //************************************************************
  9.  
  10. #include <ibmpctl.hpp>
  11. #include <icheckbx.hpp>
  12. #include <ientryfd.hpp>
  13. #include <iframe.hpp>
  14. #include <igraphbt.hpp>
  15. #include <ilistbox.hpp>
  16. #include <imcelcv.hpp>
  17. #include <irect.hpp>
  18. #include <isetcv.hpp>
  19. #include <isplitcv.hpp>
  20. #include <istattxt.hpp>
  21. #include <ivport.hpp>
  22.  
  23. #include "pushbtns.hpp"
  24.  
  25. //======================= ColorButtons ========================
  26. class ColorButtons : public ISetCanvas {
  27. public:
  28.   ColorButtons    ( unsigned long id,
  29.                     IWindow* parentAndOwner );
  30. private:      
  31.   ColorButtons ( const ColorButtons& );
  32. ColorButtons 
  33.  &operator=    ( const ColorButtons& );
  34. IGraphicPushButton
  35.   red,
  36.   green,
  37.   blue,
  38.   cyan,
  39.   pink;
  40. };  // ColorButtons
  41.  
  42. //============= ViewPortWithGrowableMinSizeChild ===============
  43. class ViewPortWithGrowableMinSizeChild : public IViewPort {
  44. public:
  45.   ViewPortWithGrowableMinSizeChild ( unsigned long windowId,
  46.                                      IWindow*      parentAndOwner );
  47. protected:
  48. virtual ViewPortWithGrowableMinSizeChild
  49.  &setLayoutDistorted ( unsigned long flagsOn,
  50.                        unsigned long flagsOff ),
  51.  &layout             ( );
  52. private:
  53.   ViewPortWithGrowableMinSizeChild ( const ViewPortWithGrowableMinSizeChild& );
  54. ViewPortWithGrowableMinSizeChild 
  55.  &operator=                        ( const ViewPortWithGrowableMinSizeChild& );
  56. };  // ViewPortWithGrowableMinSizeChild
  57.  
  58. //==================== ComplexCanvasWindow =====================
  59. class ComplexCanvasWindow : public IVBase {
  60. public:
  61.   ComplexCanvasWindow ( );
  62. private:
  63.   ComplexCanvasWindow ( const ComplexCanvasWindow& );
  64. ComplexCanvasWindow 
  65.  &operator=           ( const ComplexCanvasWindow& );
  66. IFrameWindow
  67.   frame;
  68. IMultiCellCanvas
  69.   clientCanvas;
  70. IStaticText
  71.   headingText,
  72.   topSeparator;
  73. IMultiCellCanvas
  74.   level1;
  75. ISplitCanvas
  76.   horizSplit,
  77.   vertSplit;
  78. IBitmapControl
  79.   sizedBmp1,
  80.   sizedBmp2;
  81. IViewPort
  82.   bmpScroller;
  83. IBitmapControl
  84.   actualSizeBmp;
  85. IStaticText
  86.   centerSeparator;
  87. ViewPortWithGrowableMinSizeChild
  88.   dlgScroller;
  89. IMultiCellCanvas
  90.   level2;
  91. IStaticText
  92.   prompt;
  93. IEntryField
  94.   entry;
  95. ICheckBox
  96.   choice1,
  97.   choice2;
  98. IStaticText
  99.   listHeading;
  100. IListBox
  101.   list;
  102. IStaticText
  103.   rightSeparator;
  104. ColorButtons
  105.   colorButtons;
  106. MyStandardPushButtons
  107.   pushButtons;
  108. };  // ComplexClient
  109.  
  110. #endif  // _XCANVAS_
  111.