home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / canvas / setpack / packcv.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-29  |  1.7 KB  |  86 lines

  1. #ifndef _PACKCV_
  2. #define _PACKCV_
  3. //*********************************************************
  4. // Canvas - ISetCanvas Pack Options
  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 <icmdhdr.hpp>
  11. #include <iframe.hpp>
  12. #include <iiconctl.hpp>
  13. #include <ioutlbox.hpp>
  14. #include <ipoint.hpp>
  15. #include <irect.hpp>
  16. #include <isetcv.hpp>
  17. #include <itbar.hpp>
  18. #include <itbarbut.hpp>
  19.  
  20. #include "packcv.h"
  21.  
  22. class PackCanvas : public ISetCanvas {
  23. public:
  24.   PackCanvas ( unsigned long id,
  25.                IWindow* parentAndOwner,
  26.                ISetCanvas::PackType pack );
  27. private:
  28.   PackCanvas ( const PackCanvas& );
  29. PackCanvas
  30.  &operator=  ( const PackCanvas& );
  31. IOutlineBox
  32.   first,
  33.   second,
  34.   third,
  35.   fourth,
  36.   fifth,
  37.   sixth;
  38. }; // PackCanvas
  39.  
  40. class PackAlignTest : public IFrameWindow {
  41. public:
  42.   PackAlignTest      ( );
  43. PackAlignTest
  44.  &alignGrandChildren ( ISetCanvas::Alignment align );
  45. private:
  46.   PackAlignTest ( const PackAlignTest& );
  47. PackAlignTest
  48.  &operator=     ( const PackAlignTest& );
  49.  
  50. class CmdHandler : public ICommandHandler {
  51.   public:
  52.     CmdHandler ( PackAlignTest* window )
  53.       : clWindow( window )
  54.     { }
  55.   protected:
  56.   virtual Boolean
  57.     command    ( ICommandEvent& event );
  58.   private:
  59.   PackAlignTest
  60.    *clWindow;
  61.   }; // PackAlignTest::CmdHandler
  62.  
  63. ISetCanvas
  64.   packClient;
  65. PackCanvas
  66.   tight,
  67.   even,
  68.   expanded;
  69. CmdHandler
  70.   cmdHdr;
  71. IToolBar
  72.   toolBar;
  73. IToolBarButton
  74.   topLeft,
  75.   topCenter,
  76.   topRight,
  77.   centerLeft,
  78.   centerCenter,
  79.   centerRight,
  80.   bottomLeft,
  81.   bottomCenter,
  82.   bottomRight;
  83. }; // PackAlignTest
  84.  
  85. #endif // _PACKCV_
  86.