home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / canvas / complex / xcanvas.hpp < prev    next >
Text File  |  1996-10-29  |  2KB  |  95 lines

  1. #ifndef _XCANVAS_
  2. #define _XCANVAS_
  3. //*********************************************************
  4. // Canvas - Complex Canvas Example
  5. //
  6. // Copyright (C) 1994, Law, Leong, Love, Olson, Tsuji.
  7. // Copyright (c) 1997 John Wiley & Sons, Inc. 
  8. // All Rights Reserved.
  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. //======================= Color Buttons ========================
  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. //==================== ComplexCanvasWindow =====================
  43. class ComplexCanvasWindow : public IVBase {
  44. public:
  45.   ComplexCanvasWindow ( );
  46. private:
  47.   ComplexCanvasWindow ( const ComplexCanvasWindow& );
  48. ComplexCanvasWindow
  49.  &operator=           ( const ComplexCanvasWindow& );
  50. IFrameWindow
  51.   frame;
  52. IMultiCellCanvas
  53.   clientCanvas;
  54. IStaticText
  55.   headingText,
  56.   topSeparator;
  57. IMultiCellCanvas
  58.   level1;
  59. ISplitCanvas
  60.   horizSplit,
  61.   vertSplit;
  62. IBitmapControl
  63.   sizedBmp1,
  64.   sizedBmp2;
  65. IViewPort
  66.   bmpScroller;
  67. IBitmapControl
  68.   actualSizeBmp;
  69. IStaticText
  70.   centerSeparator;
  71. IViewPort
  72.   dlgScroller;
  73. IMultiCellCanvas
  74.   level2;
  75. IStaticText
  76.   prompt;
  77. IEntryField
  78.   entry;
  79. ICheckBox
  80.   choice1,
  81.   choice2;
  82. IStaticText
  83.   listHeading;
  84. IListBox
  85.   list;
  86. IStaticText
  87.   rightSeparator;
  88. ColorButtons
  89.   colorButtons;
  90. MyStandardPushButtons
  91.   pushButtons;
  92. }; // ComplexClient
  93.  
  94. #endif  // _XCANVAS_
  95.