Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
funnel_text_dialog.h
Go to the documentation of this file.
1
10#ifndef FUNNEL_TEXT_DIALOG_H
11#define FUNNEL_TEXT_DIALOG_H
12
13#include "epan/funnel.h"
15
16#include <QDialog>
17
18namespace Ui {
20}
21
24 FunnelTextDialog* funnel_text_dialog;
25};
26
28{
29 Q_OBJECT
30
31public:
32 explicit FunnelTextDialog(QWidget *parent, const QString &title = QString());
34
35 void reject();
36
37 // Funnel ops
38 static struct _funnel_text_window_t *textWindowNew(QWidget *parent, const QString title);
39 void setText(const QString text);
40 void appendText(const QString text);
41 void prependText(const QString text);
42 void clearText();
43 const char *getText();
44 void setCloseCallback(text_win_close_cb_t close_cb, void* close_cb_data);
45 void setTextEditable(bool editable);
46 void addButton(funnel_bt_t *button_cb, QString label);
47
48private slots:
49 void buttonClicked();
50 void on_findLineEdit_textChanged(const QString &pattern);
51
52private:
53 Ui::FunnelTextDialog *ui;
54
55 struct _funnel_text_window_t funnel_text_window_;
56 text_win_close_cb_t close_cb_;
57 void *close_cb_data_;
58};
59
60extern "C" {
61void text_window_set_text(funnel_text_window_t* ftw, const char* text);
62void text_window_append(funnel_text_window_t *ftw, const char* text);
63void text_window_prepend(funnel_text_window_t* ftw, const char* text);
64void text_window_clear(funnel_text_window_t *ftw);
65const char *text_window_get_text(funnel_text_window_t* ftw);
66void text_window_set_close_cb(funnel_text_window_t *ftw, text_win_close_cb_t close_cb, void* close_cb_data);
67void text_window_set_editable(funnel_text_window_t* ftw, bool editable);
68void text_window_destroy(funnel_text_window_t* ftw);
69void text_window_add_button(funnel_text_window_t* ftw, funnel_bt_t* funnel_button, const char* label);
70}
71
72
73#endif // FUNNEL_TEXT_DIALOG_H
Definition funnel_text_dialog.h:28
Definition geometry_state_dialog.h:17
Definition funnel.h:36
Definition tap-funnel.c:27