GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::QUIWidgetCreator Class Reference

#include "dialog.h"

Inheritance diagram for octave::QUIWidgetCreator:
Collaboration diagram for octave::QUIWidgetCreator:

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_qobjectm_octave_qobj
 
QString m_path_name
 
QStringList m_string_list
 
QWaitCondition m_waitcondition
 

Detailed Description

Definition at line 49 of file dialog.h.

Constructor & Destructor Documentation

◆ QUIWidgetCreator()

◆ ~QUIWidgetCreator()

octave::QUIWidgetCreator::~QUIWidgetCreator ( void  )
default

Member Function Documentation

◆ create_dialog

void octave::QUIWidgetCreator::create_dialog ( const QString &  ,
const QString &  ,
const QString &  ,
const QStringList &  ,
const QString &  ,
const QStringList &   
)
signal

Referenced by QUIWidgetCreator(), and message_dialog().

◆ create_filedialog

void octave::QUIWidgetCreator::create_filedialog ( const QStringList &  filters,
const QString &  title,
const QString &  filename,
const QString &  dirname,
const QString &  multimode 
)
signal

Referenced by QUIWidgetCreator(), and file_dialog().

◆ create_inputlayout

void octave::QUIWidgetCreator::create_inputlayout ( const QStringList &  ,
const QString &  ,
const QFloatList ,
const QFloatList ,
const QStringList &   
)
signal

Referenced by QUIWidgetCreator(), and input_dialog().

◆ create_listview

void octave::QUIWidgetCreator::create_listview ( const QStringList &  ,
const QString &  ,
int  ,
int  ,
const QIntList ,
const QString &  ,
const QStringList &  ,
const QString &  ,
const QString &   
)
signal

Referenced by QUIWidgetCreator(), and list_dialog().

◆ dialog_button_clicked

void octave::QUIWidgetCreator::dialog_button_clicked ( QAbstractButton *  button)
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().

◆ file_dialog()

QStringList octave::QUIWidgetCreator::file_dialog ( const QStringList &  filters,
const QString &  title,
const QString &  filename,
const QString &  dirname,
const QString &  multimode 
)

◆ filedialog_finished

void octave::QUIWidgetCreator::filedialog_finished ( const QStringList &  files,
const QString &  path,
int  filterindex 
)
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().

◆ get_dialog_button()

QString octave::QUIWidgetCreator::get_dialog_button ( void  )
inline

Definition at line 69 of file dialog.h.

References m_dialog_button.

◆ get_dialog_path()

QString octave::QUIWidgetCreator::get_dialog_path ( void  ) const
inline

Definition at line 92 of file dialog.h.

References m_path_name.

◆ get_dialog_result()

int octave::QUIWidgetCreator::get_dialog_result ( void  )
inline

Definition at line 67 of file dialog.h.

References m_dialog_result.

◆ get_list_index()

QIntList octave::QUIWidgetCreator::get_list_index ( void  ) const
inline

Definition at line 80 of file dialog.h.

References m_list_index.

◆ get_string_list()

QStringList octave::QUIWidgetCreator::get_string_list ( void  ) const
inline

Definition at line 86 of file dialog.h.

References m_string_list.

◆ handle_create_dialog

void octave::QUIWidgetCreator::handle_create_dialog ( const QString &  message,
const QString &  title,
const QString &  icon,
const QStringList &  button,
const QString &  defbutton,
const QStringList &  role 
)
slot

Definition at line 203 of file dialog.cc.

References dialog_button_clicked(), m_octave_qobj, message(), and message_dialog().

Referenced by QUIWidgetCreator().

◆ handle_create_filedialog

void octave::QUIWidgetCreator::handle_create_filedialog ( const QStringList &  filters,
const QString &  title,
const QString &  filename,
const QString &  dirname,
const QString &  multimode 
)
slot

◆ handle_create_inputlayout

void octave::QUIWidgetCreator::handle_create_inputlayout ( const QStringList &  prompt,
const QString &  title,
const QFloatList nr,
const QFloatList nc,
const QStringList &  defaults 
)
slot

Definition at line 288 of file dialog.cc.

References input_dialog(), input_finished(), and m_octave_qobj.

Referenced by QUIWidgetCreator().

◆ handle_create_listview

void octave::QUIWidgetCreator::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 
)
slot

Definition at line 253 of file dialog.cc.

References list_dialog(), list_select_finished(), m_octave_qobj, and name.

Referenced by QUIWidgetCreator().

◆ input_dialog()

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().

◆ input_finished

void octave::QUIWidgetCreator::input_finished ( const QStringList &  input,
int  button_pressed 
)
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().

◆ list_dialog()

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().

◆ list_select_finished

void octave::QUIWidgetCreator::list_select_finished ( const QIntList selected,
int  button_pressed 
)
slot

Definition at line 273 of file dialog.cc.

References m_dialog_result, m_list_index, and wake_all().

Referenced by handle_create_listview().

◆ lock()

void octave::QUIWidgetCreator::lock ( void  )
inline

Definition at line 94 of file dialog.h.

References m_mutex.

◆ message_dialog()

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().

◆ rm_amp()

QString octave::QUIWidgetCreator::rm_amp ( const QString &  text)

Definition at line 95 of file dialog.cc.

Referenced by dialog_button_clicked().

◆ unlock()

void octave::QUIWidgetCreator::unlock ( void  )
inline

Definition at line 96 of file dialog.h.

References m_mutex.

◆ wait()

void octave::QUIWidgetCreator::wait ( void  )
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().

◆ wake_all()

void octave::QUIWidgetCreator::wake_all ( void  )
inline

Member Data Documentation

◆ m_button_list

QStringList octave::QUIWidgetCreator::m_button_list
private

Definition at line 157 of file dialog.h.

Referenced by dialog_button_clicked(), and message_dialog().

◆ m_dialog_button

QString octave::QUIWidgetCreator::m_dialog_button
private

Definition at line 154 of file dialog.h.

Referenced by dialog_button_clicked(), get_dialog_button(), and message_dialog().

◆ m_dialog_result

int octave::QUIWidgetCreator::m_dialog_result
private

◆ m_list_index

QIntList octave::QUIWidgetCreator::m_list_index
private

Definition at line 162 of file dialog.h.

Referenced by get_list_index(), list_dialog(), and list_select_finished().

◆ m_mutex

QMutex octave::QUIWidgetCreator::m_mutex
private

Definition at line 169 of file dialog.h.

Referenced by file_dialog(), input_dialog(), list_dialog(), lock(), message_dialog(), unlock(), and wait().

◆ m_octave_qobj

base_qobject& octave::QUIWidgetCreator::m_octave_qobj
private

◆ m_path_name

QString octave::QUIWidgetCreator::m_path_name
private

Definition at line 164 of file dialog.h.

Referenced by file_dialog(), filedialog_finished(), and get_dialog_path().

◆ m_string_list

QStringList octave::QUIWidgetCreator::m_string_list
private

◆ m_waitcondition

QWaitCondition octave::QUIWidgetCreator::m_waitcondition
private

Definition at line 170 of file dialog.h.

Referenced by wait(), and wake_all().


The documentation for this class was generated from the following files: