You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
5.6 KiB
90 lines
5.6 KiB
13 years ago
|
//
|
||
|
// Copyright 2003 Jim Bublitz <jbublitz@nwinternet.com>
|
||
|
// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson
|
||
|
// may also apply
|
||
|
|
||
|
|
||
|
// Generated by preSip
|
||
13 years ago
|
// module tdeui version KDE_3_1_1
|
||
13 years ago
|
|
||
|
|
||
|
// This software is free software; you can redistribute it and/or
|
||
|
// modify it under the terms of the GNU General Public License as
|
||
|
// published by the Free Software Foundation; either version 2 of
|
||
|
// the License, or (at your option) any later version.
|
||
|
//
|
||
|
// This software is distributed in the hope that it will be useful,
|
||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
// GNU General Public License for more details.
|
||
|
//
|
||
|
// You should have received a copy of the GNU General Public
|
||
|
// License along with this library; see the file COPYING.
|
||
|
// If not, write to the Free Software Foundation, Inc.,
|
||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||
|
|
||
|
|
||
|
class KThemeStyle : KThemeBase
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <kthemestyle.h>
|
||
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
|
KThemeStyle (const QString& = QString::null);
|
||
|
virtual void polish (QWidget*);
|
||
|
virtual void unPolish (QWidget*);
|
||
|
virtual void polish (QApplication*);
|
||
|
virtual void unPolish (QApplication*);
|
||
|
virtual void polish (QPalette&);
|
||
|
virtual void drawBaseButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, bool = 0, WidgetType = Bevel, const QBrush* = 0);
|
||
|
virtual void drawBaseMask (QPainter*, int, int, int, int, bool);
|
||
|
virtual void drawButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0);
|
||
|
virtual void drawBevelButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0);
|
||
|
virtual void drawKToolBarButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, bool = 1, bool = 1, bool = 0, KToolButtonType = Icon, const QString& = QString::null, const QPixmap* = 0, QFont* = 0, QWidget* = 0);
|
||
|
void drawKBarHandle (QPainter*, int, int, int, int, const QColorGroup&, KToolBarPos, QBrush* = 0);
|
||
|
void drawKToolBar (QPainter*, int, int, int, int, const QColorGroup&, KToolBarPos, QBrush* = 0);
|
||
|
virtual QRect buttonRect (int, int, int, int);
|
||
|
virtual void drawArrow (QPainter*, Qt::ArrowType, bool, int, int, int, int, const QColorGroup&, bool = 1, const QBrush* = 0);
|
||
|
virtual QSize exclusiveIndicatorSize () const;
|
||
|
virtual void drawExclusiveIndicator (QPainter*, int, int, int, int, const QColorGroup&, bool, bool = 0, bool = 1);
|
||
|
virtual void drawExclusiveIndicatorMask (QPainter*, int, int, int, int, bool);
|
||
|
virtual void drawIndicatorMask (QPainter*, int, int, int, int, int);
|
||
|
virtual void drawButtonMask (QPainter*, int, int, int, int);
|
||
|
virtual void drawComboButtonMask (QPainter*, int, int, int, int);
|
||
|
virtual QSize indicatorSize () const;
|
||
|
virtual void drawIndicator (QPainter*, int, int, int, int, const QColorGroup&, int, bool = 0, bool = 1);
|
||
|
virtual void drawComboButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, bool = 0, bool = 1, const QBrush* = 0);
|
||
|
virtual void drawPushButton (QPushButton*, QPainter*);
|
||
|
//ig virtual void getButtonShift (int&, int&);
|
||
|
virtual int defaultFrameWidth () const;
|
||
|
//ig virtual void scrollBarMetrics (const QScrollBar*, int&, int&, int&, int&);
|
||
|
virtual void drawScrollBarControls (QPainter*, const QScrollBar*, int, uint, uint);
|
||
|
virtual ScrollControl scrollBarPointOver (const QScrollBar*, int, const QPoint&);
|
||
|
virtual int sliderLength () const;
|
||
|
virtual void drawSlider (QPainter*, int, int, int, int, const QColorGroup&, Orientation, bool, bool);
|
||
|
void drawSliderGroove (QPainter*, int, int, int, int, const QColorGroup&, QCOORD, Orientation);
|
||
|
virtual void drawSliderMask (QPainter*, int, int, int, int, Orientation, bool, bool);
|
||
|
virtual void drawScrollBarGroove (QPainter*, const QScrollBar*, bool, QRect, QColorGroup);
|
||
|
virtual void drawShade (QPainter*, int, int, int, int, const QColorGroup&, bool, bool, int, int, ShadeStyle);
|
||
|
virtual void drawPushButtonLabel (QPushButton*, QPainter*);
|
||
|
void drawKMenuBar (QPainter*, int, int, int, int, const QColorGroup&, bool, QBrush* = 0);
|
||
|
//ig virtual void drawKMenuItem (QPainter*, int, int, int, int, const QColorGroup&, bool, QMenuItem*, QBrush* = 0);
|
||
|
virtual int splitterWidth () const;
|
||
|
virtual void drawSplitter (QPainter*, int, int, int, int, const QColorGroup&, Orientation);
|
||
|
virtual void drawCheckMark (QPainter*, int, int, int, int, const QColorGroup&, bool, bool);
|
||
|
//ig virtual void drawPopupMenuItem (QPainter*, bool, int, int, QMenuItem*, const QPalette&, bool, bool, int, int, int, int);
|
||
|
//ig int popupMenuItemHeight (bool, QMenuItem*, const QFontMetrics&);
|
||
|
void drawFocusRect (QPainter*, const QRect&, const QColorGroup&, const QColor* = 0, bool = 0);
|
||
|
virtual void drawKProgressBlock (QPainter*, int, int, int, int, const QColorGroup&, QBrush*);
|
||
|
virtual void getKProgressBackground (const QColorGroup&, QBrush&);
|
||
|
//ig virtual void tabbarMetrics (const QTabBar*, int&, int&, int&);
|
||
|
virtual void drawTab (QPainter*, const QTabBar*, QTab*, bool);
|
||
|
virtual void drawTabMask (QPainter*, const QTabBar*, QTab*, bool);
|
||
|
|
||
|
protected:
|
||
|
|
||
|
}; // class KThemeStyle
|
||
|
|