summaryrefslogtreecommitdiffstats
path: root/ui/qt/capture_comment_dialog.h
blob: 5e7cb2b3fd44f54f84b014c4bfcec2453583b028 (plain)
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
/** @file
 *
 * Wireshark - Network traffic analyzer
 * By Gerald Combs <gerald@wireshark.org>
 * Copyright 1998 Gerald Combs
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef CAPTURE_COMMENT_DIALOG_H
#define CAPTURE_COMMENT_DIALOG_H

#include "wireshark_dialog.h"

namespace Ui {
class CaptureCommentDialog;
}

class CaptureCommentDialog : public WiresharkDialog
{
    Q_OBJECT

public:
    explicit CaptureCommentDialog(QWidget &parent, CaptureFile &capture_file);
    ~CaptureCommentDialog();

signals:
    void captureCommentChanged();

private slots:
    void addComment();
    void updateWidgets();
    void on_buttonBox_helpRequested();
    void on_buttonBox_accepted();
    void on_buttonBox_rejected();

private:
    QPushButton *actionAddButton;
    Ui::CaptureCommentDialog *ui;
};

#endif // CAPTURE_COMMENT_DIALOG_H