libyui-qt-pkg
Loading...
Searching...
No Matches
YQIconPool.h
1/*
2 Copyright (c) 2000 - 2010 Novell, Inc.
3 Copyright (c) 2021 SUSE LLC
4
5 This library is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as
7 published by the Free Software Foundation; either version 2.1 of the
8 License, or (at your option) version 3.0 of the License. This library
9 is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
12 License for more details. You should have received a copy of the GNU
13 Lesser General Public License along with this library; if not, write
14 to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
15 Floor, Boston, MA 02110-1301 USA
16*/
17
18
19/*
20 File: YQIconPool.h
21 Author: Stefan Hundhammer <shundhammer.de>
22*/
23
24
25#ifndef YQIconPool_h
26#define YQIconPool_h
27
28#include <qpixmap.h>
29#include <QHash>
30
32{
33public:
34
35 static QPixmap pkgAutoDel();
36 static QPixmap pkgAutoInstall();
37 static QPixmap pkgAutoUpdate();
38 static QPixmap pkgDel();
39 static QPixmap pkgInstall();
40 static QPixmap pkgKeepInstalled();
41 static QPixmap pkgNoInst();
42 static QPixmap pkgProtected();
43 static QPixmap pkgTaboo();
44 static QPixmap pkgUpdate();
45
46 static QPixmap disabledPkgAutoDel();
47 static QPixmap disabledPkgAutoInstall();
48 static QPixmap disabledPkgAutoUpdate();
49 static QPixmap disabledPkgDel();
50 static QPixmap disabledPkgInstall();
51 static QPixmap disabledPkgKeepInstalled();
52 static QPixmap disabledPkgNoInst();
53 static QPixmap disabledPkgProtected();
54 static QPixmap disabledPkgTaboo();
55 static QPixmap disabledPkgUpdate();
56
57 static QPixmap normalPkgConflict();
58
59 static QPixmap treePlus();
60 static QPixmap treeMinus();
61
62 static QPixmap warningSign();
63 static QPixmap pkgSatisfied();
64
65 static QPixmap tabRemove();
66 static QPixmap arrowLeft();
67 static QPixmap arrowRight();
68 static QPixmap arrowDown();
69
70protected:
71
75 static YQIconPool * iconPool();
76
83 QPixmap cachedIcon(const QString icon_name, const bool enabled );
84
90 QPixmap loadIcon( const QString icon_name, const bool enabled );
91
92private:
93
98 YQIconPool();
99
103 virtual ~YQIconPool();
104
105
106 //
107 // Data members
108 //
109
110 static YQIconPool * _iconPool;
111 QHash< const QString, QPixmap > _iconCache;
112};
113
114
115#endif // ifndef YQIconPool_h
Definition YQIconPool.h:32
QPixmap loadIcon(const QString icon_name, const bool enabled)
Definition YQIconPool.cc:124
static YQIconPool * iconPool()
Definition YQIconPool.cc:77
QPixmap cachedIcon(const QString icon_name, const bool enabled)
Definition YQIconPool.cc:99