1 | /** @file
|
---|
2 | *
|
---|
3 | * VBox frontends: Qt GUI ("VirtualBox"):
|
---|
4 | * UIIconPool class declarations
|
---|
5 | */
|
---|
6 |
|
---|
7 | /*
|
---|
8 | * Copyright (C) 2010 Oracle Corporation
|
---|
9 | *
|
---|
10 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
11 | * available from http://www.virtualbox.org. This file is free software;
|
---|
12 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
13 | * General Public License (GPL) as published by the Free Software
|
---|
14 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
15 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
16 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
17 | */
|
---|
18 |
|
---|
19 | #ifndef __UIIconPool_h__
|
---|
20 | #define __UIIconPool_h__
|
---|
21 |
|
---|
22 | /* Global includes */
|
---|
23 | #include <QIcon>
|
---|
24 | #include <QStyle>
|
---|
25 |
|
---|
26 | class UIIconPool
|
---|
27 | {
|
---|
28 | public:
|
---|
29 |
|
---|
30 | enum UIDefaultIcon
|
---|
31 | {
|
---|
32 | MessageBoxInformationIcon,
|
---|
33 | MessageBoxQuestionIcon,
|
---|
34 | MessageBoxWarningIcon,
|
---|
35 | MessageBoxCriticalIcon,
|
---|
36 | DialogCancelIcon,
|
---|
37 | DialogHelpIcon,
|
---|
38 | ArrowBackIcon,
|
---|
39 | ArrowForwardIcon
|
---|
40 | };
|
---|
41 |
|
---|
42 | static QIcon iconSet(const QPixmap &normal,
|
---|
43 | const QPixmap &disabled = QPixmap(),
|
---|
44 | const QPixmap &active = QPixmap());
|
---|
45 | static QIcon iconSet(const QString &strNormal,
|
---|
46 | const QString &strDisabled = QString(),
|
---|
47 | const QString &strActive = QString());
|
---|
48 | static QIcon iconSetOnOff(const QString &strNormal, const QString strNormalOff,
|
---|
49 | const QString &strDisabled = QString(),
|
---|
50 | const QString &strDisabledOff = QString(),
|
---|
51 | const QString &strActive = QString(),
|
---|
52 | const QString &strActiveOff = QString());
|
---|
53 | static QIcon iconSetFull(const QSize &normalSize, const QSize &smallSize,
|
---|
54 | const QString &strNormal, const QString &strSmallNormal,
|
---|
55 | const QString &strDisabled = QString(),
|
---|
56 | const QString &strSmallDisabled = QString(),
|
---|
57 | const QString &strActive = QString(),
|
---|
58 | const QString &strSmallActive = QString());
|
---|
59 |
|
---|
60 | static QIcon defaultIcon(UIDefaultIcon def, const QWidget *pWidget = 0);
|
---|
61 |
|
---|
62 | private:
|
---|
63 |
|
---|
64 | UIIconPool() {};
|
---|
65 | UIIconPool(const UIIconPool& /* pool */) {};
|
---|
66 | ~UIIconPool() {};
|
---|
67 | };
|
---|
68 |
|
---|
69 | #endif /* !__UIIconPool_h__ */
|
---|
70 |
|
---|