Changeset View
Changeset View
Standalone View
Standalone View
utils/okteta/oktetaplugin.h
Show All 17 Lines | 1 | /* | |||
---|---|---|---|---|---|
18 | 18 | | |||
19 | You should have received a copy of the GNU Lesser General Public | 19 | You should have received a copy of the GNU Lesser General Public | ||
20 | License along with this library. If not, see <http://www.gnu.org/licenses/>. | 20 | License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
21 | */ | 21 | */ | ||
22 | 22 | | |||
23 | #ifndef OKTETAPLUGIN_H | 23 | #ifndef OKTETAPLUGIN_H | ||
24 | #define OKTETAPLUGIN_H | 24 | #define OKTETAPLUGIN_H | ||
25 | 25 | | |||
26 | // Plugin | | |||
27 | #include "oktetaglobal.h" | | |||
28 | // KDev | 26 | // KDev | ||
29 | #include <interfaces/iplugin.h> | 27 | #include <interfaces/iplugin.h> | ||
30 | // Qt | 28 | // Qt | ||
31 | #include <QtCore/QVariantList> | 29 | #include <QtCore/QVariantList> | ||
32 | 30 | | |||
33 | class QUrl; | 31 | class QUrl; | ||
34 | 32 | | |||
35 | namespace KASTEN_NAMESPACE | 33 | namespace Kasten | ||
36 | { | 34 | { | ||
37 | class ByteArrayViewProfileManager; | 35 | class ByteArrayViewProfileManager; | ||
38 | } | 36 | } | ||
39 | 37 | | |||
40 | namespace KDevelop | 38 | namespace KDevelop | ||
41 | { | 39 | { | ||
42 | class OktetaDocumentFactory; | 40 | class OktetaDocumentFactory; | ||
43 | 41 | | |||
44 | 42 | | |||
45 | class OktetaPlugin: public IPlugin | 43 | class OktetaPlugin: public IPlugin | ||
46 | { | 44 | { | ||
47 | Q_OBJECT | 45 | Q_OBJECT | ||
48 | 46 | | |||
49 | public: | 47 | public: | ||
50 | explicit OktetaPlugin( QObject* parent, const QVariantList& args = QVariantList() ); | 48 | explicit OktetaPlugin( QObject* parent, const QVariantList& args = QVariantList() ); | ||
51 | 49 | | |||
52 | virtual ~OktetaPlugin(); | 50 | virtual ~OktetaPlugin(); | ||
53 | 51 | | |||
54 | public: // KDevelop::IPlugin API | 52 | public: // KDevelop::IPlugin API | ||
55 | virtual ContextMenuExtension contextMenuExtension( Context* context ); | 53 | virtual ContextMenuExtension contextMenuExtension( Context* context ); | ||
56 | 54 | | |||
57 | #if KASTEN_VERSION == 2 | | |||
58 | public: | 55 | public: | ||
59 | Kasten::ByteArrayViewProfileManager* viewProfileManager() const { return mViewProfileManager; } | 56 | Kasten::ByteArrayViewProfileManager* viewProfileManager() const { return mViewProfileManager; } | ||
60 | #endif | | |||
61 | 57 | | |||
62 | private Q_SLOTS: | 58 | private Q_SLOTS: | ||
63 | void onOpenTriggered(); | 59 | void onOpenTriggered(); | ||
64 | 60 | | |||
65 | protected: | 61 | protected: | ||
66 | OktetaDocumentFactory* mDocumentFactory; | 62 | OktetaDocumentFactory* mDocumentFactory; | ||
67 | #if KASTEN_VERSION == 2 | | |||
68 | Kasten::ByteArrayViewProfileManager* const mViewProfileManager; | 63 | Kasten::ByteArrayViewProfileManager* const mViewProfileManager; | ||
69 | #endif | | |||
70 | }; | 64 | }; | ||
71 | 65 | | |||
72 | } | 66 | } | ||
73 | | ||||
74 | #endif | 67 | #endif |