Preferences.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 #ifndef PREFERENCES_QO_H
00026 #define PREFERENCES_QO_H
00027 
00028 #include <QtGui/QDialog>
00029 #include <guitools/Feather/Preferences.ui.h>
00030 
00031 namespace casa {
00032 
00033 class Preferences : public QDialog
00034 {
00035     Q_OBJECT
00036 
00037 public:
00038     const static QString ORGANIZATION;
00039     const static QString APPLICATION;
00040     Preferences(QWidget *parent = 0);
00041     void setPlaneCount( int count );
00042     bool isDisplayOutputFunctions() const;
00043     bool isDisplayLegend() const;
00044     bool isDisplayOutputScatterPlot() const;
00045     bool isDisplayX() const;
00046     bool isDisplayY() const;
00047     bool isLogAmplitude() const;
00048     bool isLogUV() const;
00049     bool isXAxisUV() const;
00050     bool isPlaneAveraged() const;
00051     int getPlaneIndex() const;
00052     int getLineThickness() const;
00053     int getDotSize() const;
00054     ~Preferences();
00055 
00056 
00057 signals:
00058         void preferencesChanged();
00059 
00060 private slots:
00061         void preferencesAccepted();
00062         void preferencesRejected();
00063         void xAxisChanged();
00064         void planeModeChanged();
00065 
00066 private:
00067         void initializeCustomSettings();
00068         void persist();
00069         void reset();
00070 
00071         const static QString LINE_THICKNESS;
00072         const static QString DISPLAY_OUTPUT_FUNCTIONS;
00073         const static QString DISPLAY_LEGEND;
00074         const static QString DISPLAY_OUTPUT_SCATTERPLOT;
00075         const static QString DISPLAY_Y_PLOTS;
00076         const static QString DISPLAY_X_PLOTS;
00077         const static QString DOT_SIZE;
00078         const static QString LOG_AMPLITUDE;
00079         const static QString LOG_UV;
00080         const static QString DISPLAY_X_AXIS_UV;
00081         const static QString PLANE_AVERAGED;
00082 
00083     Ui::PreferencesClass ui;
00084     int lineThickness;
00085     int dotSize;
00086     bool displayOutputFunctions;
00087     bool displayOutputScatterPlot;
00088     bool displayYPlots;
00089     bool displayXPlots;
00090     bool displayLegend;
00091     bool logAmplitude;
00092     bool logUV;
00093     bool xAxisUV;
00094     bool planeAveraged;
00095     int planeIndex;
00096 };
00097 
00098 }
00099 
00100 #endif // PREFERENCES_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1