QtProfilePrefs.qo.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
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