class KStyle
|
Extends the QStyle class with virtual methods to draw KDE widgets. More... |
|
|
Public Types
- enum KToolButtonType {Icon=0, IconTextRight, Text, IconTextBottom};
}
- enum KToolBarPos {Top=0, Left, Right, Bottom, Floating, Flat};
}
Public Methods
- KStyle ()
- virtual void drawKToolBar (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, KToolBarPos type, QBrush *fill=NULL)
- virtual void drawKBarHandle (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, KToolBarPos type, 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, QWidget *btn=NULL)
- virtual void drawKMenuBar (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool macMode, 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 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)
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};
}
|
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:
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, 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:
fill | The 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]
- Author: Daniel M. Duley <mosfet@kde.org>
- Generated: marc@yogi on Tue Mar 27 13:06:25 2001, using kdoc 2.0a48.