#include "dialog.h"
Public Slots | |
void | dialog_button_clicked (QAbstractButton *button) |
void | filedialog_finished (const QStringList &files, const QString &path, int filterindex) |
void | handle_create_dialog (const QString &message, const QString &title, const QString &icon, const QStringList &button, const QString &defbutton, const QStringList &role) |
void | handle_create_filedialog (const QStringList &filters, const QString &title, const QString &filename, const QString &dirname, const QString &multimode) |
void | handle_create_inputlayout (const QStringList &, const QString &, const QFloatList &, const QFloatList &, const QStringList &) |
void | handle_create_listview (const QStringList &list, const QString &mode, int width, int height, const QIntList &initial, const QString &name, const QStringList &prompt, const QString &ok_string, const QString &cancel_string) |
void | input_finished (const QStringList &input, int button_pressed) |
void | list_select_finished (const QIntList &selected, int button_pressed) |
Signals | |
void | create_dialog (const QString &, const QString &, const QString &, const QStringList &, const QString &, const QStringList &) |
void | create_filedialog (const QStringList &filters, const QString &title, const QString &filename, const QString &dirname, const QString &multimode) |
void | create_inputlayout (const QStringList &, const QString &, const QFloatList &, const QFloatList &, const QStringList &) |
void | create_listview (const QStringList &, const QString &, int, int, const QIntList &, const QString &, const QStringList &, const QString &, const QString &) |
Public Member Functions | |
QUIWidgetCreator (base_qobject &oct_qobj) | |
~QUIWidgetCreator (void)=default | |
QStringList | file_dialog (const QStringList &filters, const QString &title, const QString &filename, const QString &dirname, const QString &multimode) |
QString | get_dialog_button (void) |
QString | get_dialog_path (void) const |
int | get_dialog_result (void) |
QIntList | get_list_index (void) const |
QStringList | get_string_list (void) const |
QStringList | input_dialog (const QStringList &prompt, const QString &title, const QFloatList &nr, const QFloatList &nc, const QStringList &defaults) |
QPair< QIntList, int > | list_dialog (const QStringList &list, const QString &mode, int wd, int ht, const QList< int > &initial, const QString &name, const QStringList &prompt, const QString &ok_string, const QString &cancel_string) |
void | lock (void) |
QString | message_dialog (const QString &message, const QString &title, const QString &icon, const QStringList &button, const QString &defbutton, const QStringList &role) |
QString | rm_amp (const QString &text) |
void | unlock (void) |
void | wait (void) |
void | wake_all (void) |
Private Attributes | |
QStringList | m_button_list |
QString | m_dialog_button |
int | m_dialog_result |
QIntList | m_list_index |
QMutex | m_mutex |
base_qobject & | m_octave_qobj |
QString | m_path_name |
QStringList | m_string_list |
QWaitCondition | m_waitcondition |
octave::QUIWidgetCreator::QUIWidgetCreator | ( | base_qobject & | oct_qobj | ) |
Definition at line 50 of file dialog.cc.
References create_dialog(), create_filedialog(), create_inputlayout(), create_listview(), handle_create_dialog(), handle_create_filedialog(), handle_create_inputlayout(), and handle_create_listview().
|
default |
|
signal |
Referenced by QUIWidgetCreator(), and message_dialog().
|
signal |
Referenced by QUIWidgetCreator(), and file_dialog().
|
signal |
Referenced by QUIWidgetCreator(), and input_dialog().
|
signal |
Referenced by QUIWidgetCreator(), and list_dialog().
|
slot |
Definition at line 221 of file dialog.cc.
References m_button_list, m_dialog_button, m_dialog_result, rm_amp(), and wake_all().
Referenced by handle_create_dialog().
QStringList octave::QUIWidgetCreator::file_dialog | ( | const QStringList & | filters, |
const QString & | title, | ||
const QString & | filename, | ||
const QString & | dirname, | ||
const QString & | multimode | ||
) |
Definition at line 180 of file dialog.cc.
References create_filedialog(), octave::sys::file_ops::dirname(), m_dialog_result, m_mutex, m_path_name, m_string_list, retval, and wait().
Referenced by handle_create_filedialog().
|
slot |
Definition at line 335 of file dialog.cc.
References m_dialog_result, m_path_name, m_string_list, path, and wake_all().
Referenced by handle_create_filedialog().
|
inline |
Definition at line 69 of file dialog.h.
References m_dialog_button.
|
inline |
Definition at line 92 of file dialog.h.
References m_path_name.
|
inline |
Definition at line 67 of file dialog.h.
References m_dialog_result.
|
inline |
Definition at line 80 of file dialog.h.
References m_list_index.
|
inline |
Definition at line 86 of file dialog.h.
References m_string_list.
|
slot |
Definition at line 203 of file dialog.cc.
References dialog_button_clicked(), m_octave_qobj, message(), and message_dialog().
Referenced by QUIWidgetCreator().
|
slot |
Definition at line 316 of file dialog.cc.
References octave::sys::file_ops::dirname(), file_dialog(), filedialog_finished(), and m_octave_qobj.
Referenced by QUIWidgetCreator().
|
slot |
Definition at line 288 of file dialog.cc.
References input_dialog(), input_finished(), and m_octave_qobj.
Referenced by QUIWidgetCreator().
|
slot |
Definition at line 253 of file dialog.cc.
References list_dialog(), list_select_finished(), m_octave_qobj, and name.
Referenced by QUIWidgetCreator().
QStringList octave::QUIWidgetCreator::input_dialog | ( | const QStringList & | prompt, |
const QString & | title, | ||
const QFloatList & | nr, | ||
const QFloatList & | nc, | ||
const QStringList & | defaults | ||
) |
Definition at line 160 of file dialog.cc.
References create_inputlayout(), m_mutex, m_string_list, and wait().
Referenced by handle_create_inputlayout().
|
slot |
Definition at line 304 of file dialog.cc.
References input(), m_dialog_result, m_string_list, and wake_all().
Referenced by handle_create_inputlayout().
QPair< QIntList, int > octave::QUIWidgetCreator::list_dialog | ( | const QStringList & | list, |
const QString & | mode, | ||
int | wd, | ||
int | ht, | ||
const QList< int > & | initial, | ||
const QString & | name, | ||
const QStringList & | prompt, | ||
const QString & | ok_string, | ||
const QString & | cancel_string | ||
) |
Definition at line 135 of file dialog.cc.
References create_listview(), m_dialog_result, m_list_index, m_mutex, name, and wait().
Referenced by handle_create_listview().
|
slot |
Definition at line 273 of file dialog.cc.
References m_dialog_result, m_list_index, and wake_all().
Referenced by handle_create_listview().
|
inline |
QString octave::QUIWidgetCreator::message_dialog | ( | const QString & | message, |
const QString & | title, | ||
const QString & | icon, | ||
const QStringList & | button, | ||
const QString & | defbutton, | ||
const QStringList & | role | ||
) |
Definition at line 102 of file dialog.cc.
References create_dialog(), m_button_list, m_dialog_button, m_mutex, message(), and wait().
Referenced by handle_create_dialog().
QString octave::QUIWidgetCreator::rm_amp | ( | const QString & | text | ) |
Definition at line 95 of file dialog.cc.
Referenced by dialog_button_clicked().
|
inline |
|
inline |
Definition at line 95 of file dialog.h.
References m_mutex, and m_waitcondition.
Referenced by file_dialog(), input_dialog(), list_dialog(), and message_dialog().
|
inline |
Definition at line 97 of file dialog.h.
References m_waitcondition.
Referenced by dialog_button_clicked(), filedialog_finished(), input_finished(), and list_select_finished().
|
private |
Definition at line 157 of file dialog.h.
Referenced by dialog_button_clicked(), and message_dialog().
|
private |
Definition at line 154 of file dialog.h.
Referenced by dialog_button_clicked(), get_dialog_button(), and message_dialog().
|
private |
Definition at line 153 of file dialog.h.
Referenced by dialog_button_clicked(), file_dialog(), filedialog_finished(), get_dialog_result(), input_finished(), list_dialog(), and list_select_finished().
|
private |
Definition at line 162 of file dialog.h.
Referenced by get_list_index(), list_dialog(), and list_select_finished().
|
private |
Definition at line 169 of file dialog.h.
Referenced by file_dialog(), input_dialog(), list_dialog(), lock(), message_dialog(), unlock(), and wait().
|
private |
Definition at line 151 of file dialog.h.
Referenced by handle_create_dialog(), handle_create_filedialog(), handle_create_inputlayout(), and handle_create_listview().
|
private |
Definition at line 164 of file dialog.h.
Referenced by file_dialog(), filedialog_finished(), and get_dialog_path().
|
private |
Definition at line 161 of file dialog.h.
Referenced by file_dialog(), filedialog_finished(), get_string_list(), input_dialog(), and input_finished().
|
private |
Definition at line 170 of file dialog.h.
Referenced by wait(), and wake_all().