casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FeatherPreferences.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 PREFERENCES_QO_H
26 #define PREFERENCES_QO_H
27 
28 #include <QDialog>
29 #include <guitools/Feather/FeatherPreferences.ui.h>
30 
31 namespace casa {
32 
33 class FeatherPreferences : public QDialog
34 {
35  Q_OBJECT
36 
37 public:
38  const static QString ORGANIZATION;
39  const static QString APPLICATION;
40  FeatherPreferences(QWidget *parent = 0);
41  void setPlaneCount( int count );
42  bool isDisplayOutputFunctions() const;
43  bool isDisplayLegend() const;
44  bool isDisplayOutputScatterPlot() const;
45  bool isDisplayX() const;
46  bool isDisplayY() const;
47  bool isLogAmplitude() const;
48  bool isLogUV() const;
49  bool isXAxisUV() const;
50  bool isPlaneAveraged() const;
51  int getPlaneIndex() const;
52  int getLineThickness() const;
53  int getDotSize() const;
55 
56 
57 signals:
58  void preferencesChanged();
59 
60 private slots:
61  void preferencesAccepted();
62  void preferencesRejected();
63  void xAxisChanged();
64  void planeModeChanged();
65 
66 private:
68  void persist();
69  void reset();
70 
71  const static QString LINE_THICKNESS;
72  const static QString DISPLAY_OUTPUT_FUNCTIONS;
73  const static QString DISPLAY_LEGEND;
74  const static QString DISPLAY_OUTPUT_SCATTERPLOT;
75  const static QString DISPLAY_Y_PLOTS;
76  const static QString DISPLAY_X_PLOTS;
77  const static QString DOT_SIZE;
78  const static QString LOG_AMPLITUDE;
79  const static QString LOG_UV;
80  const static QString DISPLAY_X_AXIS_UV;
81  const static QString PLANE_AVERAGED;
82 
83  Ui::FeatherPreferencesClass ui;
85  int dotSize;
92  bool logUV;
93  bool xAxisUV;
96 };
97 
98 }
99 
100 #endif // PREFERENCES_H
bool isDisplayOutputScatterPlot() const
static const QString ORGANIZATION
static const QString DOT_SIZE
static const QString LOG_AMPLITUDE
bool isDisplayX() const
static const QString DISPLAY_X_AXIS_UV
FeatherPreferences(QWidget *parent=0)
bool isDisplayY() const
static const QString DISPLAY_OUTPUT_SCATTERPLOT
Ui::FeatherPreferencesClass ui
int getLineThickness() const
static const QString DISPLAY_X_PLOTS
int getPlaneIndex() const
void setPlaneCount(int count)
static const QString LOG_UV
static const QString DISPLAY_OUTPUT_FUNCTIONS
bool isDisplayOutputFunctions() const
static const QString DISPLAY_LEGEND
static const QString LINE_THICKNESS
static const QString DISPLAY_Y_PLOTS
static const QString PLANE_AVERAGED
bool isDisplayLegend() const
static const QString APPLICATION
bool isLogAmplitude() const
bool isPlaneAveraged() const