2012-10-02 09:12:39 +02:00
|
|
|
/****************************************************************************
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
2016-01-15 14:58:39 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** This file is part of Qt Creator.
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
2016-01-15 14:58:39 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2008-12-02 14:17:16 +01:00
|
|
|
**
|
2016-01-15 14:58:39 +01:00
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
2010-12-17 16:01:08 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
****************************************************************************/
|
2008-12-02 14:09:21 +01:00
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
#ifndef CPLUSPLUS_ICONS_H
|
|
|
|
|
#define CPLUSPLUS_ICONS_H
|
|
|
|
|
|
2013-03-27 18:54:03 +01:00
|
|
|
#include <cplusplus/CPlusPlusForwardDeclarations.h>
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2012-02-15 10:42:41 +01:00
|
|
|
#include <QIcon>
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
namespace CPlusPlus {
|
|
|
|
|
|
|
|
|
|
class Symbol;
|
|
|
|
|
|
|
|
|
|
class CPLUSPLUS_EXPORT Icons
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
Icons();
|
|
|
|
|
|
2008-12-05 12:21:18 +01:00
|
|
|
QIcon iconForSymbol(const Symbol *symbol) const;
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
QIcon keywordIcon() const;
|
|
|
|
|
QIcon macroIcon() const;
|
|
|
|
|
|
2010-07-16 11:18:29 +02:00
|
|
|
enum IconType {
|
|
|
|
|
ClassIconType = 0,
|
2015-02-24 11:33:39 +01:00
|
|
|
StructIconType,
|
2010-07-16 11:18:29 +02:00
|
|
|
EnumIconType,
|
|
|
|
|
EnumeratorIconType,
|
|
|
|
|
FuncPublicIconType,
|
|
|
|
|
FuncProtectedIconType,
|
|
|
|
|
FuncPrivateIconType,
|
2014-10-30 19:43:48 +03:00
|
|
|
FuncPublicStaticIconType,
|
|
|
|
|
FuncProtectedStaticIconType,
|
|
|
|
|
FuncPrivateStaticIconType,
|
2010-07-16 11:18:29 +02:00
|
|
|
NamespaceIconType,
|
|
|
|
|
VarPublicIconType,
|
|
|
|
|
VarProtectedIconType,
|
|
|
|
|
VarPrivateIconType,
|
2014-10-30 19:43:48 +03:00
|
|
|
VarPublicStaticIconType,
|
|
|
|
|
VarProtectedStaticIconType,
|
|
|
|
|
VarPrivateStaticIconType,
|
2010-07-16 11:18:29 +02:00
|
|
|
SignalIconType,
|
|
|
|
|
SlotPublicIconType,
|
|
|
|
|
SlotProtectedIconType,
|
|
|
|
|
SlotPrivateIconType,
|
|
|
|
|
KeywordIconType,
|
|
|
|
|
MacroIconType,
|
|
|
|
|
UnknownIconType
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static IconType iconTypeForSymbol(const Symbol *symbol);
|
|
|
|
|
QIcon iconForType(IconType type) const;
|
|
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
private:
|
|
|
|
|
QIcon _classIcon;
|
2015-02-24 11:33:39 +01:00
|
|
|
QIcon _structIcon;
|
2008-12-02 12:01:29 +01:00
|
|
|
QIcon _enumIcon;
|
|
|
|
|
QIcon _enumeratorIcon;
|
|
|
|
|
QIcon _funcPublicIcon;
|
|
|
|
|
QIcon _funcProtectedIcon;
|
|
|
|
|
QIcon _funcPrivateIcon;
|
2014-10-30 19:43:48 +03:00
|
|
|
QIcon _funcPublicStaticIcon;
|
|
|
|
|
QIcon _funcProtectedStaticIcon;
|
|
|
|
|
QIcon _funcPrivateStaticIcon;
|
2008-12-02 12:01:29 +01:00
|
|
|
QIcon _namespaceIcon;
|
|
|
|
|
QIcon _varPublicIcon;
|
|
|
|
|
QIcon _varProtectedIcon;
|
|
|
|
|
QIcon _varPrivateIcon;
|
2014-10-30 19:43:48 +03:00
|
|
|
QIcon _varPublicStaticIcon;
|
|
|
|
|
QIcon _varProtectedStaticIcon;
|
|
|
|
|
QIcon _varPrivateStaticIcon;
|
2008-12-02 12:01:29 +01:00
|
|
|
QIcon _signalIcon;
|
|
|
|
|
QIcon _slotPublicIcon;
|
|
|
|
|
QIcon _slotProtectedIcon;
|
|
|
|
|
QIcon _slotPrivateIcon;
|
|
|
|
|
QIcon _keywordIcon;
|
|
|
|
|
QIcon _macroIcon;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace CPlusPlus
|
|
|
|
|
|
|
|
|
|
#endif // CPLUSPLUS_ICONS_H
|