home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / strgen.zip / strgen.hpp < prev    next >
C/C++ Source or Header  |  1996-03-15  |  4KB  |  114 lines

  1. /*******************************************************************************
  2. * FILE NAME: strgen.hpp                                                        *
  3. *                                                                              *
  4. * DESCRIPTION:                                                                 *
  5. *   Declaration of the class:                                                  *
  6. *     strgen- Sample of using IStringGenerator class                           *
  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 _STRGEN_
  12. #define _STRGEN_  
  13.  
  14. class strgen;
  15.  
  16. #ifndef _IFRAME_
  17. #include <iframe.hpp>
  18. #endif
  19.  
  20. class ICanvas;
  21. #ifndef _CUSTOMER_
  22. #include "Customer.hpp"
  23. #endif
  24.  
  25. #ifndef _IVSEQ_H_
  26. #include <ivseq.h>
  27. #endif
  28.  
  29. template <class Element,class Collection> class ICollectionViewListBox;
  30. class IStaticText;
  31. class Customer;
  32. template <class Element> class IVSequence;
  33. #ifndef _IRECT_
  34. #include <irect.hpp>
  35. #endif
  36.  
  37. #ifndef _ISTRING_
  38. #include <istring.hpp>
  39. #endif
  40.  
  41. class strgenConn0;
  42. class strgenConn1;
  43. class strgenConn2;
  44. #include "strgen.h"
  45.  
  46.  
  47. /*----------------------------------------------------------------------------*/
  48. /* Align classes on four byte boundary.                                       */
  49. /*----------------------------------------------------------------------------*/
  50. #pragma pack(4)
  51.  
  52. //*****************************************************************************
  53. // Class definition for strgen
  54. //*****************************************************************************
  55. class strgen : public IFrameWindow {
  56. public:
  57.    //---------------------------------------------------------------------------
  58.    // Constructors / destructors
  59.    //---------------------------------------------------------------------------
  60.    strgen(
  61.       unsigned long id = WND_strgen,
  62.       IWindow* parent = IWindow::desktopWindow(),
  63.       IWindow* owner = 0,
  64.       const IRectangle& rect = defaultFramingSpec(),
  65.       const IFrameWindow::Style& style = IFrameWindow::defaultStyle ( ),
  66.       const char* title = defaultTitle());
  67.  
  68.    virtual  ~strgen();
  69.  
  70.    //---------------------------------------------------------------------------
  71.    // public member functions
  72.    //---------------------------------------------------------------------------
  73.    static const IRectangle defaultFramingSpec();
  74.    static IString defaultTitle();
  75.    virtual strgen & initializePart();
  76.    strgen * getFrameWindow() { return this; };
  77.  
  78.    //---------------------------------------------------------------------------
  79.    // public member data
  80.    //---------------------------------------------------------------------------
  81.    static const INotificationId readyId;
  82.  
  83. protected:
  84.    //---------------------------------------------------------------------------
  85.    // protected member functions
  86.    //---------------------------------------------------------------------------
  87.    Boolean makeConnections();
  88.  
  89. private:
  90.    //---------------------------------------------------------------------------
  91.    // private member data
  92.    //---------------------------------------------------------------------------
  93.    ICanvas * iCanvas;
  94.    ICollectionViewListBox< Customer*, IVSequence< Customer* > > * iCollectionViewListBox1;
  95.    IStaticText * iStaticText1;
  96.    Customer * iCustomer1;
  97.    Customer * iCustomer2;
  98.    IVSequence< Customer* > * iVSequence1;
  99.    strgenConn0 * conn0;
  100.    strgenConn1 * conn1;
  101.    strgenConn2 * conn2;
  102.    static unsigned long partWindowId;
  103.  
  104.  
  105. };   //strgen
  106.  
  107.  
  108. /*----------------------------------------------------------------------------*/
  109. /* Resume compiler default packing.                                           */
  110. /*----------------------------------------------------------------------------*/
  111. #pragma pack()
  112.  
  113. #endif
  114.