casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PlotMSDisplayTab.qo.h
Go to the documentation of this file.
1 //# PlotMSDisplayTab.qo.h: Plot tab to manage plot display 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 PLOTMSDISPLAYTAB_QO_H_
28 #define PLOTMSDISPLAYTAB_QO_H_
29 
30 #include <plotms/GuiTabs/PlotMSDisplayTab.ui.h>
31 
34 
35 namespace casa {
36 
37 //# Forward declarations.
38 class PlotMSDataSymbolWidget;
39 
40 
41 // Subclass of PlotMSPlotSubtab to manage plot display parameters.
42 class PlotMSDisplayTab : public PlotMSPlotSubtab, Ui::DisplayTab {
43  Q_OBJECT
44 
45 
46 public:
47 
48  // Constructor which takes the parent tab and plotter.
49  PlotMSDisplayTab(PlotMSPlotTab* plotTab, PlotMSPlotter* parent);
50 
51  // Destructor.
53 
54 
55  // Implements PlotMSTab::tabName().
56  QString tabName() const { return "Display"; }
57 
58  // Implements PlotMSPlotSubtab::getValue(). WARNING: for now, only works
59  // with PlotMSSinglePlotParameters.
60  void getValue(PlotMSPlotParameters& params) const;
61 
62  // Implements PlotMSPlotSubtab::setValue(). WARNING: for now, only works
63  // with PlotMSSinglePlotParameters.
64  void setValue(const PlotMSPlotParameters& params);
65 
66  // Implements PlotMSPlotSubtab::update(). WARNING: for now, only works
67  // with PlotMSSinglePlotParameters.
68  void update(const PlotMSPlot& plot);
69 
70  //Support for overplotting with multiple y-axes.
71  void setAxisIdentifier( int index, QString id );
72  void removeAxisIdentifier( int index );
73 
74 private slots:
75  void updateText( QLabel* source, bool highlight );
76  void changeSymbolViewed();
77 
78 
79 private:
80  void makeDataSymbol();
82 
83  QList<PlotMSDataSymbolWidget*> dataSymbols;
84 
85 
86 };
87 
88 }
89 
90 #endif /* PLOTMSDISPLAYTAB_QO_H_ */
QList< PlotMSDataSymbolWidget * > dataSymbols
~PlotMSDisplayTab()
Destructor.
PlotMSDisplayTab(PlotMSPlotTab *plotTab, PlotMSPlotter *parent)
Constructor which takes the parent tab and plotter.
void setAxisIdentifier(int index, QString id)
Support for overplotting with multiple y-axes.
void updateText(QLabel *source, bool highlight)
Parameters for a PlotMSPlot.
void setValue(const PlotMSPlotParameters &params)
Implements PlotMSPlotSubtab::setValue().
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
void removeAxisIdentifier(int index)
void getValue(PlotMSPlotParameters &params) const
Implements PlotMSPlotSubtab::getValue().
High(ish)-level plotter class that manages the GUI (semi-) transparently to the rest of PlotMS...
QString tabName() const
Implements PlotMSTab::tabName().
Subclass of PlotMSPlotSubtab to manage plot display parameters.
Subclass of PlotMSTab that manages PlotMSPlots in the GUI.
void update(const PlotMSPlot &plot)
Implements PlotMSPlotSubtab::update().