casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
QtProfilePrefs.qo.h
Go to the documentation of this file.
00001 //# Copyright (C) 2005
00002 //# Associated Universities, Inc. Washington DC, USA.
00003 //#
00004 //# This library is free software; you can redistribute it and/or modify it
00005 //# under the terms of the GNU Library General Public License as published by
00006 //# the Free Software Foundation; either version 2 of the License, or (at your
00007 //# option) any later version.
00008 //#
00009 //# This library is distributed in the hope that it will be useful, but WITHOUT
00010 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00011 //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00012 //# License for more details.
00013 //#
00014 //# You should have received a copy of the GNU Library General Public License
00015 //# along with this library; if not, write to the Free Software Foundation,
00016 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
00017 //#
00018 //# Correspondence concerning AIPS++ should be addressed as follows:
00019 //#        Internet email: aips2-request@nrao.edu.
00020 //#        Postal address: AIPS++ Project Office
00021 //#                        National Radio Astronomy Observatory
00022 //#                        520 Edgemont Road
00023 //#                        Charlottesville, VA 22903-2475 USA
00024 //#
00025 
00026 #ifndef QtProfilePrefs_H
00027 #define QtProfilePrefs_H
00028 
00029 #include <casa/aips.h>
00030 #include <casa/BasicSL/String.h>
00031 #include <casa/Containers/Record.h>
00032 #include <casa/Arrays/Array.h>
00033 #include <casa/Arrays/ArrayMath.h>
00034 #include <casa/Arrays/Vector.h>
00035 #include <casa/Arrays/Matrix.h>
00036 #include <casa/Inputs/Input.h>
00037 #include <casa/Arrays/IPosition.h>
00038 #include <display/QtPlotter/QtCanvas.qo.h>
00039 #include <display/DisplayEvents/MWCCrosshairTool.h>
00040 #include <display/QtPlotter/QtMWCTools.qo.h>
00041 #include <display/Display/PanelDisplay.h>
00042 #include <display/Utilities/Lowlevel.h>
00043 
00044 #include <images/Regions/ImageRegion.h>
00045 #include <images/Images/ImageInterface.h>
00046 #include <measures/Measures/Stokes.h>
00047 #include <imageanalysis/ImageAnalysis/ImageAnalysis.h>
00048 #include <imageanalysis/ImageAnalysis/SpectralCollapser.h>
00049 #include <synthesis/MSVis/StokesVector.h>
00050 
00051 
00052 #include <graphics/X11/X_enter.h>
00053 #include <QDir>
00054 #include <QColor>
00055 #include <QHash>
00056 #include <QMainWindow>
00057 #include <QMouseEvent>
00058 #include <QToolButton>
00059 #include <QDialog>
00060 #include <QCheckBox>
00061 #include <QPixmap>
00062 #include <QLineEdit>
00063 #include <QComboBox>
00064 #include <map>
00065 #include <vector>
00066 #include <QHash>
00067 #include <QHashIterator>
00068 #include <graphics/X11/X_exit.h>
00069 
00070 #include <display/QtPlotter/QtProfilePrefsGUI.ui.h>
00071 
00072 namespace casa { 
00073 
00074 class QtProfilePrefs : public QDialog, Ui::QtProfilePrefsGUI{
00075         Q_OBJECT
00076 
00077 public:
00078         QtProfilePrefs(QWidget *parent = 0);
00079         QtProfilePrefs(QWidget *parent, bool stateAutoX, bool stateAutoY, int showGrid,
00080                         int stateMProf, int stateRel, bool showToolTips, bool showTopAxis,
00081                         bool displayStepFunction, bool opticalFitter, bool channelLine);
00082         ~QtProfilePrefs();
00083         void syncUserPreferences();
00084 
00085 signals:
00086         void currentPrefs(bool stateAutoX, bool stateAutoY, int showGrid, int stateMProf,
00087                         int stateRel, bool showToolTips, bool showTopAxis,
00088                         bool displayStepFunction, bool opticalFitter, bool channelLine);
00089 
00090 private slots:
00091         void accepted();
00092         void rejected();
00093         void adjustBoxes(int st);
00094 
00095 private:
00096         void initializeConnections();
00097         void persist();
00098         void reset();
00099 
00100 
00101         static const QString X_AUTO_SCALE;
00102         static const QString Y_AUTO_SCALE;
00103         static const QString SHOW_GRID;
00104         static const QString OVERLAY;
00105         static const QString RELATIVE;
00106         static const QString TOOLTIPS;
00107         static const QString TOP_AXIS;
00108         static const QString STEP_FUNCTION;
00109         static const QString OPTICAL;
00110         static const QString CHANNEL_LINE;
00111 
00112         bool xAutoScaleDefault;
00113         bool yAutoScaleDefault;
00114         bool showGridDefault;
00115         bool overlayDefault;
00116         bool relativeDefault;
00117         bool toolTipsDefault;
00118         bool topAxisDefault;
00119         bool stepFunctionDefault;
00120         bool opticalDefault;
00121         bool channelLineDefault;
00122 };
00123 
00124 }
00125 #endif
00126