home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / ioc / acdf6 / acdfvw6.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  2.3 KB  |  83 lines

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //                      SAMPLE CODE
  3. //
  4. // FileName: ACDFVw6.hpp
  5. //
  6. // ClassName: ACompDocFwkView
  7. //
  8. // Description: Conversion of the Hello World 5 Sample
  9. //
  10. ///////////////////////////////////////////////////////////////////////////////
  11. #ifndef _COMPDOCFWKVIEW_
  12. #define _COMPDOCFWKVIEW_
  13.  
  14. #ifdef IC_TRACE_DEVELOP
  15.     #include <itrace.hpp>
  16. #else
  17.     #define IFUNCTRACE_DEVELOP()
  18.     #define ITRACE_DEVELOP(x)
  19. #endif
  20.  
  21. #include <ithlphdr.hpp>
  22. #include <iview.hpp>
  23. #include <ipushbut.hpp>
  24. #include <iinfoa.hpp>
  25. #include <icmdhdr.hpp>
  26. #include <isetcv.hpp>
  27. #include <istattxt.hpp>
  28. #include <ilistbox.hpp>
  29. #include <itselhdr.hpp>
  30. #include <isplitcv.hpp>
  31. #include <ithlphdr.hpp>
  32. #include <ihelp.hpp>
  33. #include <ihandler.hpp>
  34.  
  35. #include "acdfeat6.hpp"
  36.  
  37. class IFrameWindow;
  38. class ACompDocFwkModel;
  39. class ACompDocFwkView;
  40.  
  41. class ACompDocFwkView : public IView
  42. {
  43. public:
  44.     enum Alignment          {left, center, right };
  45.  
  46.                             ACompDocFwkView(IGUIBundle& );
  47.     virtual                 ~ACompDocFwkView();
  48.  
  49.     virtual void            initialize();
  50.  
  51.     virtual void            drawContents( IPresSpaceHandle&,
  52.                                           const IRectangle& invalidArea,
  53.                                           Boolean metaFile );
  54.  
  55.     virtual Boolean         handleCommand(ICommandEvent&);
  56.     virtual Boolean         handleSelected(IControlEvent&);
  57.     virtual Boolean         handleKeysHelpId(IEvent&);
  58.  
  59.     virtual ACompDocFwkView &setTextAlignment(const Alignment alignment);
  60.     virtual ACompDocFwkView &editText();
  61.     virtual ACompDocFwkView &setTextFromListBox();
  62.     
  63. protected:
  64.                             ACompDocFwkView(const ACompDocFwkView&);
  65.  
  66. private:
  67.     ACompDocFwkView&        operator=( const ACompDocFwkView& );
  68.  
  69.     ISplitCanvas            clientWindow,
  70.                             helloCanvas;
  71.     IStaticText             hello;
  72.     AEarthWindow            earthWindow;
  73.     IListBox                listBox;
  74.  
  75.     IHelpConnectionTo<ACompDocFwkView>      fHelpHandler;
  76.  
  77.     ICommandConnectionTo<ACompDocFwkView>   fCommandHandler;
  78.     ISelectConnectionTo<ACompDocFwkView>    fSelectHandler;
  79. };
  80.  
  81. #endif
  82.     
  83.