27 #ifndef QTFILEDIALOG_QO_H_
28 #define QTFILEDIALOG_QO_H_
32 #include <QFileDialog>
59 const QString& caption = QString(),
62 return qgetHelper(AcceptOpen, DirectoryOnly, parent, caption,
63 directory, QString(), histLimit); }
65 const QString& caption = QString(),
69 histLimit).toStdString(); }
76 const QString& caption = QString(),
80 return qgetHelper(AcceptOpen, ExistingFile, parent, caption, directory,
81 QString(), histLimit); }
83 const QString& caption = QString(),
87 histLimit).toStdString(); }
94 QWidget* parent = NULL,
const QString& caption = QString(),
96 const QString& = QString(),
int histLimit =
historyLimit()){
97 return qgetHelper(AcceptSave, AnyFile, parent, caption, directory,
98 QString(), histLimit); }
100 const QString& caption = QString(),
104 histLimit).toStdString(); }
127 QtFileDialog(QWidget* parent = NULL,
const QString& caption = QString(),
129 const QString&
filter = QString());
161 static QString
qgetHelper(AcceptMode acceptMode, FileMode fileMode,
162 QWidget* parent,
const QString& caption,
const QString& directory,
163 const QString&
filter,
int histLimit);
QLabel * chosenLabel
Label to display the currently chosen file(s).
static casacore::String getAnyFile(QWidget *parent=NULL, const QString &caption=QString(), const QString &directory=lastDirectory(), const QString &filter=QString(), int histLimit=historyLimit())
~QtFileDialog()
Destructor.
void initialize()
To be called from the constructors.
static void setHistoryLimit(int limit)
static QString lastDirectory_
Static //.
static QString qgetExistingFile(QWidget *parent=NULL, const QString &caption=QString(), const QString &directory=lastDirectory(), const QString &filter=QString(), int histLimit=historyLimit())
Returns an existing file using the given optional parent, caption, starting directory, and filter parameters.
static const QString & lastDirectory()
Gets/Sets the last directory to be used by a QtFileDialog.
static QString qgetExistingDir(QWidget *parent=NULL, const QString &caption=QString(), const QString &directory=lastDirectory(), int histLimit=historyLimit())
Static //.
static int historyLimit_
Set history limit.
static casacore::String getExistingDir(QWidget *parent=NULL, const QString &caption=QString(), const QString &directory=lastDirectory(), int histLimit=historyLimit())
static int historyLimit()
Gets/Sets the limit for the history size used by a QtFileDialog.
std::set< ScanKey > filter(const std::set< ScanKey > scans, const ArrayKey &arrayKey)
given a set of scan keys, return the subset that matches the given array key
void timeout()
Signal for timer timeout.
Subclass of QFileDialog with additional functionality.
static void setNextDirectory(const QString &directory)
String: the storage and methods of handling collections of characters.
static QString qgetAnyFile(QWidget *parent=NULL, const QString &caption=QString(), const QString &directory=lastDirectory(), const QString &=QString(), int histLimit=historyLimit())
Returns a new filename using the given optional parent, caption, starting directory, and filter parameters.
static QString qgetHelper(AcceptMode acceptMode, FileMode fileMode, QWidget *parent, const QString &caption, const QString &directory, const QString &filter, int histLimit)
Helper method for the static qget* functions.
static casacore::String getExistingFile(QWidget *parent=NULL, const QString &caption=QString(), const QString &directory=lastDirectory(), const QString &filter=QString(), int histLimit=historyLimit())
void accept()
Overrides QFileDialog::accept().
QtFileDialog(QWidget *parent, Qt::WindowFlags flags)
Non-Static //.