24 #if !defined (octave_dialog_h)
25 #define octave_dialog_h 1
28 #include <QWaitCondition>
29 #include <QAbstractButton>
31 #include <QItemSelectionModel>
33 #include <QMessageBox>
35 #include <QFileDialog>
57 const QString& icon,
const QStringList& button,
58 const QString& defbutton,
const QStringList& role)
63 if (!button.isEmpty ())
70 emit
create_dialog (message, title, xicon, button, defbutton, role);
79 const QString& name,
const QStringList& prompt,
80 const QString& ok_string,
const QString& cancel_string)
86 prompt, ok_string, cancel_string);
95 const QStringList& defaults)
97 if (prompt.isEmpty ())
108 const QString& filename,
const QString& dirname,
109 const QString &multimode)
125 void create_dialog (
const QString&,
const QString&,
const QString&,
126 const QStringList&,
const QString&,
const QStringList&);
129 const QIntList&,
const QString&,
const QStringList&,
130 const QString&,
const QString&);
137 const QString& filename,
const QString& dirname,
138 const QString& multimode);
174 const QString& icon,
const QStringList& button,
175 const QString& defbutton,
176 const QStringList& role);
184 emit buttonClicked (0);
197 explicit ListDialog (
const QStringList& list,
const QString& mode,
198 int width,
int height,
const QList<int>& initial,
199 const QString& name,
const QStringList& prompt,
200 const QString& ok_string,
const QString& cancel_string);
224 explicit InputDialog (
const QStringList& prompt,
const QString& title,
226 const QStringList& defaults);
247 explicit FileDialog (
const QStringList& filters,
248 const QString& title,
const QString& filename,
249 const QString& dirname,
const QString& multimode);
253 void finish_input (
const QStringList&,
const QString&,
int);
void buttonOk_clicked(void)
void finish_selection(const QIntList &, int)
QItemSelectionModel * selector
FileDialog(const QStringList &filters, const QString &title, const QString &filename, const QString &dirname, const QString &multimode)
ListDialog(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)
void rejectSelection(void)
void message(const char *name, const char *fmt,...)
void closeEvent(QCloseEvent *)
QUIWidgetCreator uiwidget_creator
QList< float > QFloatList
MessageDialog(const QString &message, const QString &title, const QString &icon, const QStringList &button, const QString &defbutton, const QStringList &role)
void finish_input(const QStringList &, const QString &, int)
static int input(yyscan_t yyscanner)
void acceptSelection(void)
void buttonCancel_clicked(void)