Commit 8b64581a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

continue to implement it

parent 47c8adad
......@@ -20,3 +20,4 @@ add_messageviewer_viewerplugin_external_plugin_unittest(viewerpluginexternalscri
add_messageviewer_viewerplugin_external_plugin_unittest(viewerpluginexternalscriptparseargumenttest.cpp "../viewerpluginexternalscriptparseargument.cpp" "")
add_messageviewer_viewerplugin_external_plugin_unittest(viewerpluginexternalconfigurewidgettest.cpp "../configuredialog/viewerpluginexternaleditwidget.cpp;../configuredialog/viewerpluginexternaleditdialog.cpp;../configuredialog/viewerpluginexternalconfigurewidget.cpp;../viewerpluginexternalscriptsloadjob.cpp;../viewerpluginexternalscriptinfo.cpp" "")
add_messageviewer_viewerplugin_external_plugin_unittest(viewerpluginexternalconfiguredialogtest.cpp "../configuredialog/viewerpluginexternaleditwidget.cpp;../configuredialog/viewerpluginexternaleditdialog.cpp;../configuredialog/viewerpluginexternalconfiguredialog.cpp;../configuredialog/viewerpluginexternalconfigurewidget.cpp;../viewerpluginexternalscriptsloadjob.cpp;../viewerpluginexternalscriptinfo.cpp" "")
add_messageviewer_viewerplugin_external_plugin_unittest(viewerpluginexternaleditwidgettest.cpp "../configuredialog/viewerpluginexternaleditwidget.cpp" "")
/*
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 "viewerpluginexternaleditwidgettest.h"
#include <QTest>
ViewerPluginExternalEditWidgetTest::ViewerPluginExternalEditWidgetTest(QObject *parent)
: QObject(parent)
{
}
ViewerPluginExternalEditWidgetTest::~ViewerPluginExternalEditWidgetTest()
{
}
QTEST_MAIN(ViewerPluginExternalEditWidgetTest)
/*
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 VIEWERPLUGINEXTERNALEDITWIDGETTEST_H
#define VIEWERPLUGINEXTERNALEDITWIDGETTEST_H
#include <QObject>
class ViewerPluginExternalEditWidgetTest : public QObject
{
Q_OBJECT
public:
explicit ViewerPluginExternalEditWidgetTest(QObject *parent = Q_NULLPTR);
~ViewerPluginExternalEditWidgetTest();
};
#endif // VIEWERPLUGINEXTERNALEDITWIDGETTEST_H
......@@ -19,10 +19,20 @@
#include "viewerpluginexternaleditdialog.h"
#include "viewerpluginexternaleditwidget.h"
#include <KLocalizedString>
#include <QDialogButtonBox>
#include <QVBoxLayout>
ViewerPluginExternalEditDialog::ViewerPluginExternalEditDialog(QWidget *parent)
: QDialog(parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mEditWidget = new ViewerPluginExternalEditWidget(this);
mEditWidget->setObjectName(QStringLiteral("editwidget"));
mainLayout->addWidget(mEditWidget);
}
......
......@@ -23,12 +23,15 @@
#include <QDialog>
class ViewerPluginExternalEditWidget;
class ViewerPluginExternalEditDialog : public QDialog
{
Q_OBJECT
public:
explicit ViewerPluginExternalEditDialog(QWidget *parent = Q_NULLPTR);
~ViewerPluginExternalEditDialog();
private:
ViewerPluginExternalEditWidget *mEditWidget;
};
#endif // VIEWERPLUGINEXTERNALEDITDIALOG_H
......@@ -19,11 +19,16 @@
#include "viewerpluginexternaleditwidget.h"
#include <QVBoxLayout>
#include <KLocalizedString>
#include <QLabel>
#include <QLineEdit>
ViewerPluginExternalEditWidget::ViewerPluginExternalEditWidget(QWidget *parent)
: QWidget(parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setMargin(0);
}
ViewerPluginExternalEditWidget::~ViewerPluginExternalEditWidget()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment