home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / profile / advprof / appview.hpp < prev    next >
Text File  |  1996-10-29  |  1KB  |  46 lines

  1. #ifndef _APPVIEW_
  2. #define _APPVIEW_
  3. //************************************************************
  4. // GUI Profile Viewer 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 <icnrhdr.hpp>
  11. #include "profobj.hpp"
  12. #include "enhprof.hpp"
  13.  
  14. class ProfileAppObject : public ProfileObject {
  15. public:
  16.   ProfileAppObject ( EnhancedProfile   &profile,
  17.                      const IString     &appName,
  18.                      IContainerControl *cnr );
  19. virtual ProfileObjectView
  20.  *newView ( );
  21. virtual ProfileApplication
  22.  &application ( );
  23. private:
  24. ProfileApplication
  25.   app;
  26. };
  27.  
  28. class ApplicationView : public ProfileObjectView {
  29. public:
  30.   ApplicationView ( ProfileAppObject &appObj );
  31. protected:
  32. virtual ApplicationView
  33.  &populate ( );
  34. static IContainerControl
  35.  *clientWindow ( );
  36. private:
  37. ICnrHandler
  38.   handler;
  39. ProfileAppObject
  40.  &appObj;
  41. ApplicationView(const ApplicationView&);
  42. ApplicationView operator=(const ApplicationView&);
  43. };
  44.  
  45. #endif // _APPVIEW_
  46.