home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / profile / advprof / keyview.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-29  |  1.0 KB  |  45 lines

  1. #ifndef _KEYVIEW_
  2. #define _KEYVIEW_
  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 "profobj.hpp"
  11. #include "enhprof.hpp"
  12.  
  13. class IMultiLineEdit;
  14.  
  15. class ProfileKeyObject : public ProfileObject {
  16. public:
  17.   ProfileKeyObject ( ProfileApplication &app,
  18.                      const IString      &keyName,
  19.                      IContainerControl  *cnr );
  20. virtual ProfileObjectView
  21.  *newView ( );
  22. virtual ProfileKey
  23.  &key ( );
  24. private:
  25. ProfileKey
  26.   profKey;
  27. };
  28.  
  29. class KeyView : public ProfileObjectView {
  30. public:
  31.   KeyView ( ProfileKeyObject &keyObj );
  32. protected:
  33. virtual KeyView
  34.  &populate ( );
  35. static IMultiLineEdit
  36.  *clientWindow ( );
  37. private:
  38. ProfileKeyObject
  39.  &keyObj;
  40. KeyView ( const KeyView& );
  41. KeyView& operator= ( const KeyView& );
  42. };
  43.  
  44. #endif // _KEYVIEW_
  45.