casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PlotMSDataTab.qo.h
Go to the documentation of this file.
1 //# PlotMSDataTab.qo.h: Plot tab for data parameters.
2 //# Copyright (C) 2009
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be addressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //# Charlottesville, VA 22903-2475 USA
25 //#
26 //# $Id: $
27 #ifndef PLOTMSDATATAB_QO_H_
28 #define PLOTMSDATATAB_QO_H_
29 
30 #include <plotms/GuiTabs/PlotMSDataTab.ui.h>
32 
33 namespace casa {
34 
35 //# Forward declarations
36 class PlotMSAveragingWidget;
37 class PlotMSSelectionWidget;
38 class QtFileWidget;
39 
40 
41 // Subclass of PlotMSTab that handles picking casacore::MS filename, selection, and
42 // averaging parameters.
44  Q_OBJECT
45 
46 public:
47  // Constructor which takes the parent tab and plotter.
48  PlotMSDataTab(PlotMSPlotTab* plotTab, PlotMSPlotter* parent);
49 
50  // Destructor.
51  virtual ~PlotMSDataTab();
52 
53  // Implements PlotMSPlotSubtab::getValue().
54  void getValue(PlotMSPlotParameters& params) const;
55 
56  // Implements PlotMSPlotSubtab::setValue().
57  void setValue(const PlotMSPlotParameters& params);
58 
59  // Implements PlotMSPlotSubtab::update().
60  void update(const PlotMSPlot& plot);
61 
62  QString tabName() const { return "Data"; }
63 
64  //Returns the name of the file that will be plotted.
66 
67  //Returns any selection criteria for the data.
69 
70  //Returns the type of averaging for the data.
72 
73 signals:
74  void changed();
75 
76 private:
77 
78  // Widget for casacore::MS selection.
80 
81  // Widget for casacore::MS averaging.
83 
85 
86  Ui::PlotMSDataTabClass ui;
87 
88 };
89 
90 }
91 
92 #endif /* PLOTMSDATATAB_QO_H_ */
PlotMSSelectionWidget * itsSelectionWidget_
Widget for casacore::MS selection.
Widget for choosing a file.
void setValue(const PlotMSPlotParameters &params)
Implements PlotMSPlotSubtab::setValue().
Subclass of PlotMSTab that handles picking casacore::MS filename, selection, and averaging parameters...
Parameters for a PlotMSPlot.
casacore::String getAveraging() const
Returns the type of averaging for the data.
PlotMSDataTab(PlotMSPlotTab *plotTab, PlotMSPlotter *parent)
Constructor which takes the parent tab and plotter.
QtFileWidget * itsFileWidget_
Widget for editing a PlotMSSelection object.
casacore::String getFileName() const
Returns the name of the file that will be plotted.
Subclass of PlotMSTab for tabs that are meant to be used as subtabs in a PlotMSPlotTab.
Class for a single &quot;plot&quot; concept.
Definition: PlotMSPlot.h:57
GUI widget for editing a PlotMSAveraging object.
virtual ~PlotMSDataTab()
Destructor.
Ui::PlotMSDataTabClass ui
String: the storage and methods of handling collections of characters.
Definition: String.h:223
void getValue(PlotMSPlotParameters &params) const
Implements PlotMSPlotSubtab::getValue().
High(ish)-level plotter class that manages the GUI (semi-) transparently to the rest of PlotMS...
casacore::String getSelection() const
Returns any selection criteria for the data.
Subclass of PlotMSTab that manages PlotMSPlots in the GUI.
void update(const PlotMSPlot &plot)
Implements PlotMSPlotSubtab::update().
PlotMSAveragingWidget * itsAveragingWidget_
Widget for casacore::MS averaging.
QString tabName() const
Returns a string to use as the tab name for this widget.