~ubuntu-branches/ubuntu/oneiric/muse/oneiric

« back to all changes in this revision

Viewing changes to themes/mstyle.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2002-04-23 17:28:23 UTC
  • Revision ID: james.westby@ubuntu.com-20020423172823-w8yplzr81a759xa3
Tags: upstream-0.5.2
ImportĀ upstreamĀ versionĀ 0.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef MSTYLE_H
 
2
#define MSTYLE_H
 
3
 
 
4
#include <qwindowsstyle.h>
 
5
#include <qpalette.h>
 
6
 
 
7
//---------------------------------------------------------
 
8
//   MuseStyle
 
9
//---------------------------------------------------------
 
10
 
 
11
class MuseStyle : public QWindowsStyle
 
12
      {
 
13
      QPalette oldPalette;
 
14
 
 
15
      void drawMetalFrame(  QPainter *p, int x, int y, int w, int h ) const;
 
16
      void drawMetalGradient( QPainter *p, int x, int y, int w, int h,
 
17
                          bool sunken, bool horz, bool flat=FALSE ) const;
 
18
      void drawMetalButton( QPainter *p, int x, int y, int w, int h,
 
19
                          bool sunken, bool horz, bool flat=FALSE ) const;
 
20
 
 
21
   public:
 
22
      MuseStyle();
 
23
      void polish( QApplication*);
 
24
      void unPolish( QApplication*);
 
25
      void polish( QWidget* );
 
26
      void unPolish( QWidget* );
 
27
 
 
28
      void drawPrimitive(PrimitiveElement pe,
 
29
         QPainter *p, const QRect &r, const QColorGroup &cg,
 
30
         SFlags flags = Style_Default,
 
31
         const QStyleOption& = QStyleOption::Default) const;
 
32
 
 
33
      void drawControl(ControlElement element,
 
34
         QPainter *p,
 
35
         const QWidget *widget,
 
36
         const QRect &r,
 
37
         const QColorGroup &cg,
 
38
         SFlags how = Style_Default,
 
39
         const QStyleOption& = QStyleOption::Default ) const;
 
40
 
 
41
      void drawComplexControl( ComplexControl cc,
 
42
         QPainter *p,
 
43
         const QWidget *widget,
 
44
         const QRect &r,
 
45
         const QColorGroup &cg,
 
46
         SFlags how = Style_Default,
 
47
         SCFlags sub = SC_All,
 
48
         SCFlags subActive = SC_None,
 
49
         const QStyleOption& = QStyleOption::Default ) const;
 
50
         int pixelMetric( PixelMetric, const QWidget * ) const;
 
51
      };
 
52
 
 
53
#endif
 
54