summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-26 04:55:46 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-26 04:59:48 (GMT)
commitcabe6543b74a68af6fc6d4b0de4211cad6650101 (patch)
tree78c2c3e419c7a21e9ead2ccccd594981e9d6bb99
parente3e7c65909507eb0adcb21297b6b06ca6ba7247b (diff)
Start to implement configure dialog
-rw-r--r--plugins/messageviewerplugins/externalscriptplugin/CMakeLists.txt1
-rw-r--r--plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternalconfiguredialog.cpp55
-rw-r--r--plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternalconfiguredialog.h40
3 files changed, 96 insertions, 0 deletions
diff --git a/plugins/messageviewerplugins/externalscriptplugin/CMakeLists.txt b/plugins/messageviewerplugins/externalscriptplugin/CMakeLists.txt
index 02e4fb5..734b914 100644
--- a/plugins/messageviewerplugins/externalscriptplugin/CMakeLists.txt
+++ b/plugins/messageviewerplugins/externalscriptplugin/CMakeLists.txt
@@ -5,6 +5,7 @@ set(messageviewer_externalscriptplugin_SRCS
viewerpluginexternalscriptinfo.cpp
viewerpluginexternalscriptsloadjob.cpp
viewerpluginexternalscriptparseargument.cpp
+ configuredialog/viewerpluginexternalconfiguredialog.cpp
)
ecm_qt_declare_logging_category(messageviewer_externalscriptplugin_SRCS HEADER externalscriptplugin_debug.h IDENTIFIER EXTERNALSCRIPTPLUGIN_LOG CATEGORY_NAME org.kde.pim.externalscriptplugin)
diff --git a/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternalconfiguredialog.cpp b/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternalconfiguredialog.cpp
new file mode 100644
index 0000000..30cf4dd
--- /dev/null
+++ b/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternalconfiguredialog.cpp
@@ -0,0 +1,55 @@
+/*
+ Copyright (C) 2016 Montel Laurent <montel@kde.org>
+
+ 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.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; see the file COPYING. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#include "viewerpluginexternalconfiguredialog.h"
+
+ViewerPluginExternalConfigureDialog::ViewerPluginExternalConfigureDialog(QWidget *parent)
+ : PimCommon::ConfigurePluginDialog(parent)
+{
+
+}
+
+ViewerPluginExternalConfigureDialog::~ViewerPluginExternalConfigureDialog()
+{
+
+}
+
+
+QWidget *ViewerPluginExternalConfigureDialog::createLayout()
+{
+ //TODO
+ return {};
+}
+
+void ViewerPluginExternalConfigureDialog::save()
+{
+}
+
+void ViewerPluginExternalConfigureDialog::load()
+{
+}
+
+void ViewerPluginExternalConfigureDialog::reset()
+{
+}
+
+QString ViewerPluginExternalConfigureDialog::helpAnchor() const
+{
+ return {};
+}
diff --git a/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternalconfiguredialog.h b/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternalconfiguredialog.h
new file mode 100644
index 0000000..f6da475
--- /dev/null
+++ b/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternalconfiguredialog.h
@@ -0,0 +1,40 @@
+/*
+ Copyright (C) 2016 Montel Laurent <montel@kde.org>
+
+ 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.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; see the file COPYING. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#ifndef VIEWERPLUGINEXTERNALCONFIGUREDIALOG_H
+#define VIEWERPLUGINEXTERNALCONFIGUREDIALOG_H
+
+#include <PimCommon/ConfigurePluginDialog>
+
+class ViewerPluginExternalConfigureDialog : public PimCommon::ConfigurePluginDialog
+{
+ Q_OBJECT
+public:
+ explicit ViewerPluginExternalConfigureDialog(QWidget *parent = Q_NULLPTR);
+ ~ViewerPluginExternalConfigureDialog();
+
+protected:
+ QWidget *createLayout() Q_DECL_OVERRIDE;
+ void save() Q_DECL_OVERRIDE;
+ void load() Q_DECL_OVERRIDE;
+ void reset() Q_DECL_OVERRIDE;
+ QString helpAnchor() const Q_DECL_OVERRIDE;
+};
+
+#endif // VIEWERPLUGINEXTERNALCONFIGUREDIALOG_H