38 # include <qapplication.h>
40 # include <qfiledialog.h>
41 # include <qstringlist.h>
43 # include "TObjString.h"
46 # include <qinputdialog.h>
54 gSystem->Load(
"qtcint");
58 const char *OpenFileDialog()
65 ";ROOT files (*.root);"
67 ";Encapsulated PostScript (*.eps);"
71 static QString fFilename;
72 fFilename = QFileDialog::getOpenFileName(gSystem->WorkingDirectory()
75 return (
const char*)fFilename;
79 const char *SaveFileDialog()
86 ";ROOT files (*.root);"
88 ";Encapsulated PostScript (*.eps);"
92 static QString fFilename;
93 fFilename = QFileDialog::getSaveFileName(gSystem->WorkingDirectory()
96 return (
const char*)fFilename;
100 const char *GetStringDialog(
const char *prompt,
const char *defval)
105 static QString answer;
107 answer = QInputDialog::getText(
108 "Enter text", prompt, QLineEdit::Normal,defval);
110 return (
const char *)answer;
114 Int_t GetIntegerDialog(
const char *prompt, Int_t defval
115 ,
int minValue = -2147483647,
int maxValue = 2147483647
121 return QInputDialog::getInteger(
"Enter integer", prompt, defval
122 ,minValue, maxValue, step);
126 Double_t GetFloatDialog(
const char *prompt, Double_t defval
127 ,
double minValue = -2147483647,
double maxValue = 2147483647
133 return QInputDialog::getDouble(
"Enter double", prompt, defval
134 ,minValue, maxValue, decimals);