~ubuntu-branches/ubuntu/wily/openms/wily

« back to all changes in this revision

Viewing changes to include/OpenMS/VISUAL/VISUALIZER/PrecursorVisualizer.h

  • Committer: Package Import Robot
  • Author(s): Filippo Rusconi
  • Date: 2012-11-12 15:58:12 UTC
  • Revision ID: package-import@ubuntu.com-20121112155812-vr15wtg9b50cuesg
Tags: upstream-1.9.0
ImportĀ upstreamĀ versionĀ 1.9.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- mode: C++; tab-width: 2; -*-
 
2
// vi: set ts=2:
 
3
//
 
4
// --------------------------------------------------------------------------
 
5
//                   OpenMS Mass Spectrometry Framework
 
6
// --------------------------------------------------------------------------
 
7
//  Copyright (C) 2003-2011 -- Oliver Kohlbacher, Knut Reinert
 
8
//
 
9
//  This library is free software; you can redistribute it and/or
 
10
//  modify it under the terms of the GNU Lesser General Public
 
11
//  License as published by the Free Precursor Foundation; either
 
12
//  version 2.1 of the License, or (at your option) any later version.
 
13
//
 
14
//  This library is distributed in the hope that it will be useful,
 
15
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
17
//  Lesser General Public License for more details.
 
18
//
 
19
//  You should have received a copy of the GNU Lesser General Public
 
20
//  License along with this library; if not, write to the Free Software
 
21
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
22
//
 
23
// --------------------------------------------------------------------------
 
24
// $Maintainer:Timo Sachsenberg $
 
25
// $Authors: Marc Sturm $
 
26
// --------------------------------------------------------------------------
 
27
 
 
28
#ifndef OPENMS_VISUAL_VISUALIZER_PRECURSORVISUALIZER_H
 
29
#define OPENMS_VISUAL_VISUALIZER_PRECURSORVISUALIZER_H
 
30
 
 
31
//OpenMS
 
32
#include <OpenMS/METADATA/Precursor.h>
 
33
#include <OpenMS/VISUAL/VISUALIZER/BaseVisualizer.h>
 
34
#include <OpenMS/VISUAL/VISUALIZER/BaseVisualizerGUI.h>
 
35
 
 
36
 
 
37
namespace OpenMS
 
38
{
 
39
        /**
 
40
                @brief Class that displays all meta information for Precursor objects
 
41
                
 
42
                This class provides all functionality to view the meta information of an object of type Precursor.
 
43
        */
 
44
        class OPENMS_GUI_DLLAPI PrecursorVisualizer
 
45
                : public BaseVisualizerGUI,
 
46
                        public BaseVisualizer<Precursor>
 
47
        {
 
48
                Q_OBJECT
 
49
 
 
50
                public:
 
51
                        
 
52
                  ///Constructor
 
53
                        PrecursorVisualizer(bool editable = false, QWidget* parent = 0);
 
54
                        
 
55
                public slots:
 
56
                        
 
57
                  //Docu in base class
 
58
                        void store();
 
59
                
 
60
                protected slots:
 
61
                        
 
62
                        ///Undo the changes made in the GUI.
 
63
                        void undo_();
 
64
        
 
65
                protected:  
 
66
                        ///@name Edit fields and buttons
 
67
            //@{
 
68
                        QLineEdit* mz_;
 
69
                        QLineEdit* int_;
 
70
                        QLineEdit* charge_;
 
71
                        QLineEdit* window_up_;
 
72
                        QLineEdit* window_low_;
 
73
                        QListWidget* activation_methods_;
 
74
                        QLineEdit* activation_energy_;
 
75
                        //@}
 
76
                        
 
77
                        //Docu in base class
 
78
                        void update_();
 
79
        };
 
80
}
 
81
#endif