class KStyle


Definition#include <kstyle.h>
InheritsQPlatinumStyle
Annotated List
Files
Globals
Hierarchy
Index
Main

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}

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

 KStyle () : QPlatinumStyle()

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

[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)

[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)

[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)

[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)

[virtual]

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

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

[virtual]

Draw one block on a progress bar.

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

[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)

[virtual]

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

[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)

[virtual]

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

[virtual]