-rw-r--r-- | noncore/styles/metal/metal.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/noncore/styles/metal/metal.h b/noncore/styles/metal/metal.h new file mode 100644 index 0000000..84f2421 --- a/dev/null +++ b/noncore/styles/metal/metal.h | |||
@@ -0,0 +1,69 @@ | |||
1 | /**************************************************************************** | ||
2 | ** $Id$ | ||
3 | ** | ||
4 | ** Definition of something or other | ||
5 | ** | ||
6 | ** Created : 979899 | ||
7 | ** | ||
8 | ** Copyright (C) 1997 by Trolltech AS. All rights reserved. | ||
9 | ** | ||
10 | ** This file is part of an example program for Qt. This example | ||
11 | ** program may be used, distributed and modified without limitation. | ||
12 | ** | ||
13 | *****************************************************************************/ | ||
14 | |||
15 | #ifndef METAL_H | ||
16 | #define METAL_H | ||
17 | |||
18 | #include <qwindowsstyle.h> | ||
19 | #include <qpalette.h> | ||
20 | |||
21 | class MetalStyle : public QWindowsStyle | ||
22 | { | ||
23 | public: | ||
24 | MetalStyle(); | ||
25 | void polish( QApplication*); | ||
26 | void unPolish( QApplication*); | ||
27 | void polish( QWidget* ); | ||
28 | void unPolish( QWidget* ); | ||
29 | |||
30 | |||
31 | void drawMetalButton( QPainter *p, int x, int y, int w, int h, | ||
32 | bool sunken = FALSE, bool horz = TRUE ); | ||
33 | |||
34 | |||
35 | void drawButton( QPainter *p, int x, int y, int w, int h, | ||
36 | const QColorGroup &g, bool sunken = FALSE, | ||
37 | const QBrush *fill = 0 ); | ||
38 | void drawBevelButton( QPainter *p, int x, int y, int w, int h, | ||
39 | const QColorGroup &g, bool sunken = FALSE, | ||
40 | const QBrush *fill = 0 ); | ||
41 | |||
42 | void drawPushButton( QPushButton* btn, QPainter *p); | ||
43 | void drawPushButtonLabel( QPushButton* btn, QPainter *p); | ||
44 | void drawPanel( QPainter *p, int x, int y, int w, int h, | ||
45 | const QColorGroup &, bool sunken, | ||
46 | int lineWidth, const QBrush *fill ); | ||
47 | |||
48 | |||
49 | void drawSlider( QPainter *p, | ||
50 | int x, int y, int w, int h, | ||
51 | const QColorGroup &g, | ||
52 | Orientation orient, bool tickAbove, bool tickBelow ); | ||
53 | |||
54 | void drawScrollBarControls( QPainter* p, const QScrollBar* sb, | ||
55 | int sliderStart, uint controls, | ||
56 | uint activeControl ); | ||
57 | |||
58 | |||
59 | void drawComboButton( QPainter *p, int x, int y, int w, int h, | ||
60 | const QColorGroup &g, bool sunken = FALSE, | ||
61 | bool editable = FALSE, | ||
62 | bool enabled = TRUE, | ||
63 | const QBrush *fill = 0 ); | ||
64 | |||
65 | private: | ||
66 | QPalette oldPalette; | ||
67 | }; | ||
68 | |||
69 | #endif | ||