13 #ifndef QmitkFileChooser_h
14 #define QmitkFileChooser_h
Convenience widget showing a line edit with a file/directory path and a browse button.
void SetHorizotalLayout(bool horizontalLayout)
Set horizontal or vertical layout for the button and line edit.
virtual std::string GetFile() const
Get the currently displayed file path.
void SetSelectDir(bool selectDir)
Set whether the chooser selects directories instead of files.
QmitkFileChooser(QWidget *parent=nullptr, Qt::WindowFlags f={})
Construct the file chooser with default settings.
virtual void OnFileEditingFinished()
virtual void OnSelectFileClicked(bool)
void SetFilePattern(const std::string &filepattern)
Set the file filter pattern for the file dialog.
void NewFileSelected(const std::string &filePath)
Emitted when the file path changes, either programmatically or by the user.
void SetFile(const std::string &file)
Programmatically set the file path.
bool IsValidFile() const
Check whether the currently entered file/directory exists.
void SetReadOnly(bool ReadOnly)
Set whether the line edit is read-only.
void SetFileMustExist(bool fileMustExist)
Set whether the selected file or directory must already exist.
QPushButton * m_SelectFile