casa
$Rev:20696$
|
00001 //# PlotMSDisplayTab.qo.h: Plot tab to manage plot display parameters. 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 PLOTMSDISPLAYTAB_QO_H_ 00028 #define PLOTMSDISPLAYTAB_QO_H_ 00029 00030 #include <plotms/GuiTabs/PlotMSDisplayTab.ui.h> 00031 00032 #include <plotms/GuiTabs/PlotMSPlotTab.qo.h> 00033 #include <plotms/Plots/PlotMSPlotParameterGroups.h> 00034 00035 #include <casa/namespace.h> 00036 00037 namespace casa { 00038 00039 //# Forward declarations. 00040 class PlotSymbolWidget; 00041 class QtIndexChooser; 00042 class QtLabelWidget; 00043 00044 00045 // Subclass of PlotMSPlotSubtab to manage plot display parameters. 00046 class PlotMSDisplayTab : public PlotMSPlotSubtab, Ui::DisplayTab { 00047 Q_OBJECT 00048 00049 00050 public: 00051 00052 00053 // Constructor which takes the parent tab and plotter. 00054 PlotMSDisplayTab(PlotMSPlotTab* plotTab, PlotMSPlotter* parent); 00055 00056 // Destructor. 00057 ~PlotMSDisplayTab(); 00058 00059 00060 // Implements PlotMSTab::tabName(). 00061 QString tabName() const { return "Display"; } 00062 00063 // Implements PlotMSPlotSubtab::getValue(). WARNING: for now, only works 00064 // with PlotMSSinglePlotParameters. 00065 void getValue(PlotMSPlotParameters& params) const; 00066 00067 // Implements PlotMSPlotSubtab::setValue(). WARNING: for now, only works 00068 // with PlotMSSinglePlotParameters. 00069 void setValue(const PlotMSPlotParameters& params); 00070 00071 // Implements PlotMSPlotSubtab::update(). WARNING: for now, only works 00072 // with PlotMSSinglePlotParameters. 00073 void update(const PlotMSPlot& plot); 00074 00075 00076 // Hides the index chooser at the top. 00077 void hideIndex(); 00078 00079 // Uses the index chooser at the top, with the given number of rows and 00080 // columns, to manage multi-plot display parameters. 00081 void setIndexRowsCols(unsigned int nRows, unsigned int nCols); 00082 00083 private: 00084 // Index chooser. 00085 QtIndexChooser* itsIndexChooser_; 00086 00087 // Label widget for title. 00088 QtLabelWidget* itsTitleWidget_; 00089 00090 // Symbol widgets for unflagged and flagged points, respectively. 00091 PlotSymbolWidget* itsSymbolWidget_, *itsMaskedSymbolWidget_; 00092 00093 // Display parameters. 00094 PMS_PP_Display itsPDisplay_; 00095 00096 private slots: 00097 // Slot for when the index changes. 00098 void indexChanged(unsigned int index); 00099 }; 00100 00101 } 00102 00103 #endif /* PLOTMSDISPLAYTAB_QO_H_ */