File indexing completed on 2024-04-28 17:06:10

0001 /*
0002     SPDX-FileCopyrightText: 2005 Dirk Eschler <deschler@users.sourceforge.net>
0003     SPDX-FileCopyrightText: 2005-2022 Krusader Krew <https://krusader.org>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #ifndef KRRESULTTABLEDIALOG_H
0009 #define KRRESULTTABLEDIALOG_H
0010 
0011 // QtWidgets
0012 #include <QDialog>
0013 
0014 #include "../Konfigurator/krresulttable.h"
0015 
0016 class KrResultTableDialog : public QDialog
0017 {
0018 public:
0019     enum DialogType { Archiver = 1, Tool = 2 };
0020 
0021     KrResultTableDialog(QWidget *parent,
0022                         DialogType type,
0023                         const QString &caption,
0024                         const QString &heading,
0025                         const QString &headerIcon = QString(),
0026                         const QString &hint = QString());
0027     virtual ~KrResultTableDialog();
0028 
0029     const QString &getHeading() const
0030     {
0031         return _heading;
0032     }
0033     const QString &getHint() const
0034     {
0035         return _hint;
0036     }
0037     void setHeading(const QString &s)
0038     {
0039         _heading = s;
0040     }
0041     void setHint(const QString &s)
0042     {
0043         _hint = s;
0044     }
0045 
0046 public slots:
0047     void showHelp();
0048 
0049 protected:
0050     QString _heading;
0051     QString _hint;
0052     QString helpAnchor;
0053 
0054     KrResultTable *_resultTable;
0055 };
0056 
0057 #endif