[rkward/work/kateintegration] rkward/windows: WIP: Kate plugin integration
Thomas Friedrichsmeier
null at kde.org
Sun Apr 22 09:22:21 UTC 2018
Git commit b9644b5505c46aecd41506120fb20208db83f0ff by Thomas Friedrichsmeier.
Committed on 04/04/2018 at 09:00.
Pushed by tfry into branch 'work/kateintegration'.
WIP: Kate plugin integration
A +37 -0 rkward/windows/katepluginintegration.cpp [License: GPL (v2+)]
A +34 -0 rkward/windows/katepluginintegration.h [License: GPL (v2+)]
https://commits.kde.org/rkward/b9644b5505c46aecd41506120fb20208db83f0ff
diff --git a/rkward/windows/katepluginintegration.cpp b/rkward/windows/katepluginintegration.cpp
new file mode 100644
index 00000000..22b1561f
--- /dev/null
+++ b/rkward/windows/katepluginintegration.cpp
@@ -0,0 +1,37 @@
+/***************************************************************************
+ katepluginintegration - description
+ -------------------
+ begin : Mon Jun 12 2017
+ copyright : (C) 2017 by Thomas Friedrichsmeier
+ email : thomas.friedrichsmeier at kdemail.net
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#include "katepluginintegration.h"
+
+#include "../debug.h"
+
+#include <QWidget>
+
+KatePluginIntegration::KatePluginIntegration (QObject *parent) : QObject (parent) {
+ RK_TRACE (APP);
+ RKDebug (APP, DL_ERROR, "ctor");
+
+ main = new KTextEditor::MainWindow (this);
+}
+
+QWidget * KatePluginIntegration::createToolView (KTextEditor::Plugin *plugin, const QString &identifier, KTextEditor::MainWindow::ToolViewPosition pos, const QIcon &icon, const QString &text) {
+ RK_TRACE (APP);
+ RKDebug (APP, DL_ERROR, "createToolView");
+
+ return new QWidget ();
+}
+
diff --git a/rkward/windows/katepluginintegration.h b/rkward/windows/katepluginintegration.h
new file mode 100644
index 00000000..1d5b2c43
--- /dev/null
+++ b/rkward/windows/katepluginintegration.h
@@ -0,0 +1,34 @@
+/***************************************************************************
+ katepluginintegration - description
+ -------------------
+ begin : Mon Jun 12 2017
+ copyright : (C) 2017 by Thomas Friedrichsmeier
+ email : thomas.friedrichsmeier at kdemail.net
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef KATEPLUGININTEGRATION_H
+#define KATEPLUGININTEGRATION_H
+
+#include <ktexteditor/mainwindow.h>
+
+class KatePluginIntegration : public QObject {
+Q_OBJECT
+public:
+ KatePluginIntegration (QObject *parent);
+ KTextEditor::MainWindow *mainWindow () const { return main; };
+public slots:
+ QWidget *createToolView (KTextEditor::Plugin *plugin, const QString &identifier, KTextEditor::MainWindow::ToolViewPosition pos, const QIcon &icon, const QString &text);
+private:
+ KTextEditor::MainWindow *main;
+};
+
+#endif
\ No newline at end of file
More information about the rkward-tracker
mailing list