casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PlotMSOptionsTab.qo.h
Go to the documentation of this file.
1 //# PlotMSOptionsTab.qo.h: Subclass of PlotMSTab for plotms options.
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 PLOTMSOPTIONSTAB_QO_H_
28 #define PLOTMSOPTIONSTAB_QO_H_
29 
30 #include <plotms/GuiTabs/PlotMSOptionsTab.ui.h>
31 
33 
34 namespace casa {
35 
36 //# Forward declarations.
37 class PlotMSLoggerWidget;
38 class PlotMSParameters;
39 
40 
41 // Subclass of PlotMSTab that handles options for PlotMSPlotter. Watches
42 // PlotMS's PlotMSParameters for changes to update the GUI as needed.
43 class PlotMSOptionsTab : public PlotMSTab, Ui::OptionsTab {
44  Q_OBJECT
45 
46 public:
47  // Constructor which takes the parent plotter.
49 
50  // Destructor.
52 
53 
54  // Implements PlotMSTab::tabName().
55  QString tabName() const { return "Options"; }
56 
57  // Implements PlotMSParametersWatcher::parametersHaveChanged(). Updates
58  // the GUI as needed if the given parameters are the PlotMS parent's
59  // parameters.
61  int updateFlag);
62 
63  // Overrides PlotMSTab::setupForMaxWidth(). MUST be called before being
64  // used, as it sets up the logging widget with it.
65  void setupForMaxWidth(int maxWidth);
66 
67 private:
68  // Watched parameters for PlotMS.
70 
71  // Flag for changing the parameters.
73 
74  // Logger widget.
76 
77 private slots:
78  // When the user changes the tool button style on the GUI.
79  void toolButtonStyleChanged(int newIndex);
80 
81  // When the user changes the log events or priority on the GUI.
82  void logChanged();
83 
84  // When the user changes the "clear selection" on the GUI.
85  void clearSelectionChanged(bool value);
86 
87  // When the user changes the cached image size.
89 
90  // When the user sets the cached image size to screen resolution.
92 
93  // When the user changes the file chooser history limit.
94  void historyLimitChanged();
95 
96  //When the grid size changes.
97  void gridChanged();
98  void updateGrid();
99 };
100 
101 }
102 
103 #endif /* PLOTMSOPTIONSTAB_QO_H_ */
PlotMSLoggerWidget * itsLoggerWidget_
Logger widget.
Widget to set log events and priority filter.
void parametersHaveChanged(const PlotMSWatchedParameters &params, int updateFlag)
Implements PlotMSParametersWatcher::parametersHaveChanged().
Subclass of PlotMSWatchedParameters that hold parameters for the whole plotter.
void clearSelectionChanged(bool value)
When the user changes the &quot;clear selection&quot; on the GUI.
Abstract class for parameters that may be watched by one or more interested classes.
QString tabName() const
Implements PlotMSTab::tabName().
void toolButtonStyleChanged(int newIndex)
When the user changes the tool button style on the GUI.
void gridChanged()
When the grid size changes.
void logChanged()
When the user changes the log events or priority on the GUI.
void cachedImageSizeChanged()
When the user changes the cached image size.
bool itsChangeFlag_
Flag for changing the parameters.
Subclass of PlotMSTab that handles options for PlotMSPlotter.
void cachedImageSizeScreenResolution()
When the user sets the cached image size to screen resolution.
PlotMSOptionsTab(PlotMSPlotter *parent)
Constructor which takes the parent plotter.
~PlotMSOptionsTab()
Destructor.
Abstract parent for any widget that goes in the tabbed side panel of the PlotMSPlotter.
Definition: PlotMSTab.qo.h:48
void setupForMaxWidth(int maxWidth)
Overrides PlotMSTab::setupForMaxWidth().
High(ish)-level plotter class that manages the GUI (semi-) transparently to the rest of PlotMS...
void historyLimitChanged()
When the user changes the file chooser history limit.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
PlotMSParameters & itsParameters_
Watched parameters for PlotMS.