![]() |
OpenMS
2.8.0
|
holds a vector of known file types, e.g. as a way to specify supported input formats More...
#include <OpenMS/FORMAT/FileTypes.h>
Public Member Functions | |
FileTypeList (const std::vector< Type > &types) | |
bool | contains (const Type &type) const |
check if type is contained in this array More... | |
String | toFileDialogFilter (const Filter style, bool add_all_filter) const |
Private Attributes | |
std::vector< Type > | type_list_ |
holds a vector of known file types, e.g. as a way to specify supported input formats
The vector can be exported in Qt's file dialog format.
FileTypeList | ( | const std::vector< Type > & | types | ) |
bool contains | ( | const Type & | type | ) | const |
check if type
is contained in this array
Referenced by TOPPViewBase::addDataFile().
converts the array into a Qt-compatible filter for selecting files in a user dialog. e.g. "all readable files (*.mzML *.mzXML);;". See Filter enum.
style | Create a combined filter, or single filters, or both |
add_all_filter | Add 'all files (*)' as a single filter at the end? |
Referenced by TOPPViewBase::chooseFilesDialog_().
|
private |