casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SearchRedshiftDialog.qo.h
Go to the documentation of this file.
1 //# Copyright (C) 2005
2 //# Associated Universities, Inc. Washington DC, USA.
3 //#
4 //# This library is free software; you can redistribute it and/or modify it
5 //# under the terms of the GNU Library General Public License as published by
6 //# the Free Software Foundation; either version 2 of the License, or (at your
7 //# option) any later version.
8 //#
9 //# This library is distributed in the hope that it will be useful, but WITHOUT
10 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 //# License for more details.
13 //#
14 //# You should have received a copy of the GNU Library General Public License
15 //# along with this library; if not, write to the Free Software Foundation,
16 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
17 //#
18 //# Correspondence concerning AIPS++ should be addressed as follows:
19 //# Internet email: aips2-request@nrao.edu.
20 //# Postal address: AIPS++ Project Office
21 //# National Radio Astronomy Observatory
22 //# 520 Edgemont Road
23 //# Charlottesville, VA 22903-2475 USA
24 //#
25 #ifndef SEARCHREDSHIFTDIALOG_QO_H
26 #define SEARCHREDSHIFTDIALOG_QO_H
27 
28 #include <QDialog>
29 #include <QProgressDialog>
30 #include <casa/BasicSL/String.h>
31 #include <display/QtPlotter/SearchRedshiftDialog.ui.h>
36 
37 namespace casa {
38 
39  class SearchThread;
40 
41  class SearchRedshiftDialog : public QDialog {
42  Q_OBJECT
43 
44  public:
45  SearchRedshiftDialog(QWidget *parent = 0);
46  void setCenter( double centerVal );
47  void setUnits( QString unitStr );
49  void setLocalSearch( bool local );
52  void setIdentifiedLines( const QList<QString>& lineNames );
55 
56  public slots:
57  void show();
58  void findRedshift();
59  void searchFinished();
60  void stopSearch();
61 
62  private:
63  void setResultsVisible( bool visible );
64  double getTargetFrequency() const;
65  Ui::SearchRedshiftDialogClass ui;
70  QProgressDialog progressBar;
75  };
76 }
77 #endif // SEARCHREDSHIFTDIALOG_QO_H
void setDatabasePath(casacore::String path)
casacore::MDoppler::Types dopplerType
void setDopplerType(casacore::MDoppler::Types type)
virtual Type type()
Return the type enum.
Ui::SearchRedshiftDialogClass ui
double getTargetFrequency() const
void setIdentifiedLines(const QList< QString > &lineNames)
Responsible for running the search algorithm in the background so that we don&#39;t freeze the GUI...
void setSpectralCoordinate(casacore::SpectralCoordinate coord)
void setCenter(double centerVal)
SearchRedshiftDialog(QWidget *parent=0)
void setResultsVisible(bool visible)
void setLocalSearch(bool local)
std::string path(const std::string &name)
void setFrequencyType(casacore::MRadialVelocity::Types mType)
Types
Types of known MRadialVelocity Warning: The order defines the order in the translation matrix FromTo...
Types
Types of known MDopplers Warning: The order defines the order in the translation matrix FromTo in th...
Definition: MDoppler.h:149
Interconvert pixel and frequency values.
casacore::MFrequency::Types frequencyType
String: the storage and methods of handling collections of characters.
Definition: String.h:223
Types
Types of known MFrequencies Warning: The order defines the order in the translation matrix FromTo in...
Definition: MFrequency.h:176
casacore::SpectralCoordinate spectralCoordinate
void setUnits(QString unitStr)
casacore::MRadialVelocity::Types radialVelocityType