Changeset View
Changeset View
Standalone View
Standalone View
src/core/kexipartinfo.h
1 | /* This file is part of the KDE project | 1 | /* This file is part of the KDE project | ||
---|---|---|---|---|---|
2 | Copyright (C) 2003 Lucijan Busch <lucijan@kde.org> | 2 | Copyright (C) 2003 Lucijan Busch <lucijan@kde.org> | ||
3 | Copyright (C) 2003-2015 Jarosław Staniek <staniek@kde.org> | 3 | Copyright (C) 2003-2016 Jarosław Staniek <staniek@kde.org> | ||
4 | 4 | | |||
5 | This library is free software; you can redistribute it and/or | 5 | This library is free software; you can redistribute it and/or | ||
6 | modify it under the terms of the GNU Library General Public | 6 | modify it under the terms of the GNU Library General Public | ||
7 | License as published by the Free Software Foundation; either | 7 | License as published by the Free Software Foundation; either | ||
8 | version 2 of the License, or (at your option) any later version. | 8 | version 2 of the License, or (at your option) any later version. | ||
9 | 9 | | |||
10 | This library is distributed in the hope that it will be useful, | 10 | This library is distributed in the hope that it will be useful, | ||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
Show All 10 Lines | |||||
22 | #define KEXIPARTINFO_H | 22 | #define KEXIPARTINFO_H | ||
23 | 23 | | |||
24 | #include <KPluginMetaData> | 24 | #include <KPluginMetaData> | ||
25 | 25 | | |||
26 | #include "kexi.h" | 26 | #include "kexi.h" | ||
27 | #include "KexiPluginMetaData.h" | 27 | #include "KexiPluginMetaData.h" | ||
28 | 28 | | |||
29 | class QAction; | 29 | class QAction; | ||
30 | class QIcon; | ||||
30 | class KexiProject; | 31 | class KexiProject; | ||
31 | class KexiWindow; | 32 | class KexiWindow; | ||
32 | 33 | | |||
33 | namespace KexiPart | 34 | namespace KexiPart | ||
34 | { | 35 | { | ||
35 | class Manager; | 36 | class Manager; | ||
36 | class Item; | 37 | class Item; | ||
37 | class Part; | 38 | class Part; | ||
Show All 15 Lines | 43 | public: | |||
53 | /** | 54 | /** | ||
54 | * @return a i18n'ed group name e.g. "Tables" or "Queries". | 55 | * @return a i18n'ed group name e.g. "Tables" or "Queries". | ||
55 | * | 56 | * | ||
56 | * Defined by a X-Kexi-GroupName[language] field in "kexi_*.desktop" information files. | 57 | * Defined by a X-Kexi-GroupName[language] field in "kexi_*.desktop" information files. | ||
57 | */ | 58 | */ | ||
58 | QString groupName() const; | 59 | QString groupName() const; | ||
59 | 60 | | |||
60 | /** | 61 | /** | ||
62 | * @return the icon for this plugin | ||||
63 | * Use this method instead of iconName() to get proper support for both light and dark backgrounds. | ||||
64 | */ | ||||
65 | QIcon icon() const; | ||||
66 | | ||||
67 | /** | ||||
68 | * @return the icon for this plugin ofr dark backgrounds | ||||
69 | */ | ||||
70 | QIcon darkIcon() const; | ||||
71 | | ||||
72 | /** | ||||
61 | * @return an untranslated group name e.g. "Tables" or "Queries". | 73 | * @return an untranslated group name e.g. "Tables" or "Queries". | ||
62 | * | 74 | * | ||
63 | * Defined by a X-Kexi-GroupName field in "kexi_*.desktop" information files. | 75 | * Defined by a X-Kexi-GroupName field in "kexi_*.desktop" information files. | ||
64 | * Like groupName() but always in English. | 76 | * Like groupName() but always in English. | ||
65 | */ | 77 | */ | ||
66 | QString untranslatedGroupName() const; | 78 | QString untranslatedGroupName() const; | ||
67 | 79 | | |||
68 | /** | 80 | /** | ||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |