2014-01-02 17:04:10 +00:00
|
|
|
/* about_dialog.h
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2017-11-22 15:54:32 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2014-01-02 17:04:10 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ABOUT_DIALOG_H
|
|
|
|
#define ABOUT_DIALOG_H
|
|
|
|
|
2017-11-22 15:54:32 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <ui/qt/models/astringlist_list_model.h>
|
|
|
|
|
2014-01-02 17:04:10 +00:00
|
|
|
#include <QDialog>
|
2017-11-22 15:54:32 +00:00
|
|
|
#include <QAbstractItemModel>
|
|
|
|
#include <QModelIndex>
|
|
|
|
#include <QHash>
|
|
|
|
#include <QString>
|
|
|
|
#include <QSortFilterProxyModel>
|
2014-01-02 17:04:10 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class AboutDialog;
|
|
|
|
}
|
|
|
|
|
2017-11-22 15:54:32 +00:00
|
|
|
class AuthorListModel : public AStringListListModel
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit AuthorListModel(QObject * parent = Q_NULLPTR);
|
|
|
|
virtual ~AuthorListModel();
|
|
|
|
|
|
|
|
QString acknowledgment() const;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual QStringList headerColumns() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString acknowledgement_;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
class PluginListModel : public AStringListListModel
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit PluginListModel(QObject * parent = Q_NULLPTR);
|
|
|
|
|
|
|
|
QStringList typeNames() const;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual QStringList headerColumns() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QStringList typeNames_;
|
|
|
|
};
|
|
|
|
|
|
|
|
class ShortcutListModel : public AStringListListModel
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit ShortcutListModel(QObject * parent = Q_NULLPTR);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual QStringList headerColumns() const;
|
|
|
|
};
|
|
|
|
|
|
|
|
class FolderListModel : public AStringListListModel
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit FolderListModel(QObject * parent = Q_NULLPTR);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual QStringList headerColumns() const;
|
|
|
|
};
|
|
|
|
|
2014-01-02 17:04:10 +00:00
|
|
|
class AboutDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit AboutDialog(QWidget *parent = 0);
|
|
|
|
~AboutDialog();
|
|
|
|
|
2017-11-22 15:54:32 +00:00
|
|
|
protected:
|
|
|
|
virtual void resizeEvent(QResizeEvent *);
|
2016-10-31 11:37:14 +00:00
|
|
|
|
2014-01-02 17:04:10 +00:00
|
|
|
private:
|
|
|
|
Ui::AboutDialog *ui;
|
2017-11-24 10:14:23 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void urlClicked(const QModelIndex &);
|
|
|
|
void handleCopyMenu(QPoint);
|
2017-11-24 14:46:30 +00:00
|
|
|
void copyActionTriggered(bool row = false);
|
|
|
|
void copyRowActionTriggered();
|
2017-11-24 10:14:23 +00:00
|
|
|
|
2014-01-02 17:04:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ABOUT_DIALOG_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Editor modelines
|
|
|
|
*
|
|
|
|
* Local Variables:
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
* ex: set shiftwidth=4 tabstop=8 expandtab:
|
|
|
|
* :indentSize=4:tabSize=8:noTabs=true:
|
|
|
|
*/
|