LineOverlaysSearchResultsDialog.qo.h

Go to the documentation of this file.
00001 
00002 //# Copyright (C) 2005
00003 //# Associated Universities, Inc. Washington DC, USA.
00004 //#
00005 //# This library is free software; you can redistribute it and/or modify it
00006 //# under the terms of the GNU Library General Public License as published by
00007 //# the Free Software Foundation; either version 2 of the License, or (at your
00008 //# option) any later version.
00009 //#
00010 //# This library is distributed in the hope that it will be useful, but WITHOUT
00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012 //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00013 //# License for more details.
00014 //#
00015 //# You should have received a copy of the GNU Library General Public License
00016 //# along with this library; if not, write to the Free Software Foundation,
00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
00018 //#
00019 //# Correspondence concerning AIPS++ should be addressed as follows:
00020 //#        Internet email: aips2-request@nrao.edu.
00021 //#        Postal address: AIPS++ Project Office
00022 //#                        National Radio Astronomy Observatory
00023 //#                        520 Edgemont Road
00024 //#                        Charlottesville, VA 22903-2475 USA
00025 //#
00026 
00027 #ifndef LINEOVERLAYSSEARCHRESULTSDIALOG_QO_H
00028 #define LINEOVERLAYSSEARCHRESULTSDIALOG_QO_H
00029 #include <QtGui/QDialog>
00030 #include <display/QtPlotter/LineOverlaysSearchResultsDialog.ui.h>
00031 #include <display/QtPlotter/SearchMoleculesResultDisplayer.h>
00032 #include <casa/Containers/Record.h>
00033 #include <casa/aips.h>
00034 namespace casa {
00035 
00036         class SearchMoleculesResultsWidget;
00037 
00038         class LineOverlaysSearchResultsDialog : public QDialog, public SearchMoleculesResultDisplayer {
00039                 Q_OBJECT
00040 
00041         public:
00042                 LineOverlaysSearchResultsDialog(QWidget *parent = 0);
00043                 QList<int> getLineIndices() const;
00044                 bool getLine(int lineIndex, Float& peak, Float& center,
00045                              QString& molecularName, QString& chemicalName,
00046                              QString& resolvedQNs, QString& frequencyUnit ) const;
00047                 void getLines( QList<float>& peaks, QList<float>& centers,
00048                                QString& molecularName, QList<QString>& chemicalNames,
00049                                QList<QString>& resolvedQNs, QString& frequencyUnit ) const;
00050                 void displaySearchResults( const vector<SplatResult>& results, int offset,
00051                                            int totalCount);
00052                 int getLineCount() const;
00053                 ~LineOverlaysSearchResultsDialog();
00054 
00055         signals:
00056                 void graphSelectedLines();
00057                 void graphSelectedSpecies();
00058                 void showPreviousSearchResults();
00059                 void showNextSearchResults();
00060 
00061         private slots:
00062                 void drawSelectedLines();
00063                 void drawSelectedSpecies();
00064 
00065 
00066         private:
00067                 void setSearchScrollingVisible( bool visible );
00068                 Ui::LineOverlaysSearchResultsDialogClass ui;
00069                 SearchMoleculesResultsWidget* searchResultsWidget;
00070                 const static QString NO_LINES_SELECTED;
00071         };
00072 
00073 }
00074 #endif // LINEOVERLAYSSEARCHRESULTSDIALOG_QO_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1