diff --git a/src/ConfigDocumentationPanel.cpp b/src/ConfigDocumentationPanel.cpp new file mode 100644 index 00000000..d3713148 --- /dev/null +++ b/src/ConfigDocumentationPanel.cpp @@ -0,0 +1,46 @@ +/* This file is part of the KDE project + * Copyright (C) 2019 Dag Andersen + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library 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 + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ + +// clazy:excludeall=qstring-arg +#include "ConfigDocumentationPanel.h" + +#include "calligraplansettings.h" + +#include + +using namespace KPlato; + +ConfigDocumentationPanel::ConfigDocumentationPanel(QWidget *parent) + : ConfigDocumentationPanelImpl(parent) +{ + connect(kcfg_DocumentationPath, &QLineEdit::editingFinished, this, &ConfigDocumentationPanel::slotPathChanged); +} + +void ConfigDocumentationPanel::slotPathChanged() +{ + qInfo()<text(); +} + +//----------------------------- +ConfigDocumentationPanelImpl::ConfigDocumentationPanelImpl(QWidget *p) + : QWidget(p) +{ + setupUi(this); +} + diff --git a/src/ConfigDocumentationPanel.h b/src/ConfigDocumentationPanel.h new file mode 100644 index 00000000..b82dc238 --- /dev/null +++ b/src/ConfigDocumentationPanel.h @@ -0,0 +1,52 @@ +/* This file is part of the KDE project + * Copyright (C) 2019 Dag Andersen + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library 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 + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ + +#ifndef CONFIGDOCUMENTATIONPANEL_H +#define CONFIGDOCUMENTATIONPANEL_H + +#include "plan_export.h" + +#include "ui_ConfigDocumentationPanel.h" + +#include + +namespace KPlato +{ + + +class ConfigDocumentationPanelImpl : public QWidget, public Ui::ConfigDocumentationPanel +{ + Q_OBJECT +public: + explicit ConfigDocumentationPanelImpl(QWidget *parent); +}; + +class PLAN_EXPORT ConfigDocumentationPanel : public ConfigDocumentationPanelImpl +{ + Q_OBJECT +public: + explicit ConfigDocumentationPanel( QWidget *parent=0 ); + +private Q_SLOTS: + void slotPathChanged(); +}; + +} //KPlato namespace + +#endif // CONFIGDOCUMENTATIONPANEL_H diff --git a/src/ConfigDocumentationPanel.ui b/src/ConfigDocumentationPanel.ui new file mode 100644 index 00000000..2cbe36dd --- /dev/null +++ b/src/ConfigDocumentationPanel.ui @@ -0,0 +1,125 @@ + + + KPlato::ConfigDocumentationPanel + + + + 0 + 0 + 547 + 362 + + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + + The person responsible for this task. + +This is not limited to persons available in a resource group but can be anyone. You can even directly access your address book with the Choose button. + + + Path: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + kcfg_DocumentationPath + + + + + + + Language: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + 0 + 0 + + + + The person responsible for this task. + +This is not limited to persons available in a resource group but can be anyone. You can even directly access your address book with the Choose button. + + + + + + + + + Qt::Vertical + + + + 20 + 287 + + + + + + + + + + + + KLineEdit + QLineEdit +
klineedit.h
+ 1 +
+
+ + +