| 1 | /************************************************************************** |
| 2 | ** |
| 3 | ** This file is part of Qt Creator |
| 4 | ** |
| 5 | ** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 6 | ** |
| 7 | ** Contact: Nokia Corporation ([email protected]) |
| 8 | ** |
| 9 | ** Commercial Usage |
| 10 | ** |
| 11 | ** Licensees holding valid Qt Commercial licenses may use this file in |
| 12 | ** accordance with the Qt Commercial License Agreement provided with the |
| 13 | ** Software or, alternatively, in accordance with the terms contained in |
| 14 | ** a written agreement between you and Nokia. |
| 15 | ** |
| 16 | ** GNU Lesser General Public License Usage |
| 17 | ** |
| 18 | ** Alternatively, this file may be used under the terms of the GNU Lesser |
| 19 | ** General Public License version 2.1 as published by the Free Software |
| 20 | ** Foundation and appearing in the file LICENSE.LGPL included in the |
| 21 | ** packaging of this file. Please review the following information to |
| 22 | ** ensure the GNU Lesser General Public License version 2.1 requirements |
| 23 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
| 24 | ** |
| 25 | ** If you are unsure which license is appropriate for your use, please |
| 26 | ** contact the sales department at http://qt.nokia.com/contact. |
| 27 | ** |
| 28 | **************************************************************************/ |
| 29 | |
| 30 | #ifndef STYLEHELPER_H |
| 31 | #define STYLEHELPER_Hcxx . . $ `src/stylehelper.h:31:9`! |
| 32 | |
| 33 | #include <QtGui/QColor> |
| 34 | #include <QStyle> |
| 35 | |
| 36 | QT_BEGIN_NAMESPACEcxx . . $ `<external>/15045578679651060896/qglobal.h:148:10`! |
| 37 | class QPalettecxx . . $ QPalette#; |
| 38 | class QPaintercxx . . $ QPainter#; |
| 39 | class QRectcxx . . $ QRect#; |
| 40 | // Note, this is exported but in a private header as qtopengl depends on it. |
| 41 | // We should consider adding this as a public helper function. |
| 42 | void qt_blurImagecxx . . $ qt_blurImage(55ec08f7b5f5408f).(QPaintercxx . . $ QPainter# *p, QImagecxx . . $ QImage# &blurImage, qrealcxx . . $ qreal# radius, bool quality, bool alphaOnly, int transposed = 0); |
| 43 | QT_END_NAMESPACEcxx . . $ `<external>/15045578679651060896/qglobal.h:149:10`! |
| 44 | |
| 45 | // Helper class holding all custom color values |
| 46 | |
| 47 | namespace Utilscxx . . $ Utils/ { |
| 48 | class StyleHelpercxx . . $ Utils/StyleHelper# |
| 49 | { |
| 50 | public: |
| 51 | static const unsigned int DEFAULT_BASE_COLORcxx . . $ Utils/StyleHelper#DEFAULT_BASE_COLOR. = 0x666666; |
| 52 | |
| 53 | // Height of the project explorer navigation bar |
| 54 | static qrealcxx . . $ qreal# sidebarFontSizecxx . . $ Utils/StyleHelper#sidebarFontSize(31fa7155c10fdd13).(); |
| 55 | |
| 56 | // This is our color table, all colors derive from baseColor |
| 57 | static QColorcxx . . $ QColor# requestedBaseColorcxx . . $ Utils/StyleHelper#requestedBaseColor(f5857e16334315e5).() { return m_requestedBaseColorcxx . . $ QColor#QColor(c396aab421781ee8).; } |
| 58 | static QColorcxx . . $ QColor# baseColorcxx . . $ Utils/StyleHelper#baseColor(9d1fd1d8b71bb60d).(bool lightColored = false); |
| 59 | static QColorcxx . . $ QColor# panelTextColorcxx . . $ Utils/StyleHelper#panelTextColor(9d1fd1d8b71bb60d).(bool lightColored = false); |
| 60 | static QColorcxx . . $ QColor# highlightColorcxx . . $ Utils/StyleHelper#highlightColor(9d1fd1d8b71bb60d).(bool lightColored = false); |
| 61 | static QColorcxx . . $ QColor# shadowColorcxx . . $ Utils/StyleHelper#shadowColor(9d1fd1d8b71bb60d).(bool lightColored = false); |
| 62 | static QColorcxx . . $ QColor# borderColorcxx . . $ Utils/StyleHelper#borderColor(9d1fd1d8b71bb60d).(bool lightColored = false); |
| 63 | |
| 64 | static QColorcxx . . $ QColor# sidebarHighlightcxx . . $ Utils/StyleHelper#sidebarHighlight(f5857e16334315e5).() { return QColorcxx . . $ QColor#QColor(2261ffe5112eab06).(255, 255, 255, 40); } |
| 65 | static QColorcxx . . $ QColor# sidebarShadowcxx . . $ Utils/StyleHelper#sidebarShadow(f5857e16334315e5).() { return QColorcxx . . $ QColor#QColor(2261ffe5112eab06).(0, 0, 0, 40); } |
| 66 | |
| 67 | // Sets the base color and makes sure all top level widgets are updated |
| 68 | static void setBaseColorcxx . . $ Utils/StyleHelper#setBaseColor(129a55e114526ad3).(const QColorcxx . . $ QColor# &color); |
| 69 | |
| 70 | // Gradients used for panels |
| 71 | static void verticalGradientcxx . . $ Utils/StyleHelper#verticalGradient(a205dbb5f371807).(QPaintercxx . . $ QPainter# *painter, const QRectcxx . . $ QRect# &spanRect, const QRectcxx . . $ QRect# &clipRect, bool lightColored = false); |
| 72 | static bool usePixmapCachecxx . . $ Utils/StyleHelper#usePixmapCache(c9857a73d68e59ba).() { return true; } |
| 73 | |
| 74 | static void drawIconWithShadowcxx . . $ Utils/StyleHelper#drawIconWithShadow(4cbb369097595e05).(const QIconcxx . . $ QIcon# &icon, const QRectcxx . . $ QRect# &rect, QPaintercxx . . $ QPainter# *p, QIconcxx . . $ QIcon#::Modecxx . . $ QIcon#Mode# iconMode, |
| 75 | int radius = 3, const QColorcxx . . $ QColor# &color = QColorcxx . . $ QColor#QColor(2261ffe5112eab06).(0, 0, 0, 130), |
| 76 | const QPointcxx . . $ QPoint# &offset = QPointcxx . . $ QPoint#QPoint(3e454b8ccf442868).(1, -2)); |
| 77 | |
| 78 | private: |
| 79 | static QColorcxx . . $ QColor# m_baseColorcxx . . $ Utils/StyleHelper#m_baseColor.; |
| 80 | static QColorcxx . . $ QColor# m_requestedBaseColorcxx . . $ Utils/StyleHelper#m_requestedBaseColor.; |
| 81 | }; |
| 82 | |
| 83 | } // namespace Utils |
| 84 | |
| 85 | using Utilscxx . . $ Utils/::StyleHelpercxx . . $ Utils/StyleHelper#; |
| 86 | #endif // STYLEHELPER_H |