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 <msvis/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,
00082                                bool channelLine, bool singleChannelImage);
00083                 ~QtProfilePrefs();
00084                 void syncUserPreferences();
00085 
00086         signals:
00087                 void currentPrefs(bool stateAutoX, bool stateAutoY, int showGrid, int stateMProf,
00088                                   int stateRel, bool showToolTips, bool showTopAxis,
00089                                   bool displayStepFunction, bool opticalFitter,
00090                                   bool channelLine, bool singleChannelImage);
00091 
00092         private slots:
00093                 void accepted();
00094                 void rejected();
00095                 void adjustBoxes(int st);
00096                 void opticalStateChanged();
00097 
00098         private:
00099                 void initializeConnections();
00100                 void persist();
00101                 void reset();
00102 
00103 
00104                 static const QString X_AUTO_SCALE;
00105                 static const QString Y_AUTO_SCALE;
00106                 static const QString SHOW_GRID;
00107                 static const QString OVERLAY;
00108                 static const QString RELATIVE;
00109                 static const QString TOOLTIPS;
00110                 static const QString TOP_AXIS;
00111                 static const QString STEP_FUNCTION;
00112                 static const QString OPTICAL;
00113                 static const QString CHANNEL_LINE;
00114                 static const QString SINGLE_CHANNEL_IMAGE;
00115 
00116                 bool xAutoScaleDefault;
00117                 bool yAutoScaleDefault;
00118                 bool showGridDefault;
00119                 bool overlayDefault;
00120                 bool relativeDefault;
00121                 bool toolTipsDefault;
00122                 bool topAxisDefault;
00123                 bool stepFunctionDefault;
00124                 bool opticalDefault;
00125                 bool channelLineDefault;
00126                 bool singleChannelImageDefault;
00127         };
00128 
00129 }
00130 #endif
00131 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1