home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / uicldd.zip / DMSAMP3.HPP < prev    next >
Text File  |  1993-09-04  |  2KB  |  92 lines

  1. extern "C"
  2. {
  3.   #include <os2.h>
  4. }
  5.  
  6. #include <iframe.hpp>
  7. #include <iapp.hpp>
  8. #include <irect.hpp>
  9. #include <ievent.hpp>
  10. #include <ihandler.hpp>
  11. #include <istattxt.hpp>
  12. #include <icolor.hpp>
  13. #include <ititle.hpp>
  14.  
  15. #include <icnr.hpp>
  16. #include <iiconctl.hpp>
  17. #include <icnrhdr.hpp>
  18. #include <idmcnrhd.hpp>
  19. #include <idmcnrpv.hpp>
  20. #include <idmcnrit.hpp>
  21.  
  22. #include "dmsamp3.h"
  23.  
  24. class MyWindow;
  25.  
  26.  
  27. class Customer : public IContainerObject
  28. {
  29. public:
  30. friend class IContainerColumn;
  31. friend class MyWindow;
  32.  
  33.   Customer  ( const Customer& cnrobj );
  34.  
  35.   Customer  ( const IString &Text, unsigned long Icon, const IString &Name,
  36.               const IString &Address, const IString &Phone, MyWindow *win );
  37.  
  38.   ~Customer ( ) {};
  39.  
  40.   IString name    ( ) const  { return this->strName; }
  41.   IString address ( ) const  { return this->strAddress; }
  42.   IString phone   ( ) const  { return this->strPhone; }
  43.  
  44.  
  45.   void setName    ( const IString &name )     { this->strName = name; }
  46.   void setAddress ( const IString &address )  { this->strAddress = address; }
  47.   void setPhone   ( const IString &phone )    { this->strPhone = phone; }
  48.  
  49.   IContainerObject* objectCopy( );
  50.  
  51. private:
  52.   IString   strName,
  53.             strAddress,
  54.             strPhone;
  55.   MyWindow  *myWin;
  56. };
  57.  
  58.  
  59. class MyWindow : public IFrameWindow
  60. {
  61. friend class Customer;
  62.  
  63. public:
  64.   MyWindow  ( unsigned long windowId );
  65.   ~MyWindow ( ) {};
  66.  
  67. protected:
  68.   ICnrHandler       *cnrh;
  69.   IContainerControl *cnrCtl;
  70.   Customer          *car,
  71.                     *space,
  72.                     *bolt,
  73.                     *starfleet;
  74.   IResourceLibrary  reslib;
  75. };
  76.  
  77.  
  78. class MySourceWin : public MyWindow
  79. {
  80. public:
  81.   MySourceWin ( unsigned long windowId );
  82.   IDMCnrSourceHandler *srcHandler;
  83. };
  84.  
  85. class MyTargetWin : public MyWindow
  86. {
  87. public:
  88.   MyTargetWin ( unsigned long windowId );
  89.   IDMCnrTargetHandler *tgtHandler;
  90. };
  91.  
  92.