repository for casafeather app
Source
displayOutputScatterPlot = settings.value( DISPLAY_OUTPUT_SCATTERPLOT, displayOutputScatterPlot).toBool();
//# Copyright (C) 2005
//# Associated Universities, Inc. Washington DC, USA.
//#
//# This library is free software; you can redistribute it and/or modify it
//# under the terms of the GNU Library General Public License as published by
//# the Free Software Foundation; either version 2 of the License, or (at your
//# option) any later version.
//#
//# This library is distributed in the hope that it will be useful, but WITHOUT
//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
//# License for more details.
//#
//# You should have received a copy of the GNU Library General Public License
//# along with this library; if not, write to the Free Software Foundation,
//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
//#
//# Correspondence concerning AIPS++ should be addressed as follows:
//# Internet email: casa-feedback@nrao.edu.
//# Postal address: AIPS++ Project Office
//# National Radio Astronomy Observatory
//# 520 Edgemont Road
//# Charlottesville, VA 22903-2475 USA
//#
namespace casa {
const QString FeatherPreferences::ORGANIZATION = "NRAO/CASA";
const QString FeatherPreferences::APPLICATION = "Feather";
const QString FeatherPreferences::LINE_THICKNESS = "Plot Line Thickness";
const QString FeatherPreferences::DOT_SIZE = "Dot Size";
const QString FeatherPreferences::DISPLAY_LEGEND = "Display Legend";
const QString FeatherPreferences::DISPLAY_OUTPUT_FUNCTIONS = "Display Output Functions";
const QString FeatherPreferences::DISPLAY_OUTPUT_SCATTERPLOT = "Display Output Scatter Plot";
const QString FeatherPreferences::DISPLAY_Y_PLOTS = "Display Y Plots";
const QString FeatherPreferences::DISPLAY_X_PLOTS = "Display X Plots";
const QString FeatherPreferences::DISPLAY_X_AXIS_UV = "Display X Axis U/V";
const QString FeatherPreferences::LOG_AMPLITUDE = "Logarithm of Amplitude";
const QString FeatherPreferences::LOG_UV = "Logarithm of u/v Axis";
const QString FeatherPreferences::PLANE_AVERAGED = "Plane Averaged";
FeatherPreferences::FeatherPreferences(QWidget *parent)
: QDialog(parent),
lineThickness( 1 ),
dotSize( 2 ),
displayOutputFunctions( true ),
displayOutputScatterPlot( false ),
displayYPlots( true ),
displayXPlots( true ),
displayLegend(true),
logAmplitude(true),
logUV(false),
xAxisUV(false),
planeAveraged(true),
planeIndex(0){
ui.setupUi(this);
setWindowTitle( "Feather Plot Display");
setModal( false );
//Plane initialization
ui.planeMaxLabel->setText("");
ui.planeLineEdit->setText( "0");
QButtonGroup* bGroup = new QButtonGroup( this );
bGroup->addButton( ui.singlePlaneRadio );
bGroup->addButton( ui.averagedPlaneRadio );
connect( ui.singlePlaneRadio, SIGNAL(clicked()), this, SLOT(planeModeChanged()) );
connect( ui.averagedPlaneRadio, SIGNAL(clicked()), this, SLOT(planeModeChanged()) );
QIntValidator* planeValidator = new QIntValidator( 0, std::numeric_limits<int>::max(),this );
ui.planeLineEdit->setValidator( planeValidator );
QPalette palette = ui.planeMaxLabel->palette();
palette.setColor(QPalette::WindowText, Qt::red );
palette.setColor(QPalette::Foreground, Qt::red );
ui.planeMaxLabel->setPalette( palette );
ui.lineThicknessSpinBox->setMinimum( 1 );
ui.lineThicknessSpinBox->setMaximum( 5 );
ui.dotSizeSpinBox->setMinimum( 1 );
ui.dotSizeSpinBox->setMaximum( 10 );
//xAxis Units
QButtonGroup* xAxisGroup = new QButtonGroup( this );
xAxisGroup->addButton( ui.axisUVRadio );