1
/****************************************************************************
2
** $Id: qmusewindowsstyle.h,v 1.1 2002/04/19 20:07:59 kobras Exp $
4
** Definition of Windows-like style class
5
** 2002-04-19 Modified for inclusing into muse source tree
10
** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
12
** This file is part of the widgets module of the Qt GUI Toolkit.
14
** This file may be distributed under the terms of the Q Public License
15
** as defined by Trolltech AS of Norway and appearing in the file
16
** LICENSE.QPL included in the packaging of this file.
18
** This file may be distributed and/or modified under the terms of the
19
** GNU General Public License version 2 as published by the Free Software
20
** Foundation and appearing in the file LICENSE.GPL included in the
21
** packaging of this file.
23
** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
24
** licenses may use this file in accordance with the Qt Commercial License
25
** Agreement provided with the Software.
27
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
28
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
30
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
31
** information about Qt Commercial License Agreements.
32
** See http://www.trolltech.com/qpl/ for QPL licensing information.
33
** See http://www.trolltech.com/gpl/ for GPL licensing information.
35
** Contact info@trolltech.com if any conditions of this licensing are
38
**********************************************************************/
40
#ifndef QMUSEWINDOWSSTYLE_H
41
#define QMUSEWINDOWSSTYLE_H
44
#include "qcommonstyle.h"
47
class QMuseWindowsStyle : public QCommonStyle
54
virtual void polishPopupMenu( QPopupMenu* );
57
void drawPrimitive( PrimitiveElement pe,
60
const QColorGroup &cg,
61
SFlags flags = Style_Default,
62
const QStyleOption& = QStyleOption::Default ) const;
64
void drawControl( ControlElement element,
66
const QWidget *widget,
68
const QColorGroup &cg,
69
SFlags flags = Style_Default,
70
const QStyleOption& = QStyleOption::Default ) const;
72
void drawComplexControl( ComplexControl control,
74
const QWidget* widget,
76
const QColorGroup& cg,
77
SFlags flags = Style_Default,
79
SCFlags subActive = SC_None,
80
const QStyleOption& = QStyleOption::Default ) const;
82
int pixelMetric( PixelMetric metric,
83
const QWidget *widget = 0 ) const;
85
QSize sizeFromContents( ContentsType contents,
86
const QWidget *widget,
87
const QSize &contentsSize,
88
const QStyleOption& = QStyleOption::Default ) const;
90
int styleHint(StyleHint sh, const QWidget *, const QStyleOption & = QStyleOption::Default,
91
QStyleHintReturn* = 0) const;
93
QPixmap stylePixmap( StylePixmap stylepixmap,
94
const QWidget *widget = 0,
95
const QStyleOption& = QStyleOption::Default ) const;
99
// Disabled copy constructor and operator=
100
#if defined(Q_DISABLE_COPY)
101
QMuseWindowsStyle( const QMuseWindowsStyle & );
102
QMuseWindowsStyle& operator=( const QMuseWindowsStyle & );
106
#endif // QMUSEWINDOWSSTYLE_H