casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SettingsWidget.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 SETTINGSWIDGET_QO_H
26 #define SETTINGSWIDGET_QO_H
27 
28 #include <QWidget>
29 #include <display/QtPlotter/SettingsWidget.ui.h>
30 #include <casa/Arrays/Vector.h>
31 
32 namespace casacore{
33 
34  class LogIO;
35 }
36 
37 namespace casa {
38 
39 
40  class QtCanvas;
41  class ProfileTaskMonitor;
42  class ProfileTaskFacilitator;
43 
44  class SettingsWidget : public QWidget {
45  Q_OBJECT
46 
47  public:
48  void setCollapseVals(const casacore::Vector<float> &spcVals);
49  void setCanvas( QtCanvas* pCanvas );
50  void setTaskMonitor( ProfileTaskMonitor* fitMonitor );
51  void setCurveName( const QString& curveName );
52  void addCurveName( const QString& curveName );
53  void reset( bool taskChanged = false );
54  void setLogger( casacore::LogIO* log );
55  void setUnits( QString units );
56  void setDisplayYUnits( const QString& units );
57  void setImageYUnits( const QString& units );
58  void setRange( double start, double end );
59  static bool isOptical();
60  static void setOptical( bool optical );
62  void pixelsChanged(int, int );
63  SettingsWidget(QWidget *parent = 0);
65 
66 
67 
68  private slots:
69  void clear();
70  void setFitRange(double start, double end );
71  void gaussCountChanged( int estimateCount );
72 
73  private:
80  Ui::SettingsWidget ui;
81  static bool optical;
84 
85  };
86 }
87 #endif // SPECFITSETTINGSWIDGET_QO_H
casacore::LogIO * logger
void setTaskSpecLineFitting(bool specLineFitting)
void setCollapseVals(const casacore::Vector< float > &spcVals)
LatticeExprNode log(const LatticeExprNode &expr)
static void setOptical(bool optical)
void setDisplayYUnits(const QString &units)
void pixelsChanged(int, int)
ostream-like interface to creating log messages.
Definition: LogIO.h:167
void gaussCountChanged(int estimateCount)
const_iterator end() const
SettingsWidget(QWidget *parent=0)
void setCanvas(QtCanvas *pCanvas)
void reset(bool taskChanged=false)
ProfileTaskFacilitator * taskHelper
void setImageYUnits(const QString &units)
ProfileTaskFacilitator * taskHelperRadio
void setRange(double start, double end)
void setCurveName(const QString &curveName)
ProfileTaskFacilitator * taskHelperOptical
void addCurveName(const QString &curveName)
static bool isOptical()
ProfileTaskMonitor * taskMonitor
void setFitRange(double start, double end)
void setTaskMonitor(ProfileTaskMonitor *fitMonitor)
Ui::SettingsWidget ui
void setLogger(casacore::LogIO *log)
void setUnits(QString units)
#define casacore
&lt;X11/Intrinsic.h&gt; #defines true, false, casacore::Bool, and String.
Definition: X11Intrinsic.h:42