From e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 10 Apr 2024 22:34:10 +0200 Subject: Adding upstream version 4.2.2. Signed-off-by: Daniel Baumann --- ui/qt/about_dialog.h | 105 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 ui/qt/about_dialog.h (limited to 'ui/qt/about_dialog.h') diff --git a/ui/qt/about_dialog.h b/ui/qt/about_dialog.h new file mode 100644 index 0000000..ea5cfdd --- /dev/null +++ b/ui/qt/about_dialog.h @@ -0,0 +1,105 @@ +/** @file + * + * Wireshark - Network traffic analyzer + * By Gerald Combs + * Copyright 1998 Gerald Combs + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#ifndef ABOUT_DIALOG_H +#define ABOUT_DIALOG_H + +#include "config.h" + +#include + +#include +#include +#include +#include +#include +#include + +namespace Ui { +class AboutDialog; +} + +class AuthorListModel : public AStringListListModel +{ +Q_OBJECT + +public: + explicit AuthorListModel(QObject * parent = Q_NULLPTR); + virtual ~AuthorListModel(); + +protected: + virtual QStringList headerColumns() const; + +}; + +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; +}; + +class AboutDialog : public QDialog +{ + Q_OBJECT + +public: + explicit AboutDialog(QWidget *parent = 0); + ~AboutDialog(); + +protected: + virtual bool event(QEvent *event); + virtual void showEvent(QShowEvent *); + +private: + void updateWiresharkText(); + + Ui::AboutDialog *ui; + QString script_pattern; + QString clipboardInfo; + +private slots: + void urlDoubleClicked(const QModelIndex &); + void handleCopyMenu(QPoint); + void showInFolderActionTriggered(); + void copyActionTriggered(bool row = false); + void copyRowActionTriggered(); + void on_tblPlugins_doubleClicked(const QModelIndex &index); + void on_copyToClipboard_clicked(); +}; + +#endif // ABOUT_DIALOG_H -- cgit v1.2.3