26 #if ! defined (octave_dialog_h)
27 #define octave_dialog_h 1
29 #include <QAbstractButton>
31 #include <QFileDialog>
32 #include <QItemSelectionModel>
35 #include <QMessageBox>
37 #include <QWaitCondition>
64 const QString& icon,
const QStringList& button,
65 const QString& defbutton,
const QStringList& role);
71 QPair<QIntList, int>
list_dialog (
const QStringList& list,
76 const QStringList& prompt,
77 const QString& ok_string,
78 const QString& cancel_string);
82 QStringList
input_dialog (
const QStringList& prompt,
const QString& title,
84 const QStringList& defaults);
88 QStringList
file_dialog (
const QStringList& filters,
const QString& title,
89 const QString& filename,
const QString&
dirname,
90 const QString& multimode);
102 const QStringList&,
const QString&,
const QStringList&);
105 const QIntList&,
const QString&,
const QStringList&,
106 const QString&,
const QString&);
113 const QString& filename,
const QString&
dirname,
114 const QString& multimode);
118 const QString& icon,
const QStringList& button,
119 const QString& defbutton,
120 const QStringList& role);
125 int width,
int height,
128 const QStringList& prompt,
129 const QString& ok_string,
130 const QString& cancel_string);
141 const QString& title,
142 const QString& filename,
144 const QString& multimode);
180 const QString& title,
const QString& icon,
181 const QStringList& button,
const QString& defbutton,
182 const QStringList& role);
190 emit buttonClicked (
nullptr);
203 const QString& mode,
int width,
int height,
205 const QStringList& prompt,
const QString& ok_string,
206 const QString& cancel_string);
239 const QFloatList& nc,
const QStringList& defaults);
261 const QString& title,
const QString& filename,
262 const QString&
dirname,
const QString& multimode);
FileDialog(base_qobject &oct_qobj, const QStringList &filters, const QString &title, const QString &filename, const QString &dirname, const QString &multimode)
void acceptSelection(void)
void finish_input(const QStringList &, const QString &, int)
void rejectSelection(void)
ListDialog(base_qobject &oct_qobj, const QStringList &list, const QString &mode, int width, int height, const QList< int > &initial, const QString &name, const QStringList &prompt, const QString &ok_string, const QString &cancel_string)
QAbstractItemModel * m_model
void buttonCancel_clicked(void)
void buttonOk_clicked(void)
void item_double_clicked(const QModelIndex &)
void finish_selection(const QIntList &, int)
QItemSelectionModel * selector
void closeEvent(QCloseEvent *)
MessageDialog(base_qobject &oct_qobj, const QString &message, const QString &title, const QString &icon, const QStringList &button, const QString &defbutton, const QStringList &role)
Base class for Octave interfaces that use Qt.
QList< float > QFloatList
void message(const char *name, const char *fmt,...)
std::string dirname(const std::string &path)
static int input(yyscan_t yyscanner)