00001 #ifndef RESIDUALHISTOGRAMDIALOG_QO_H 00002 #define RESIDUALHISTOGRAMDIALOG_QO_H 00003 00004 //# Copyright (C) 1994,1995,1996,1997,1998,1999,2000 00005 //# Associated Universities, Inc. Washington DC, USA. 00006 //# 00007 //# This library is free software; you can redistribute it and/or modify it 00008 //# under the terms of the GNU Library General Public License as published by 00009 //# the Free Software Foundation; either version 2 of the License, or (at your 00010 //# option) any later version. 00011 //# 00012 //# This library is distributed in the hope that it will be useful, but WITHOUT 00013 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00014 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00015 //# License for more details. 00016 //# 00017 //# You should have received a copy of the GNU Library General Public License 00018 //# along with this library; if not, write to the Free Software Foundation, 00019 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA. 00020 //# 00021 //# Correspondence concerning AIPS++ should be addressed as follows: 00022 //# Internet email: aips2-request@nrao.edu. 00023 //# Postal address: AIPS++ Project Office 00024 //# National Radio Astronomy Observatory 00025 //# 520 Edgemont Road 00026 //# Charlottesville, VA 22903-2475 USA 00027 //# 00028 #include <QtGui/QDialog> 00029 #include <display/Fit/ResidualHistogramDialog.ui.h> 00030 #include <casa/aips.h> 00031 #include <casa/BasicSL/String.h> 00032 #include <casa/Utilities/CountedPtr.h> 00033 00034 namespace casa { 00035 00036 template <class T> class ImageInterface; 00037 class BinPlotWidget; 00038 00039 class ResidualHistogramDialog : public QDialog { 00040 Q_OBJECT 00041 00042 public: 00043 ResidualHistogramDialog(QWidget *parent = 0); 00044 bool setImage( const String& path ); 00045 ~ResidualHistogramDialog(); 00046 00047 private: 00048 ResidualHistogramDialog( const ResidualHistogramDialog& other ); 00049 ResidualHistogramDialog operator=( const ResidualHistogramDialog& other ); 00050 BinPlotWidget* plotWidget; 00051 SHARED_PTR<const ImageInterface<Float> > residualImage; 00052 Ui::ResidualHistogramDialogClass ui; 00053 }; 00054 } 00055 00056 #endif // RESIDUALHISTOGRAMDIALOG_QO_H