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_VISUALIZER_GRADIENTVISUALIZER_H 00029 #define OPENMS_VISUAL_VISUALIZER_GRADIENTVISUALIZER_H 00030 00031 //OpenMS 00032 #include <OpenMS/VISUAL/VISUALIZER/BaseVisualizer.h> 00033 #include <OpenMS/METADATA/Gradient.h> 00034 00035 //STL 00036 #include <vector> 00037 00038 class QLabel; 00039 class QLineEdit; 00040 class QIntValidator; 00041 00042 namespace OpenMS { 00048 class GradientVisualizer : public BaseVisualizer 00049 { 00050 Q_OBJECT 00051 00052 public: 00054 GradientVisualizer(bool editable= FALSE, QWidget *parent =0); 00055 00057 void load(Gradient &g); 00058 00059 public slots: 00061 void addTimepoint(); 00063 void addEluent(); 00065 void deleteData(); 00066 00067 private slots: 00069 void store_(); 00071 void reject_(); 00072 00073 private: 00075 void loadData_(); 00077 void removeData_(); 00079 void update_(); 00080 00081 00085 QLineEdit* new_eluent_; 00086 QLineEdit* new_timepoint_; 00088 00092 std::vector< String > eluents_; 00093 std::vector< Int > timepoints_; 00095 00099 QPushButton* add_eluent_button_; 00100 QPushButton* add_timepoint_button_; 00101 QPushButton* removebutton_; 00103 00105 std::vector< QLineEdit* > gradientdata_; 00106 00108 std::vector< QLabel* > gradientlabel_; 00109 00111 QLineEdit* percentage_; 00112 00114 QIntValidator *timepoint_vali_; 00115 00117 int nextrow_; 00118 00120 QGridLayout* viewlayout_; 00121 00123 Gradient* ptr_; 00124 00126 Gradient tempgradient_; 00127 00128 }; 00129 00130 00131 } 00132 #endif
Generated Tue Apr 1 15:36:34 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |