Wireshark  4.3.0
The Wireshark network protocol analyzer
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 <glib.h>
14 
15 #include "epan/funnel.h"
16 #include "geometry_state_dialog.h"
17 
18 #include <QDialog>
19 
20 namespace Ui {
21 class FunnelTextDialog;
22 }
23 
24 class FunnelTextDialog;
25 struct _funnel_text_window_t {
26  FunnelTextDialog* funnel_text_dialog;
27 };
28 
30 {
31  Q_OBJECT
32 
33 public:
34  explicit FunnelTextDialog(QWidget *parent, const QString &title = QString());
36 
37  void reject();
38 
39  // Funnel ops
40  static struct _funnel_text_window_t *textWindowNew(QWidget *parent, const QString title);
41  void setText(const QString text);
42  void appendText(const QString text);
43  void prependText(const QString text);
44  void clearText();
45  const char *getText();
46  void setCloseCallback(text_win_close_cb_t close_cb, void* close_cb_data);
47  void setTextEditable(gboolean editable);
48  void addButton(funnel_bt_t *button_cb, QString label);
49 
50 private slots:
51  void buttonClicked();
52  void on_findLineEdit_textChanged(const QString &pattern);
53 
54 private:
55  Ui::FunnelTextDialog *ui;
56 
57  struct _funnel_text_window_t funnel_text_window_;
58  text_win_close_cb_t close_cb_;
59  void *close_cb_data_;
60 };
61 
62 extern "C" {
63 void text_window_set_text(funnel_text_window_t* ftw, const char* text);
64 void text_window_append(funnel_text_window_t *ftw, const char* text);
65 void text_window_prepend(funnel_text_window_t* ftw, const char* text);
66 void text_window_clear(funnel_text_window_t *ftw);
67 const char *text_window_get_text(funnel_text_window_t* ftw);
68 void text_window_set_close_cb(funnel_text_window_t *ftw, text_win_close_cb_t close_cb, void* close_cb_data);
69 void text_window_set_editable(funnel_text_window_t* ftw, gboolean editable);
70 void text_window_destroy(funnel_text_window_t* ftw);
71 void text_window_add_button(funnel_text_window_t* ftw, funnel_bt_t* funnel_button, const char* label);
72 }
73 
74 
75 #endif // FUNNEL_TEXT_DIALOG_H
Definition: funnel_text_dialog.h:30
Definition: geometry_state_dialog.h:16
Definition: funnel.h:36
Definition: tap-funnel.c:27