10#ifndef FUNNEL_TEXT_DIALOG_H
11#define FUNNEL_TEXT_DIALOG_H
19class FunnelTextDialog;
24 FunnelTextDialog* funnel_text_dialog;
41 explicit FunnelTextDialog(QWidget *parent,
const QString &title = QString());
60 void setText(
const QString text);
101 void on_findLineEdit_textChanged(
const QString &pattern);
105 Ui::FunnelTextDialog *ui;
108 text_win_close_cb_t close_cb_;
109 void *close_cb_data_;
A dialog displaying text output from a Lua funnel script.
Definition funnel_text_dialog.h:34
void reject() override
Handle dialog rejection, invoking the close callback if set.
Definition funnel_text_dialog.cpp:53
void setText(const QString text)
Replace the dialog's text content.
Definition funnel_text_dialog.cpp:84
void setTextEditable(bool editable)
Set whether the text area is editable by the user.
Definition funnel_text_dialog.cpp:117
~FunnelTextDialog()
Destroy the FunnelTextDialog.
Definition funnel_text_dialog.cpp:48
void clearText()
Clear all text from the dialog.
Definition funnel_text_dialog.cpp:101
static struct _funnel_text_window_t * textWindowNew(QWidget *parent, const QString title)
Create a new funnel text window.
Definition funnel_text_dialog.cpp:77
FunnelTextDialog(QWidget *parent, const QString &title=QString())
Construct a FunnelTextDialog.
Definition funnel_text_dialog.cpp:29
void prependText(const QString text)
Prepend text to the beginning of the dialog's content.
Definition funnel_text_dialog.cpp:95
const char * getText()
Return the current text content as a C string.
Definition funnel_text_dialog.cpp:106
void addButton(funnel_bt_t *button_cb, QString label)
Add a script-defined button to the dialog.
Definition funnel_text_dialog.cpp:122
void appendText(const QString text)
Append text to the end of the dialog's content.
Definition funnel_text_dialog.cpp:89
void setCloseCallback(text_win_close_cb_t close_cb, void *close_cb_data)
Set the callback to invoke when the dialog is closed.
Definition funnel_text_dialog.cpp:111
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
struct _funnel_bt_t funnel_bt_t
Represents a button attached to a funnel text window, bundling its callback, data,...
void text_window_clear(funnel_text_window_t *ftw)
Clears the text in the funnel text window.
Definition funnel_text_dialog.cpp:196
void text_window_append(funnel_text_window_t *ftw, const char *text)
Append text to a funnel text window.
Definition funnel_text_dialog.cpp:182
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:218
void text_window_prepend(funnel_text_window_t *ftw, const char *text)
Prepend text to a funnel text window.
Definition funnel_text_dialog.cpp:189
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:211
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:175
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:232
void text_window_destroy(funnel_text_window_t *ftw)
Destroys a funnel text window.
Definition funnel_text_dialog.cpp:225
const char * text_window_get_text(funnel_text_window_t *ftw)
Gets the text from a funnel text window.
Definition funnel_text_dialog.cpp:203
Definition tap-funnel.c:21