home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qt3_emx.zip / include / qinterlacestyle.h < prev    next >
C/C++ Source or Header  |  2001-10-11  |  4KB  |  105 lines

  1. /****************************************************************************
  2. ** $Id:  qt/qinterlacestyle.h   3.0.0   edited Aug 9 08:39 $
  3. **
  4. ** Implementation of QInterlaceStyle widget class
  5. **
  6. ** Created : 22 January 2001
  7. **
  8. ** Copyright (C) 1992-2001 Trolltech AS.  All rights reserved.
  9. **
  10. ** This file is part of the widgets module of the Qt GUI Toolkit.
  11. **
  12. ** This file may be distributed under the terms of the Q Public License
  13. ** as defined by Trolltech AS of Norway and appearing in the file
  14. ** LICENSE.QPL included in the packaging of this file.
  15. **
  16. ** This file may be distributed and/or modified under the terms of the
  17. ** GNU General Public License version 2 as published by the Free Software
  18. ** Foundation and appearing in the file LICENSE.GPL included in the
  19. ** packaging of this file.
  20. **
  21. ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
  22. ** licenses may use this file in accordance with the Qt Commercial License
  23. ** Agreement provided with the Software.
  24. **
  25. ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  26. ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  27. **
  28. ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
  29. **   information about Qt Commercial License Agreements.
  30. ** See http://www.trolltech.com/qpl/ for QPL licensing information.
  31. ** See http://www.trolltech.com/gpl/ for GPL licensing information.
  32. **
  33. ** Contact info@trolltech.com if any conditions of this licensing are
  34. ** not clear to you.
  35. **
  36. **********************************************************************/
  37.  
  38. #if 0 // ###### not ported to new API yet
  39. #ifndef QINTERLACESTYLE_H
  40. #define QINTERLACESTYLE_H
  41.  
  42. #ifndef QT_H
  43. #include "qmotifstyle.h"
  44. #endif // QT_H
  45.  
  46. #ifndef QT_NO_STYLE_INTERLACE
  47.  
  48. #include <qpalette.h>
  49.  
  50. class Q_EXPORT QInterlaceStyle : public QMotifStyle
  51. {
  52. public:
  53.     QInterlaceStyle();
  54.     void polish( QApplication*);
  55.     void unPolish( QApplication*);
  56.     void polish( QWidget* );
  57.     void unPolish( QWidget* );
  58.  
  59.     int defaultFrameWidth() const;
  60.     QRect pushButtonContentsRect( QPushButton *btn );
  61.  
  62.     void drawFocusRect ( QPainter *, const QRect &, const QColorGroup &, const QColor * bg = 0, bool = FALSE );
  63.     void drawButton( QPainter *p, int x, int y, int w, int h,
  64.                  const QColorGroup &g, bool sunken = FALSE,
  65.                  const QBrush *fill = 0 );
  66.     void drawButtonMask ( QPainter * p, int x, int y, int w, int h );
  67.     void drawBevelButton( QPainter *p, int x, int y, int w, int h,
  68.               const QColorGroup &g, bool sunken = FALSE,
  69.               const QBrush *fill = 0 );
  70.  
  71.     void drawPushButton( QPushButton* btn, QPainter *p);
  72.     QSize indicatorSize () const;
  73.     void drawIndicator ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, int state, bool down = FALSE, bool enabled = TRUE );
  74.     void drawIndicatorMask( QPainter *p, int x, int y, int w, int h, int );
  75.     QSize exclusiveIndicatorSize () const;
  76.     void drawExclusiveIndicator( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool on, bool down = FALSE, bool enabled = TRUE );
  77.     void drawExclusiveIndicatorMask( QPainter * p, int x, int y, int w, int h, bool );
  78.     QRect comboButtonRect ( int x, int y, int w, int h );
  79.     void drawComboButton( QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool sunken, bool editable, bool enabled, const QBrush *fb );
  80.     void drawPushButtonLabel( QPushButton* btn, QPainter *p);
  81.     void drawPanel( QPainter *p, int x, int y, int w, int h,
  82.             const QColorGroup &, bool sunken,
  83.             int lineWidth, const QBrush *fill );
  84.  
  85.     void scrollBarMetrics( const QScrollBar* sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim );
  86.     void drawScrollBarControls( QPainter* p, const QScrollBar* sb, int sliderStart, uint controls, uint activeControl );
  87.     void drawSlider( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, Orientation, bool tickAbove, bool tickBelow );
  88.     void drawSliderGroove( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, QCOORD c, Orientation );
  89.     int splitterWidth() const;
  90.     void drawSplitter( QPainter *p, int x, int y, int w, int h,
  91.               const QColorGroup &g, Orientation orient);
  92.  
  93.     int buttonDefaultIndicatorWidth() const;
  94.     int setSliderThickness() const;
  95.     QSize scrollBarExtent() const;
  96.  
  97. private:
  98.     QPalette oldPalette;
  99. };
  100.  
  101. #endif // QT_NO_STYLE_INTERLACE
  102.  
  103. #endif
  104. #endif
  105.