casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LineOverlaysSearchResultsDialog.qo.h
Go to the documentation of this file.
1 
2 //# Copyright (C) 2005
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be addressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //# Charlottesville, VA 22903-2475 USA
25 //#
26 
27 #ifndef LINEOVERLAYSSEARCHRESULTSDIALOG_QO_H
28 #define LINEOVERLAYSSEARCHRESULTSDIALOG_QO_H
29 #include <QDialog>
30 #include <display/QtPlotter/LineOverlaysSearchResultsDialog.ui.h>
32 #include <casa/Containers/Record.h>
33 #include <casa/aips.h>
34 namespace casa {
35 
36  class SearchMoleculesResultsWidget;
37 
39  Q_OBJECT
40 
41  public:
42  LineOverlaysSearchResultsDialog(QWidget *parent = 0);
43  QList<int> getLineIndices() const;
44  bool getLine(int lineIndex, float& peak, float& center,
45  QString& molecularName, QString& chemicalName,
46  QString& resolvedQNs, QString& frequencyUnit ) const;
47  void getLines( QList<float>& peaks, QList<float>& centers,
48  QString& molecularName, QList<QString>& chemicalNames,
49  QList<QString>& resolvedQNs, QString& frequencyUnit ) const;
50  void displaySearchResults( const std::vector<SplatResult>& results, int offset,
51  int totalCount);
52  int getLineCount() const;
54 
55  signals:
56  void graphSelectedLines();
57  void graphSelectedSpecies();
59  void showNextSearchResults();
60 
61  private slots:
62  void drawSelectedLines();
63  void drawSelectedSpecies();
64 
65 
66  private:
67  void setSearchScrollingVisible( bool visible );
68  Ui::LineOverlaysSearchResultsDialogClass ui;
70  const static QString NO_LINES_SELECTED;
71  };
72 
73 }
74 #endif // LINEOVERLAYSSEARCHRESULTSDIALOG_QO_H
QList< int > getLineIndices() const
Ui::LineOverlaysSearchResultsDialogClass ui
void getLines(QList< float > &peaks, QList< float > &centers, QString &molecularName, QList< QString > &chemicalNames, QList< QString > &resolvedQNs, QString &frequencyUnit) const
void displaySearchResults(const std::vector< SplatResult > &results, int offset, int totalCount)
The parameters offset and count determine where the passed in results fit in the overall search...
Interface provides decoupling between classes that initialize a search such as SearchMoleculesWidget ...
void setSearchScrollingVisible(bool visible)
bool getLine(int lineIndex, float &peak, float &center, QString &molecularName, QString &chemicalName, QString &resolvedQNs, QString &frequencyUnit) const
LineOverlaysSearchResultsDialog(QWidget *parent=0)