class KStyle

Extends the QStyle class with virtual methods to draw KDE widgets. More...

Definition#include <kstyle.h>
InheritsQPlatinumStyle (qt) [public ]
Inherited byKDEStyle
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods


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.

enum KToolButtonType {Icon=0, IconTextRight, Text, IconTextBottom}

KToolButtonType

enum KToolBarPos {Top=0, Left, Right, Bottom, Floating, Flat}

KToolBarPos

 KStyle ()

KStyle

void  drawKToolBar (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, KToolBarPos type, QBrush *fill=NULL)

drawKToolBar

[virtual]

Draw a toolbar (without buttons, etc.)

x, y, w, and h tell in which rectangle to draw the toolbar.

void  drawKBarHandle (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, KToolBarPos type, QBrush *fill=NULL)

drawKBarHandle

[virtual]

Draw a toolbar handle.

Parameters:
fillThe 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, QWidget *btn=NULL)

drawKToolBarButton

[virtual]

Draw a toolbar button.

void  drawKMenuBar (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool macMode, QBrush *fill=NULL)

drawKMenuBar

[virtual]

Draw a menubar (without menus).

Parameters:
fillThe QBrush to fill the menubar with.

void  drawKMenuItem (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool active, QMenuItem *item, QBrush *fill=NULL)

drawKMenuItem

[virtual]

Draw a menu item (ex, "&File").

void  drawKProgressBlock (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, QBrush *fill)

drawKProgressBlock

[virtual]

Draw one block on a progress bar.

void  getKProgressBackground (const QColorGroup &g, QBrush &bg)

getKProgressBackground

[virtual]

Retrieve the color used to the background of a progress bar.

This isn't a drawXXX method due to KProgress implementation.

void  drawKickerHandle (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, QBrush *fill=NULL)

drawKickerHandle

[virtual]

void  drawKickerAppletHandle (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, QBrush *fill=NULL)

drawKickerAppletHandle

[virtual]

void  drawKickerTaskButton (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, const QString &title, bool active, QPixmap *icon=NULL, QBrush *fill=NULL)

drawKickerTaskButton

[virtual]

void  getKickerBackground (int w, int h, Orientation orient, const QColorGroup &g, QBrush &bg)

getKickerBackground

[virtual]