class KStyle
|
Extends the QStyle class with virtual methods to draw KDE widgets. More... |
|
|
Public Types
- enum KToolButtonType {Icon=0, IconTextRight, Text, IconTextBottom}
Public Methods
- KStyle () : QPlatinumStyle()
- virtual void drawKToolBar (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool floating = false)
- virtual void drawKBarHandle (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool horizontal=false, QBrush *fill=NULL)
- virtual void drawKToolBarButton (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool sunken=false, bool raised = true, bool enabled = true, bool popup = false, KToolButtonType icontext = Icon, const QString& btext=QString::null, const QPixmap *icon=NULL, QFont *font=NULL)
- virtual void drawKMenuBar (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, QBrush *fill=NULL)
- virtual void drawKMenuItem (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool active, QMenuItem *item, QBrush *fill=NULL)
- virtual void drawKProgressBlock (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, QBrush *fill)
- virtual void getKProgressBackground (const QColorGroup &g, QBrush &bg)
- virtual void drawOPToolBar (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, QBrush *fill=NULL)
Detailed Description
Extends the QStyle class with virtual methods to draw KDE widgets.
To create a new KStyle, reimplement the virtual functions which draw
the GUI elements.
void drawKToolBar (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool floating = false)
|
[virtual]
Draw a toolbar (without buttons, etc.)
x
, @y, @w, and @h tell in which rectangle to draw the toolbar.
Parameters:
floating | @true of this is a floating toolbar, @false if it
is part of the application window.
|
void drawKBarHandle (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool horizontal=false, QBrush *fill=NULL)
|
[virtual]
Draw a menubar/toolbar handle.
Parameters:
horizontal | If @true, the menubar/toolbar is oriented horizontally.
|
fill | The QBrush to fill the handle with.
|
void drawKToolBarButton (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool sunken=false, bool raised = true, bool enabled = true, bool popup = false, KToolButtonType icontext = Icon, const QString& btext=QString::null, const QPixmap *icon=NULL, QFont *font=NULL)
|
[virtual]
Draw a toolbar button.
[virtual]
Draw a menubar (without menus).
Parameters:
fill | The QBrush to fill the menubar with.
|
[virtual]
Draw a menu item (ex, "&File").
[virtual]
Draw one block on a progress bar.
[virtual]
Retrieve the color used to the background of a progress bar.
This isn't a drawXXX method due to KProgress implementation.
[virtual]
Internal method for use in the new OpenParts implementation. You should
not override this but drawKToolBar instead.
- Author: Daniel M. Duley <mosfet@kde.org>
- Generated: dfaure@faure on Sun Mar 26 14:24:15 2000, using kdoc 2.0a35.