| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
io_console_dialog.h
Go to the documentation of this file.
1
9
10#ifndef IO_CONSOLE_DIALOG_H
11#define IO_CONSOLE_DIALOG_H
12
13#include <wireshark.h>
14
15#include <QTextEdit>
16#include <QSplitter>
17#include <QKeySequence>
18#include <QPushButton>
19#include <QSizePolicy>
20
21#include "geometry_state_dialog.h"
22#include <epan/funnel.h>
23
24 namespace Ui {
25 class IOConsoleDialog;
26}
27
31 class IOConsoleDialog : public GeometryStateDialog
32{
33 Q_OBJECT
34
35 public:
45 explicit IOConsoleDialog(QWidget &parent,
46 QString title,
47 funnel_console_eval_cb_t eval_cb,
48 funnel_console_open_cb_t open_cb,
49 funnel_console_close_cb_t close_cb,
50 void *callback_data);
51
55 ~IOConsoleDialog();
56
61 void appendOutputText(const QString &text);
62
67 void setHintText(const QString &text);
68
72 void clearHintText();
73
74 private slots:
78 void acceptInput();
79
83 void on_clearActivated(void);
84
88 void clearSuccessHint(void);
89
90 private:
92 Ui::IOConsoleDialog *ui;
93
95 funnel_console_eval_cb_t eval_cb_;
96
98 funnel_console_open_cb_t open_cb_;
99
101 funnel_console_close_cb_t close_cb_;
102
104 void *callback_data_;
105};
106
107#endif // IO_CONSOLE_DIALOG_H
GeometryStateDialog::GeometryStateDialog
GeometryStateDialog(QWidget *parent, Qt::WindowFlags f=Qt::Window)
Constructs a new GeometryStateDialog with the specified parent and window flags.
Definition geometry_state_dialog.h:91
IOConsoleDialog::clearHintText
void clearHintText()
Clears the currently displayed hint text.
Definition io_console_dialog.cpp:88
IOConsoleDialog::~IOConsoleDialog
~IOConsoleDialog()
Destroys the IOConsoleDialog.
Definition io_console_dialog.cpp:76
IOConsoleDialog::IOConsoleDialog
IOConsoleDialog(QWidget &parent, QString title, funnel_console_eval_cb_t eval_cb, funnel_console_open_cb_t open_cb, funnel_console_close_cb_t close_cb, void *callback_data)
Constructs a new IOConsoleDialog.
Definition io_console_dialog.cpp:29
IOConsoleDialog::setHintText
void setHintText(const QString &text)
Sets the hint text displayed near the input area.
Definition io_console_dialog.cpp:83
IOConsoleDialog::appendOutputText
void appendOutputText(const QString &text)
Appends text to the console's output area.
Definition io_console_dialog.cpp:132
funnel.h
funnel_console_open_cb_t
void(* funnel_console_open_cb_t)(void(*print_func)(const char *, void *), void *print_data, void *callback_data)
Definition funnel.h:396
funnel_console_eval_cb_t
int(* funnel_console_eval_cb_t)(const char *console_input, char **error_ptr, char **error_hint, void *callback_data)
Definition funnel.h:388
funnel_console_close_cb_t
void(* funnel_console_close_cb_t)(void *callback_data)
Definition funnel.h:401
geometry_state_dialog.h