casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
QtProfilePrefs.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 
26 #ifndef QtProfilePrefs_H
27 #define QtProfilePrefs_H
28 
29 #include <casa/aips.h>
30 #include <casa/BasicSL/String.h>
31 #include <casa/Containers/Record.h>
32 #include <casa/Arrays/Array.h>
33 #include <casa/Arrays/ArrayMath.h>
34 #include <casa/Arrays/Vector.h>
35 #include <casa/Arrays/Matrix.h>
36 #include <casa/Inputs/Input.h>
37 #include <casa/Arrays/IPosition.h>
43 
49 
50 
51 #include <graphics/X11/X_enter.h>
52 #include <QDir>
53 #include <QColor>
54 #include <QHash>
55 #include <QMainWindow>
56 #include <QMouseEvent>
57 #include <QToolButton>
58 #include <QDialog>
59 #include <QCheckBox>
60 #include <QPixmap>
61 #include <QLineEdit>
62 #include <QComboBox>
63 #include <map>
64 #include <vector>
65 #include <QHash>
66 #include <QHashIterator>
67 #include <graphics/X11/X_exit.h>
68 
69 #include <display/QtPlotter/QtProfilePrefsGUI.ui.h>
70 
71 namespace casa {
72 
73  class QtProfilePrefs : public QDialog, Ui::QtProfilePrefsGUI {
74  Q_OBJECT
75 
76  public:
77  QtProfilePrefs(QWidget *parent = 0);
78  QtProfilePrefs(QWidget *parent, bool stateAutoX, bool stateAutoY, int showGrid,
79  int stateMProf, int stateRel, bool showToolTips, bool showTopAxis,
80  bool displayStepFunction,
81  bool channelLine, bool singleChannelImage);
83  void syncUserPreferences();
84 
85  signals:
86  void currentPrefs(bool stateAutoX, bool stateAutoY, int showGrid, int stateMProf,
87  int stateRel, bool showToolTips, bool showTopAxis,
88  bool displayStepFunction, bool opticalFitter,
89  bool channelLine, bool singleChannelImage);
90 
91  private slots:
92  void accepted();
93  void rejected();
94  void adjustBoxes(int st);
95  void opticalStateChanged();
96 
97  private:
98  void initializeConnections();
99  void persist();
100  void reset();
101 
102 
103  static const QString X_AUTO_SCALE;
104  static const QString Y_AUTO_SCALE;
105  static const QString SHOW_GRID;
106  static const QString OVERLAY;
107  static const QString RELATIVE;
108  static const QString TOOLTIPS;
109  static const QString TOP_AXIS;
110  static const QString STEP_FUNCTION;
111  static const QString OPTICAL;
112  static const QString CHANNEL_LINE;
113  static const QString SINGLE_CHANNEL_IMAGE;
114 
126  };
127 
128 }
129 #endif
130 
static const QString SHOW_GRID
static const QString STEP_FUNCTION
static const QString X_AUTO_SCALE
static const QString TOP_AXIS
static const QString OVERLAY
static const QString SINGLE_CHANNEL_IMAGE
QtProfilePrefs(QWidget *parent=0)
void adjustBoxes(int st)
static const QString Y_AUTO_SCALE
static const QString CHANNEL_LINE
static const QString RELATIVE
static const QString OPTICAL
void currentPrefs(bool stateAutoX, bool stateAutoY, int showGrid, int stateMProf, int stateRel, bool showToolTips, bool showTopAxis, bool displayStepFunction, bool opticalFitter, bool channelLine, bool singleChannelImage)
static const QString TOOLTIPS