PlotMSIterateTab.qo.h

Go to the documentation of this file.
00001 //# PlotMSIterationTab.qo.h: Plot tab for iterated plot settings 
00002 //# Copyright (C) 2009
00003 //# Associated Universities, Inc. Washington DC, USA.
00004 //#
00005 //# This library is free software; you can redistribute it and/or modify it
00006 //# under the terms of the GNU Library General Public License as published by
00007 //# the Free Software Foundation; either version 2 of the License, or (at your
00008 //# option) any later version.
00009 //#
00010 //# This library is distributed in the hope that it will be useful, but WITHOUT
00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012 //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00013 //# License for more details.
00014 //#
00015 //# You should have received a copy of the GNU Library General Public License
00016 //# along with this library; if not, write to the Free Software Foundation,
00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
00018 //#
00019 //# Correspondence concerning AIPS++ should be addressed as follows:
00020 //#        Internet email: aips2-request@nrao.edu.
00021 //#        Postal address: AIPS++ Project Office
00022 //#                        National Radio Astronomy Observatory
00023 //#                        520 Edgemont Road
00024 //#                        Charlottesville, VA 22903-2475 USA
00025 //#
00026 //# $Id: $
00027 #ifndef PLOTMSITERATETAB_QO_H_
00028 #define PLOTMSITERATETAB_QO_H_
00029 
00030 #include <plotms/GuiTabs/PlotMSIterateTab.ui.h>
00031 
00032 #include <plotms/GuiTabs/PlotMSPlotTab.qo.h>
00033 #include <plotms/Plots/PlotMSPlotParameterGroups.h>
00034 
00035 namespace casa {
00036 
00037 //# Forward declarations.
00038 class QtLabelWidget;
00039 
00040 
00041 // Subclass of PlotMSPlotSubtab to manage plot display parameters.
00042 class PlotMSIterateTab : public PlotMSPlotSubtab, Ui::IterateTab {
00043     Q_OBJECT
00044 
00045     
00046 public:
00047 
00048     // Constructor which takes the parent tab and plotter.
00049     PlotMSIterateTab(PlotMSPlotTab* plotTab, PlotMSPlotter* parent);
00050     
00051     // Destructor.
00052     ~PlotMSIterateTab();
00053     
00054     
00055     // Implements PlotMSTab::tabName().
00056     QString tabName() const { return "Page"; }
00057     
00058     // Implements PlotMSPlotSubtab::getValue().
00059     void getValue(PlotMSPlotParameters& params) const;
00060     
00061     // Implements PlotMSPlotSubtab::setValue().
00062     void setValue(const PlotMSPlotParameters& params);
00063     
00064     // Implements PlotMSPlotSubtab::update().
00065     void update(const PlotMSPlot& plot);
00066 
00067     // Uses the index chooser at the top, with the given number of rows and
00068     // columns, to manage multi-plot display parameters.
00069     bool setGridSize(unsigned int nRows,unsigned int nCols);
00070 
00071     //Returns true if a reasonable row and column location has been
00072     //set (nonzero); false otherwise.
00073     bool isPlottable() const;
00074 
00075 signals:
00076         void plottableChanged();
00077 
00078 private slots:
00079         //Whether to use a single global axis has changed.
00080         void globalChanged();
00081         void locationChanged();
00082 
00083 private:
00084         void hideGridLocation( bool hide );
00085         void setGridIndices( int rowIndex, int colIndex );
00086 
00087 
00088         //Location of the plot
00089         int gridRow;
00090         int gridCol;
00091 };
00092     
00093     
00094 
00095     
00096 
00097 
00098 
00099 
00100 }
00101 
00102 #endif /* PLOTMSDISPLAYTAB_QO_H_ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1