LineOverlaysSearchResultsDialog.qo.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
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