00001 // -*- Mode: C++; tab-width: 2; -*- 00002 // vi: set ts=2: 00003 // 00004 // -------------------------------------------------------------------------- 00005 // OpenMS Mass Spectrometry Framework 00006 // -------------------------------------------------------------------------- 00007 // Copyright (C) 2003-2008 -- Oliver Kohlbacher, Knut Reinert 00008 // 00009 // This library is free software; you can redistribute it and/or 00010 // modify it under the terms of the GNU Lesser General Public 00011 // License as published by the Free Software Foundation; either 00012 // version 2.1 of the License, or (at your option) any later version. 00013 // 00014 // This library is distributed in the hope that it will be useful, 00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 // Lesser General Public License for more details. 00018 // 00019 // You should have received a copy of the GNU Lesser General Public 00020 // License along with this library; if not, write to the Free Software 00021 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00022 // 00023 // -------------------------------------------------------------------------- 00024 // $Maintainer: Marc Sturm$ 00025 // -------------------------------------------------------------------------- 00026 00027 00028 #ifndef OPENMS_VISUAL_DIALOGS_OPENDIALOG_H 00029 #define OPENMS_VISUAL_DIALOGS_OPENDIALOG_H 00030 00031 #include <OpenMS/VISUAL/DIALOGS/UIC/OpenDialogTemplate.h> 00032 #include <OpenMS/DATASTRUCTURES/String.h> 00033 #include <OpenMS/FORMAT/FileHandler.h> 00034 00035 #include <vector> 00036 00037 namespace OpenMS 00038 { 00039 class Param; 00040 00048 class OpenDialog 00049 : public QDialog, 00050 public Ui::OpenDialogTemplate 00051 { 00052 Q_OBJECT 00053 00054 public: 00056 enum DataSource 00057 { 00058 FILE, 00059 DB 00060 }; 00061 00063 enum Mower 00064 { 00065 NO_MOWER, 00066 NOISE_ESTIMATOR 00067 }; 00068 00070 OpenDialog(Param& preferences, QWidget* parent = 0 ); 00072 virtual ~OpenDialog(); 00073 00075 const std::vector<String>& getNames() const; 00077 DataSource getSource() const; 00079 bool isViewMaps2D() const; 00081 Mower getMower() const; 00083 bool isOpenAsNewTab() const; 00085 FileHandler::Type forcedFileType() const; 00086 00087 protected slots: 00089 virtual void browse(); 00091 virtual void showMetadata(); 00092 00093 protected: 00095 std::vector<String> names_; 00097 Param& prefs_; 00098 00100 const DataValue& getPref_(const String& name) const; 00102 Int getPrefAsInt_(const String& name) const; 00103 00104 }; 00105 00106 } 00107 #endif // OPENMS_VISUAL_DIALOGS_OPENDIALOG_H 00108
Generated Tue Apr 1 15:36:36 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |