home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / keysrt.zip / test.hpp < prev    next >
C/C++ Source or Header  |  1996-02-23  |  6KB  |  172 lines

  1. /*******************************************************************************
  2. * FILE NAME: test.hpp                                                          *
  3. *                                                                              *
  4. * DESCRIPTION:                                                                 *
  5. *   Declaration of the class:                                                  *
  6. *     test                                                                     *
  7. * ---------------------------------------------------------------------------- *
  8. * Warning: This file was generated by the VisualAge C++ Visual Builder.        *
  9. * Modifications to this source file will be lost when the part is regenerated. *
  10. *******************************************************************************/
  11. #ifndef _TEST_
  12. #define _TEST_  
  13.  
  14. class test;
  15.  
  16. #ifndef _IFRAME_
  17. #include <iframe.hpp>
  18. #endif
  19.  
  20. class ICanvas;
  21. class IPushButton;
  22. #define INCL_WINSTDCNR
  23. #include <os2.h>
  24.  
  25. #ifndef _APERSON_
  26. #include "APerson.hpp"
  27. #endif
  28.  
  29. #ifndef _IMYKYSRT_
  30. #include "imykysrt.h"
  31. #endif
  32.  
  33. #ifndef _IVBCNR_
  34. #include <ivbcnr.h>
  35. #endif
  36.  
  37. class IContainerColumn;
  38. template <class Element> class IMyKeySortedSet;
  39. #ifndef _IRECT_
  40. #include <irect.hpp>
  41. #endif
  42.  
  43. #ifndef _ISTRING_
  44. #include <istring.hpp>
  45. #endif
  46.  
  47. #ifndef _ITIME_
  48. #include <itime.hpp>
  49. #endif
  50.  
  51. class testConn13;
  52. class testConn14;
  53. class testConn2;
  54. class testConn3;
  55. class testConn4;
  56. #include "test.h"
  57.  
  58.  
  59. /*----------------------------------------------------------------------------*/
  60. /* Align classes on four byte boundary.                                       */
  61. /*----------------------------------------------------------------------------*/
  62. #pragma pack(4)
  63.  
  64. //*****************************************************************************
  65. // Class definition for testVBContainerControl1CnrObj
  66. //*****************************************************************************
  67. class testVBContainerControl1CnrObj : public IVBContainerObject {
  68. public:
  69.    //---------------------------------------------------------------------------
  70.    // Constructors / destructors
  71.    //---------------------------------------------------------------------------
  72.    testVBContainerControl1CnrObj(APerson& anObject);
  73.    testVBContainerControl1CnrObj(testVBContainerControl1CnrObj& anObject);
  74.  
  75.    virtual  ~testVBContainerControl1CnrObj();
  76.  
  77.    //---------------------------------------------------------------------------
  78.    // public member functions
  79.    //---------------------------------------------------------------------------
  80.    IVBContainerObject & refreshFromObject();
  81.    IVBContainerObject & updateToObject();
  82.    testVBContainerControl1CnrObj& operator=(const testVBContainerControl1CnrObj& anObject);
  83.    APerson* realObject() { return &pRealObject; }
  84. ;
  85.  
  86.    //---------------------------------------------------------------------------
  87.    // public member data
  88.    //---------------------------------------------------------------------------
  89.    IString Age;
  90.    IString Name;
  91.  
  92. protected:
  93. private:
  94.    //---------------------------------------------------------------------------
  95.    // private member data
  96.    //---------------------------------------------------------------------------
  97.    APerson & pRealObject;
  98.  
  99.  
  100. };   //testVBContainerControl1CnrObj
  101.  
  102.  
  103. //*****************************************************************************
  104. // Class definition for test
  105. //*****************************************************************************
  106. class test : public IFrameWindow {
  107. public:
  108.    //---------------------------------------------------------------------------
  109.    // Constructors / destructors
  110.    //---------------------------------------------------------------------------
  111.    test(
  112.       unsigned long id = WND_test,
  113.       IWindow* parent = IWindow::desktopWindow(),
  114.       IWindow* owner = 0,
  115.       const IRectangle& rect = defaultFramingSpec(),
  116.       const IFrameWindow::Style& style = IFrameWindow::defaultStyle ( ),
  117.       const char* title = defaultTitle());
  118.  
  119.    virtual  ~test();
  120.  
  121.    //---------------------------------------------------------------------------
  122.    // public member functions
  123.    //---------------------------------------------------------------------------
  124.    static const IRectangle defaultFramingSpec();
  125.    static IString defaultTitle();
  126.    virtual test & initializePart();
  127.    test * getFrameWindow() { return this; };
  128.  
  129.    //---------------------------------------------------------------------------
  130.    // public member data
  131.    //---------------------------------------------------------------------------
  132.    static const INotificationId readyId;
  133.  
  134. protected:
  135.    //---------------------------------------------------------------------------
  136.    // protected member functions
  137.    //---------------------------------------------------------------------------
  138.    Boolean makeConnections();
  139.  
  140. private:
  141.    //---------------------------------------------------------------------------
  142.    // private member data
  143.    //---------------------------------------------------------------------------
  144.    ICanvas * iCanvas;
  145.    IPushButton * iPushButton1;
  146.    IVBContainerControl< APerson*, IMyKeySortedSet<APerson*>, testVBContainerControl1CnrObj > * iVBContainerControl1;
  147.    IContainerColumn * iContainerColumn1;
  148.    IContainerColumn * iContainerColumn2;
  149.    IPushButton * iPushButton2;
  150.    IPushButton * iPushButton3;
  151.    IMyKeySortedSet< APerson* > * iMyKeySortedSet1;
  152.    testConn13 * conn13;
  153.    testConn14 * conn14;
  154.    testConn2 * conn2;
  155.    testConn3 * conn3;
  156.    testConn4 * conn4;
  157.    static unsigned long partWindowId;
  158.  
  159. friend class testConn14;
  160. friend class testConn2;
  161. friend class testConn4;
  162.  
  163. };   //test
  164.  
  165.  
  166. /*----------------------------------------------------------------------------*/
  167. /* Resume compiler default packing.                                           */
  168. /*----------------------------------------------------------------------------*/
  169. #pragma pack()
  170.  
  171. #endif
  172.