#include <OpenMS/VISUAL/DIALOGS/OpenDialog.h>
Allows selecting a spectrum/map from a file or the DB.
Public Types | |
enum | DataSource { FILE, DB } |
Data source. More... | |
enum | Mower { NO_MOWER, NOISE_ESTIMATOR } |
Available mowers. More... | |
Public Member Functions | |
OpenDialog (Param &preferences, QWidget *parent=0) | |
constructor | |
virtual | ~OpenDialog () |
destructor | |
const std::vector< String > & | getNames () const |
returns the list of file names / database ids | |
DataSource | getSource () const |
returns the source of data | |
bool | isViewMaps2D () const |
returns true, if 2D mode is to be used for maps | |
Mower | getMower () const |
returns the mower to be used | |
bool | isOpenAsNewTab () const |
returns the location where the spectra are to be opened | |
FileHandler::Type | forcedFileType () const |
returns the forced file type (FileHandler::UNKNOWN if none) | |
Protected Slots | |
virtual void | browse () |
browses filesystem or database for spectra to open | |
virtual void | showMetadata () |
shows the metadata of the experiment, if exactly one spectrum is selected | |
Protected Member Functions | |
const DataValue & | getPref_ (const String &name) const |
returns the preference entry name (for convenience only) | |
Int | getPrefAsInt_ (const String &name) const |
returns the preference entry name as Int (for convenience only) | |
Protected Attributes | |
std::vector< String > | names_ |
list of file names or database ids | |
Param & | prefs_ |
preferences |
enum DataSource |
enum Mower |
OpenDialog | ( | Param & | preferences, | |
QWidget * | parent = 0 | |||
) |
constructor
virtual ~OpenDialog | ( | ) | [virtual] |
destructor
const std::vector<String>& getNames | ( | ) | const |
returns the list of file names / database ids
DataSource getSource | ( | ) | const |
returns the source of data
bool isViewMaps2D | ( | ) | const |
returns true, if 2D mode is to be used for maps
Mower getMower | ( | ) | const |
returns the mower to be used
bool isOpenAsNewTab | ( | ) | const |
returns the location where the spectra are to be opened
FileHandler::Type forcedFileType | ( | ) | const |
returns the forced file type (FileHandler::UNKNOWN if none)
virtual void browse | ( | ) | [protected, virtual, slot] |
browses filesystem or database for spectra to open
virtual void showMetadata | ( | ) | [protected, virtual, slot] |
shows the metadata of the experiment, if exactly one spectrum is selected
returns the preference entry name
(for convenience only)
returns the preference entry name
as Int (for convenience only)
Generated Tue Apr 1 15:36:48 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |