home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / tvision / colord / tdemo2.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-05  |  4.0 KB  |  136 lines

  1. /*-----------------------------------------------------------------------*/
  2. /* filename -       tdemo2.hpp                                           */
  3. /*                                                                       */
  4. /* function(s)                                                           */
  5. /*                  declarations for the following classes used in the   */
  6. /*                  TVColorDialog demo program...                        */
  7. /*                                                                       */
  8. /*                     TXDialog1                                         */
  9. /*                     TXDialog2                                         */
  10. /*                     TXDialog3                                         */
  11. /*                     TAppStatusLine                                    */
  12. /*                                                                       */
  13. /* Author -         Michael "Mick" Newton                                */
  14. /*                                                                       */
  15. /*-----------------------------------------------------------------------*/
  16.  
  17. /*-----------------------------------------------------------------------*/
  18. /*                                                                       */
  19. /*    TDEMO2.HPP                                                         */
  20. /*                                                                       */
  21. /*    TVColorDialog shareware version 2.0                                */
  22. /*    (C) Copyright 1992,1993 Comsoft Software                           */
  23. /*    All Rights Reserved.                                               */
  24. /*                                                                       */
  25. /*                                                                       */
  26. /*-----------------------------------------------------------------------*/
  27.  
  28.  
  29. #if !defined __TDEMO2_HPP
  30. #define __TDEMO2_HPP
  31.  
  32.  
  33. // Forward references to Turbo Vision classes *****************************
  34.  
  35. class far TDialog;
  36. class far TListBox;
  37. class far TRect;
  38. class far TPalette;
  39. class far TStatusDef;
  40. class far TStatusLine;
  41.  
  42.  
  43.  
  44.  
  45.  
  46. // Constants **************************************************************
  47.  
  48. const cmCloseX = 200;
  49.  
  50. // Help contexts for status line hints
  51. const hcSystem     = 1000,
  52.       hcAbout      = 1001,
  53.       hcWritePal   = 1002,
  54.       hcExit       = 1003,
  55.       hcColors     = 1004,
  56.       hcOptions    = 1005,
  57.       hcXDialogs   = 1006;
  58.  
  59.  
  60.  
  61.  
  62.  
  63. // TXDialog1 **************************************************************
  64.  
  65. class TXDialog1 : public TDialog
  66. {
  67.    public:
  68.       TXDialog1(const TRect& bounds, const char *aTitle);
  69.       virtual void shutDown();
  70.       virtual TPalette& getPalette() const;
  71.       virtual void handleEvent(TEvent& event);
  72.       TListBox *listbox;
  73.    protected:
  74.    private:
  75. };
  76.  
  77.  
  78.  
  79.  
  80.  
  81. // TXDialog2 **************************************************************
  82.  
  83. class TXDialog2 : public TDialog
  84. {
  85.    public:
  86.       TXDialog2(const TRect& bounds, const char *aTitle);
  87.       virtual void shutDown();
  88.       virtual TPalette& getPalette() const;
  89.       virtual void handleEvent(TEvent& event);
  90.       TListBox *listbox;
  91.    protected:
  92.    private:
  93. };
  94.  
  95.  
  96.  
  97.  
  98.  
  99. // TXDialog3 **************************************************************
  100.  
  101. class TXDialog3 : public TDialog
  102. {
  103.    public:
  104.       TXDialog3(const TRect& bounds, const char *aTitle);
  105.       virtual void shutDown();
  106.       virtual TPalette& getPalette() const;
  107.       virtual void handleEvent(TEvent& event);
  108.       TListBox *listbox;
  109.    protected:
  110.    private:
  111. };
  112.  
  113.  
  114.  
  115.  
  116.  
  117. // TAppStatusLine *********************************************************
  118.  
  119. class TAppStatusLine : public TStatusLine
  120. {
  121.    public:
  122.       TAppStatusLine(const TRect& bounds, TStatusDef& aDefs);
  123.       virtual TPalette& getPalette() const;
  124.       virtual const char *hint(ushort aHelpCtx);
  125.    protected:
  126.    private:
  127. };
  128.  
  129.  
  130. #endif
  131.  
  132. //                                End of TDEMO2.HPP
  133.  
  134.  
  135.  
  136.