Changeset View
Changeset View
Standalone View
Standalone View
src/core/kexipartbase.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-2014 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 KEXIPARTBASE_H | 22 | #define KEXIPARTBASE_H | ||
23 | 23 | | |||
24 | #include <kexiutils/InternalPropertyMap.h> | 24 | #include <kexiutils/InternalPropertyMap.h> | ||
25 | #include "kexi.h" | 25 | #include "kexi.h" | ||
26 | 26 | | |||
27 | #include <KLocalizedString> | 27 | #include <KLocalizedString> | ||
28 | #include <KPluginFactory> | 28 | #include <KPluginFactory> | ||
29 | 29 | | |||
30 | class QTabWidget; | | |||
31 | class KexiWindow; | 30 | class KexiWindow; | ||
31 | class KexiPropertyPaneWidget; | ||||
32 | 32 | | |||
33 | namespace KexiPart | 33 | namespace KexiPart | ||
34 | { | 34 | { | ||
35 | class Info; | 35 | class Info; | ||
36 | 36 | | |||
37 | //! @short The base class for Kexi frontend parts (plugins) | 37 | //! @short The base class for Kexi frontend parts (plugins) | ||
38 | //! @see KexiPart::Part KexiInternalPart | 38 | //! @see KexiPart::Part KexiInternalPart | ||
39 | class KEXICORE_EXPORT PartBase : public QObject, protected KexiUtils::InternalPropertyMap | 39 | class KEXICORE_EXPORT PartBase : public QObject, protected KexiUtils::InternalPropertyMap | ||
Show All 31 Lines | 69 | @code | |||
71 | QString translated | 71 | QString translated | ||
72 | = part->i18nMessage("Design of object <resource>%1</resource> has been modified.") | 72 | = part->i18nMessage("Design of object <resource>%1</resource> has been modified.") | ||
73 | .subs(tableName).toString(); | 73 | .subs(tableName).toString(); | ||
74 | @endcode */ | 74 | @endcode */ | ||
75 | virtual KLocalizedString i18nMessage(const QString& englishMessage, | 75 | virtual KLocalizedString i18nMessage(const QString& englishMessage, | ||
76 | KexiWindow *window) const; | 76 | KexiWindow *window) const; | ||
77 | 77 | | |||
78 | /*! @internal | 78 | /*! @internal | ||
79 | This method can be reimplemented to setup additional tabs | 79 | This method can be reimplemented to setup additional property pane items. | ||
80 | in the property editor panel. Default implementation does nothing. | 80 | Default implementation does nothing. | ||
81 | This method is called whenever current window (KexiWindow) is switched and | 81 | This method is called whenever current window (KexiWindow) is switched and | ||
82 | type (mime type) of its contents differs from previous one. | 82 | type (mime type) of its contents differs from the previous one. | ||
83 | For example, if a user switched from Table Designer to Form Designer, | 83 | For example, if a user switched from Table Designer to Form Designer, | ||
84 | additional tab containing Form Designer's object tree should be shown. */ | 84 | additional item containing Form Designer's object tree should be added. */ | ||
85 | virtual void setupCustomPropertyPanelTabs(QTabWidget *tab); | 85 | virtual void setupPropertyPane(KexiPropertyPaneWidget *pane); | ||
86 | 86 | | |||
87 | protected: | 87 | protected: | ||
88 | /*! | 88 | /*! | ||
89 | Creates new Plugin | 89 | Creates new Plugin | ||
90 | @param parent parent of this plugin | 90 | @param parent parent of this plugin | ||
91 | @param list extra arguments passed to the plugin | 91 | @param list extra arguments passed to the plugin | ||
92 | */ | 92 | */ | ||
93 | PartBase(QObject *parent, | 93 | PartBase(QObject *parent, | ||
Show All 16 Lines |