1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
/* ============================================================
*
* This file is a part of KDE project
*
*
* Date : 2006-14-09
* Description : Kipi-Plugins shared library.
*
* Copyright (C) 2006-2010 by Angelo Naselli <anaselli at linux dot it>
* Copyright (C) 2010-2018 by Gilles Caulier <caulier dot gilles at gmail dot com>
*
* 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, 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.
*
* ============================================================ */
#ifndef KPABOUTDATA_H
#define KPABOUTDATA_H
// Qt includes
#include <QObject>
#include <QList>
#include <QStringList>
// KDE includes
#include <klocalizedstring.h>
// Local includes
#include "kipiplugins_export.h"
class QPushButton;
namespace KIPIPlugins
{
class KIPIPLUGINS_EXPORT KPAboutData : public QObject
{
Q_OBJECT
public:
explicit KPAboutData(const KLocalizedString& tool,
const KLocalizedString& description = KLocalizedString(),
const KLocalizedString& copyright = ki18n("Copyright 2003-2016, KDE developers team"));
KPAboutData(const KPAboutData& other);
virtual ~KPAboutData();
void setHandbookEntry(const QString& entry);
void setHelpButton(QPushButton* const help);
void addAuthor(const QString& name, const QString& role, const QString& email);
private Q_SLOTS:
void slotHelp();
void slotAbout();
private:
QString m_tool;
QString m_description;
QString m_copyright;
QString m_handbookEntry;
QStringList m_authors;
};
} // namespace KIPIPlugins
#endif // KPABOUTDATA_H
|