Eneboo - Documentación para desarrolladores
src/qt/src/styles/qinterlacestyle.h
Ir a la documentación de este archivo.
00001 /****************************************************************************
00002 ** $Id: qt/qinterlacestyle.h   3.3.8   edited Jan 11 14:38 $
00003 **
00004 ** Implementation of QInterlaceStyle widget class
00005 **
00006 ** Created : 010122
00007 **
00008 ** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
00009 **
00010 ** This file is part of the widgets module of the Qt GUI Toolkit.
00011 **
00012 ** This file may be distributed under the terms of the Q Public License
00013 ** as defined by Trolltech ASA of Norway and appearing in the file
00014 ** LICENSE.QPL included in the packaging of this file.
00015 **
00016 ** This file may be distributed and/or modified under the terms of the
00017 ** GNU General Public License version 2 as published by the Free Software
00018 ** Foundation and appearing in the file LICENSE.GPL included in the
00019 ** packaging of this file.
00020 **
00021 ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
00022 ** licenses may use this file in accordance with the Qt Commercial License
00023 ** Agreement provided with the Software.
00024 **
00025 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00026 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00027 **
00028 ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
00029 **   information about Qt Commercial License Agreements.
00030 ** See http://www.trolltech.com/qpl/ for QPL licensing information.
00031 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00032 **
00033 ** Contact info@trolltech.com if any conditions of this licensing are
00034 ** not clear to you.
00035 **
00036 **********************************************************************/
00037 
00038 #if 0 // ###### not ported to new API yet
00039 #ifndef QINTERLACESTYLE_H
00040 #define QINTERLACESTYLE_H
00041 
00042 #ifndef QT_H
00043 #include "qmotifstyle.h"
00044 #endif // QT_H
00045 
00046 #if !defined(QT_NO_STYLE_INTERLACE) || defined(QT_PLUGIN)
00047 
00048 #include "qpalette.h"
00049 
00050 class Q_EXPORT QInterlaceStyle : public QMotifStyle
00051 {
00052 public:
00053     QInterlaceStyle();
00054     void polish( QApplication*);
00055     void unPolish( QApplication*);
00056     void polish( QWidget* );
00057     void unPolish( QWidget* );
00058 
00059     int defaultFrameWidth() const;
00060     QRect pushButtonContentsRect( QPushButton *btn );
00061 
00062     void drawFocusRect ( QPainter *, const QRect &, const QColorGroup &, const QColor * bg = 0, bool = FALSE );
00063     void drawButton( QPainter *p, int x, int y, int w, int h,
00064                              const QColorGroup &g, bool sunken = FALSE,
00065                              const QBrush *fill = 0 );
00066     void drawButtonMask ( QPainter * p, int x, int y, int w, int h );
00067     void drawBevelButton( QPainter *p, int x, int y, int w, int h,
00068                           const QColorGroup &g, bool sunken = FALSE,
00069                           const QBrush *fill = 0 );
00070 
00071     void drawPushButton( QPushButton* btn, QPainter *p);
00072     QSize indicatorSize () const;
00073     void drawIndicator ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, int state, bool down = FALSE, bool enabled = TRUE );
00074     void drawIndicatorMask( QPainter *p, int x, int y, int w, int h, int );
00075     QSize exclusiveIndicatorSize () const;
00076     void drawExclusiveIndicator( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool on, bool down = FALSE, bool enabled = TRUE );
00077     void drawExclusiveIndicatorMask( QPainter * p, int x, int y, int w, int h, bool );
00078     QRect comboButtonRect ( int x, int y, int w, int h );
00079     void drawComboButton( QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool sunken, bool editable, bool enabled, const QBrush *fb );
00080     void drawPushButtonLabel( QPushButton* btn, QPainter *p);
00081     void drawPanel( QPainter *p, int x, int y, int w, int h,
00082                     const QColorGroup &, bool sunken,
00083                     int lineWidth, const QBrush *fill );
00084 
00085     void scrollBarMetrics( const QScrollBar* sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim );
00086     void drawScrollBarControls( QPainter* p, const QScrollBar* sb, int sliderStart, uint controls, uint activeControl );
00087     void drawSlider( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, Orientation, bool tickAbove, bool tickBelow );
00088     void drawSliderGroove( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, QCOORD c, Orientation );
00089     int splitterWidth() const;
00090     void drawSplitter( QPainter *p, int x, int y, int w, int h,
00091                       const QColorGroup &g, Orientation orient);
00092 
00093     int buttonDefaultIndicatorWidth() const;
00094     int setSliderThickness() const;
00095     QSize scrollBarExtent() const;
00096 
00097 private:
00098     QPalette oldPalette;
00099 };
00100 
00101 #endif // QT_NO_STYLE_INTERLACE
00102 
00103 #endif
00104 #endif
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'