File indexing completed on 2024-03-03 04:08:03

0001 /*
0002     This file is part of the KDE libraries
0003     SPDX-FileCopyrightText: 2019 Friedrich W. H. Kossebau <kossebau@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-only
0006 */
0007 
0008 #ifndef KABSTRACTABOUTDIALOG_P_H
0009 #define KABSTRACTABOUTDIALOG_P_H
0010 
0011 #include <KAboutData>
0012 
0013 class QDialog;
0014 class QWidget;
0015 class QIcon;
0016 
0017 /**
0018  * @internal
0019  *
0020  * Private base class implementing util methods for assembling an About dialog.
0021  */
0022 class KAbstractAboutDialogPrivate
0023 {
0024 public:
0025     KAbstractAboutDialogPrivate() = default;
0026     ~KAbstractAboutDialogPrivate() = default;
0027 
0028 public:
0029     QWidget *createTitleWidget(const QIcon &icon, const QString &displayName, const QString &version, QWidget *parent);
0030     QWidget *createAboutWidget(const QString &shortDescription,
0031                                const QString &otherText,
0032                                const QString &copyrightStatement,
0033                                const QString &homepage,
0034                                const QList<KAboutLicense> &licenses,
0035                                QWidget *parent);
0036     QWidget *createComponentWidget(const QList<KAboutComponent> &components, QWidget *parent);
0037     QWidget *createAuthorsWidget(const QList<KAboutPerson> &authors,
0038                                  bool customAuthorTextEnabled,
0039                                  const QString &customAuthorRichText,
0040                                  const QString &bugAddress,
0041                                  QWidget *parent);
0042     QWidget *createCreditWidget(const QList<KAboutPerson> &credits, QWidget *parent);
0043     QWidget *createTranslatorsWidget(const QList<KAboutPerson> &translators, QWidget *parent);
0044     void createForm(QWidget *titleWidget, QWidget *tabWidget, QDialog *dialog);
0045 };
0046 
0047 #endif