Wireshark 4.7.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" {
61
68void text_window_set_text(funnel_text_window_t* ftw, const char* text);
69
76void text_window_append(funnel_text_window_t *ftw, const char* text);
83void text_window_prepend(funnel_text_window_t* ftw, const char* text);
84
91
99
107void text_window_set_close_cb(funnel_text_window_t *ftw, text_win_close_cb_t close_cb, void* close_cb_data);
108
115void text_window_set_editable(funnel_text_window_t* ftw, bool editable);
116
123
131void text_window_add_button(funnel_text_window_t* ftw, funnel_bt_t* funnel_button, const char* label);
132}
133
134
135#endif // FUNNEL_TEXT_DIALOG_H
Definition funnel_text_dialog.h:28
Definition geometry_state_dialog.h:17
void text_window_clear(funnel_text_window_t *ftw)
Clears the text in the funnel text window.
Definition funnel_text_dialog.cpp:195
void text_window_append(funnel_text_window_t *ftw, const char *text)
Append text to a funnel text window.
Definition funnel_text_dialog.cpp:181
void text_window_set_editable(funnel_text_window_t *ftw, bool editable)
Set the editable state of the text window.
Definition funnel_text_dialog.cpp:217
void text_window_prepend(funnel_text_window_t *ftw, const char *text)
Prepend text to a funnel text window.
Definition funnel_text_dialog.cpp:188
void text_window_set_close_cb(funnel_text_window_t *ftw, text_win_close_cb_t close_cb, void *close_cb_data)
Set the close callback for a funnel text window.
Definition funnel_text_dialog.cpp:210
void text_window_set_text(funnel_text_window_t *ftw, const char *text)
Set the text in a funnel text window.
Definition funnel_text_dialog.cpp:174
void text_window_add_button(funnel_text_window_t *ftw, funnel_bt_t *funnel_button, const char *label)
Adds a button to the text window.
Definition funnel_text_dialog.cpp:231
void text_window_destroy(funnel_text_window_t *ftw)
Destroys a funnel text window.
Definition funnel_text_dialog.cpp:224
const char * text_window_get_text(funnel_text_window_t *ftw)
Gets the text from a funnel text window.
Definition funnel_text_dialog.cpp:202
Definition funnel.h:34
Definition tap-funnel.c:21