Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages

OpenDialog Class Reference
[TOPPView]

#include <OpenMS/VISUAL/DIALOGS/OpenDialog.h>

Inheritance diagram for OpenDialog:

QDialog Ui::OpenDialogTemplate

List of all members.


Detailed Description

Open spectrum dialog.

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 DataValuegetPref_ (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< Stringnames_
 list of file names or database ids
Paramprefs_
 preferences


Member Enumeration Documentation

enum DataSource

Data source.

Enumerator:
FILE  getNames() contains file names
DB  getNames() contains database ids

enum Mower

Available mowers.

Enumerator:
NO_MOWER  none
NOISE_ESTIMATOR  cut of according to noise estimator


Constructor & Destructor Documentation

OpenDialog ( Param preferences,
QWidget parent = 0 
)

constructor

virtual ~OpenDialog (  )  [virtual]

destructor


Member Function Documentation

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

const DataValue& getPref_ ( const String name  )  const [protected]

returns the preference entry name (for convenience only)

Int getPrefAsInt_ ( const String name  )  const [protected]

returns the preference entry name as Int (for convenience only)


Member Data Documentation

std::vector<String> names_ [protected]

list of file names or database ids

Param& prefs_ [protected]

preferences


The documentation for this class was generated from the following file:
Generated Tue Apr 1 15:36:48 2008 -- using doxygen 1.5.4 OpenMS / TOPP 1.1