A simple widget with a line-edit and a browse button to choose filenames.
More...
#include <OpenMS/VISUAL/InputFile.h>
|
| void | showFileDialog () |
| | Lets the user select the file via a file dialog.
|
| |
|
| void | updatedCWD (QString new_cwd) |
| | emitted when a new file is added (by drag'n'drop or 'Browse' button)
|
| |
| void | updatedFile (QString new_path) |
| | emitted when a new file is added (by drag'n'drop or 'Browse' button)
|
| |
|
| | InputFile (QWidget *parent) |
| | Constructor.
|
| |
| | ~InputFile () |
| | Destructor.
|
| |
| void | dragEnterEvent (QDragEnterEvent *e) override |
| | support drag'n'drop of files from OS window manager
|
| |
| void | dropEvent (QDropEvent *e) override |
| | support drag'n'drop of files from OS window manager
|
| |
| void | dragMoveEvent (QDragMoveEvent *pEvent) override |
| |
| void | setFilename (const QString &filename) |
| | Sets the text in the line-edit.
|
| |
| QString | getFilename () const |
| | Returns the filename currently set in the line-edit.
|
| |
| void | setFileFormatFilter (const QString &fff) |
| | Users can only choose certain filetypes, e.g. "Transition sqLite file (*.pqp)".
|
| |
| const QString & | getCWD () const |
| | get the CWD (according to most recently added file)
|
| |
| void | setCWD (const QString &cwd, bool force=false) |
| | set the current working directory (for opening files). If the input is not empty, the cwd will not be altered, unless force is used
|
| |
|
| QString | file_format_filter_ |
| | optional filter during file browsing
|
| |
| QString | cwd_ |
| | the current working directory according to the last file added
|
| |
|
| Ui::InputFileTemplate * | ui_ |
| |
A simple widget with a line-edit and a browse button to choose filenames.
◆ InputFile()
◆ ~InputFile()
◆ dragEnterEvent()
| void dragEnterEvent |
( |
QDragEnterEvent * |
e | ) |
|
|
override |
support drag'n'drop of files from OS window manager
◆ dragMoveEvent()
| void dragMoveEvent |
( |
QDragMoveEvent * |
pEvent | ) |
|
|
override |
◆ dropEvent()
| void dropEvent |
( |
QDropEvent * |
e | ) |
|
|
override |
support drag'n'drop of files from OS window manager
◆ getCWD()
| const QString & getCWD |
( |
| ) |
const |
get the CWD (according to most recently added file)
◆ getFilename()
| QString getFilename |
( |
| ) |
const |
Returns the filename currently set in the line-edit.
◆ setCWD()
| void setCWD |
( |
const QString & |
cwd, |
|
|
bool |
force = false |
|
) |
| |
set the current working directory (for opening files). If the input is not empty, the cwd will not be altered, unless force is used
◆ setFileFormatFilter()
| void setFileFormatFilter |
( |
const QString & |
fff | ) |
|
Users can only choose certain filetypes, e.g. "Transition sqLite file (*.pqp)".
◆ setFilename()
| void setFilename |
( |
const QString & |
filename | ) |
|
Sets the text in the line-edit.
◆ showFileDialog
Lets the user select the file via a file dialog.
◆ updatedCWD
| void updatedCWD |
( |
QString |
new_cwd | ) |
|
|
signal |
emitted when a new file is added (by drag'n'drop or 'Browse' button)
◆ updatedFile
| void updatedFile |
( |
QString |
new_path | ) |
|
|
signal |
emitted when a new file is added (by drag'n'drop or 'Browse' button)
◆ cwd_
the current working directory according to the last file added
◆ file_format_filter_
| QString file_format_filter_ |
|
protected |
optional filter during file browsing
◆ ui_
| Ui::InputFileTemplate* ui_ |
|
private |