casa
$Rev:20696$
|
Subclass of PlotMSTab that manages PlotMSPlots in the GUI. More...
#include <PlotMSPlotTab.qo.h>
Public Slots | |
void | plot () |
void | observeModKeys () |
Public Member Functions | |
PlotMSPlotTab (PlotMSPlotter *parent) | |
Constructor which takes the parent plotter. | |
~PlotMSPlotTab () | |
Destructor. | |
QString | tabName () const |
Implements PlotMSTab::tabName(). | |
QList< QToolButton * > | toolButtons () const |
Overrides PlotMSTab::toolButtons(). | |
void | parametersHaveChanged (const PlotMSWatchedParameters ¶ms, int updateFlag) |
Implements PlotMSParametersWatcher::parametersHaveChanged(). | |
void | plotsChanged (const PlotMSPlotManager &manager) |
Implements PlotMSPlotManagerWatcher::plotsChanged(). | |
PlotMSPlot * | currentPlot () const |
Returns the currently selected plot. | |
PlotMSPlotParameters | currentlySetParameters () const |
Returns the parameters currently set by the user on the GUI (but NOT necessarily set on the underlying plot parameters). | |
PlotExportFormat | currentlySetExportFormat () const |
Returns the PlotExportFormat currently set by the user on the GUI. | |
vector< PMS::Axis > | selectedLoadAxes () const |
Returns the axes that the user has selected to load into the cache. | |
vector< PMS::Axis > | selectedReleaseAxes () const |
Returns the axes that the user has selected to release from the cache. | |
bool | msSummaryVerbose () const |
Returns the MS summary type the user has selected. | |
PMS::SummaryType | msSummaryType () const |
Protected Member Functions | |
void | clearSubtabs () |
Clears set subtabs. | |
void | clearSubtabsAfter (int index) |
Clears set subtabs after (and including) the given index. | |
void | addSubtab (PlotMSPlotSubtab *tab) |
Adds the given subtab to the end of the tab widget. | |
void | insertSubtab (int index, PlotMSPlotSubtab *tab) |
Inserts the given subtab in the tab widget. | |
PlotMSAxesTab * | addAxesSubtab () |
Inserts one of the known subtab types if it is not already present, and returns a pointer to it. | |
PlotMSAxesTab * | insertAxesSubtab (int index) |
PlotMSCacheTab * | addCacheSubtab () |
PlotMSCacheTab * | insertCacheSubtab (int index) |
PlotMSCanvasTab * | addCanvasSubtab () |
PlotMSCanvasTab * | insertCanvasSubtab (int index) |
PlotMSDataTab * | addDataSubtab () |
PlotMSDataTab * | insertDataSubtab (int index) |
PlotMSDisplayTab * | addDisplaySubtab () |
PlotMSDisplayTab * | insertDisplaySubtab (int index) |
PlotMSIterateTab * | addIterateSubtab () |
PlotMSIterateTab * | insertIterateSubtab (int index) |
PlotMSExportTab * | addExportSubtab () |
PlotMSExportTab * | insertExportSubtab (int index) |
PlotMSTransformationsTab * | addTransformationsSubtab () |
PlotMSTransformationsTab * | insertTransformationsSubtab (int index) |
template<class T > | |
T * | subtab () |
Returns the first subtab with the given type, or NULL if there are none of that type. | |
Private Slots | |
void | goChanged (int index) |
Slot for when the user changes the "go" chooser on the top. | |
void | goClicked () |
Slot for when the user clicks "go" on the top of the tab. | |
void | tabChanged () |
Slot for when the user changes the value for any parameters. | |
Private Member Functions | |
void | setupForPlot (PlotMSPlot *plot) |
Sets up the GUI to display the parameters for the given plot. | |
vector< PMS::Axis > | selectedLoadOrReleaseAxes (bool load) const |
Returns the axes the user has selected to load or release, depending on the load flag. | |
Private Attributes | |
QList< PlotMSPlotSubtab * > | itsSubtabs_ |
PlotMSPlotSubtab objects in tab widget. | |
PlotMSPlotManager & | itsPlotManager_ |
Reference to plot manager. | |
PlotMSPlot * | itsCurrentPlot_ |
Currently selected plot. | |
PlotMSPlotParameters * | itsCurrentParameters_ |
Parameters for the currently selected plot. | |
bool | itsUpdateFlag_ |
Whether or not to check for changed parameters and update the GUI accordingly. | |
Qt::KeyboardModifiers | itsModKeys |
Bitflags report if shift, etc were down during click of Plot button. | |
bool | its_force_reload |
Flag set if user uses shift+plot or otherwise requests reload&replot. | |
int | forceReloadCounter_ |
Friends | |
class | PlotMSOverPlot |
class | PlotMSPlot |
class | PlotMSPlotter |
class | PlotMSIterPlot |
Subclass of PlotMSTab that manages PlotMSPlots in the GUI.
Watches the current PlotMSPlot's parameters for changes to update the GUI as needed and watches the PlotMSPlotManager for changes to the plots.
Definition at line 100 of file PlotMSPlotTab.qo.h.
casa::PlotMSPlotTab::PlotMSPlotTab | ( | PlotMSPlotter * | parent | ) |
Constructor which takes the parent plotter.
Destructor.
PlotMSAxesTab* casa::PlotMSPlotTab::addAxesSubtab | ( | ) | [protected] |
Inserts one of the known subtab types if it is not already present, and returns a pointer to it.
PlotMSCacheTab* casa::PlotMSPlotTab::addCacheSubtab | ( | ) | [protected] |
PlotMSCanvasTab* casa::PlotMSPlotTab::addCanvasSubtab | ( | ) | [protected] |
PlotMSDataTab* casa::PlotMSPlotTab::addDataSubtab | ( | ) | [protected] |
PlotMSDisplayTab* casa::PlotMSPlotTab::addDisplaySubtab | ( | ) | [protected] |
PlotMSExportTab* casa::PlotMSPlotTab::addExportSubtab | ( | ) | [protected] |
PlotMSIterateTab* casa::PlotMSPlotTab::addIterateSubtab | ( | ) | [protected] |
void casa::PlotMSPlotTab::addSubtab | ( | PlotMSPlotSubtab * | tab | ) | [protected] |
Adds the given subtab to the end of the tab widget.
PlotMSTransformationsTab* casa::PlotMSPlotTab::addTransformationsSubtab | ( | ) | [protected] |
void casa::PlotMSPlotTab::clearSubtabs | ( | ) | [protected] |
Clears set subtabs.
void casa::PlotMSPlotTab::clearSubtabsAfter | ( | int | index | ) | [protected] |
Clears set subtabs after (and including) the given index.
Returns the PlotExportFormat currently set by the user on the GUI.
Returns the parameters currently set by the user on the GUI (but NOT necessarily set on the underlying plot parameters).
PlotMSPlot* casa::PlotMSPlotTab::currentPlot | ( | ) | const |
Returns the currently selected plot.
void casa::PlotMSPlotTab::goChanged | ( | int | index | ) | [private, slot] |
Slot for when the user changes the "go" chooser on the top.
void casa::PlotMSPlotTab::goClicked | ( | ) | [private, slot] |
Slot for when the user clicks "go" on the top of the tab.
PlotMSAxesTab* casa::PlotMSPlotTab::insertAxesSubtab | ( | int | index | ) | [protected] |
PlotMSCacheTab* casa::PlotMSPlotTab::insertCacheSubtab | ( | int | index | ) | [protected] |
PlotMSCanvasTab* casa::PlotMSPlotTab::insertCanvasSubtab | ( | int | index | ) | [protected] |
PlotMSDataTab* casa::PlotMSPlotTab::insertDataSubtab | ( | int | index | ) | [protected] |
PlotMSDisplayTab* casa::PlotMSPlotTab::insertDisplaySubtab | ( | int | index | ) | [protected] |
PlotMSExportTab* casa::PlotMSPlotTab::insertExportSubtab | ( | int | index | ) | [protected] |
PlotMSIterateTab* casa::PlotMSPlotTab::insertIterateSubtab | ( | int | index | ) | [protected] |
void casa::PlotMSPlotTab::insertSubtab | ( | int | index, |
PlotMSPlotSubtab * | tab | ||
) | [protected] |
Inserts the given subtab in the tab widget.
PlotMSTransformationsTab* casa::PlotMSPlotTab::insertTransformationsSubtab | ( | int | index | ) | [protected] |
PMS::SummaryType casa::PlotMSPlotTab::msSummaryType | ( | ) | const |
bool casa::PlotMSPlotTab::msSummaryVerbose | ( | ) | const |
Returns the MS summary type the user has selected.
void casa::PlotMSPlotTab::observeModKeys | ( | ) | [slot] |
void casa::PlotMSPlotTab::parametersHaveChanged | ( | const PlotMSWatchedParameters & | params, |
int | updateFlag | ||
) | [virtual] |
Implements PlotMSParametersWatcher::parametersHaveChanged().
Updates the GUI as needed if the given parameters are the current PlotMSPlot's parameters.
Implements casa::PlotMSParametersWatcher.
void casa::PlotMSPlotTab::plot | ( | ) | [slot] |
Slot for doing the plot, using the parameters set on the GUI for the current plot.
void casa::PlotMSPlotTab::plotsChanged | ( | const PlotMSPlotManager & | manager | ) | [virtual] |
Implements PlotMSPlotManagerWatcher::plotsChanged().
Implements casa::PlotMSPlotManagerWatcher.
vector<PMS::Axis> casa::PlotMSPlotTab::selectedLoadAxes | ( | ) | const [inline] |
Returns the axes that the user has selected to load into the cache.
Definition at line 146 of file PlotMSPlotTab.qo.h.
References selectedLoadOrReleaseAxes().
vector<PMS::Axis> casa::PlotMSPlotTab::selectedLoadOrReleaseAxes | ( | bool | load | ) | const [private] |
Returns the axes the user has selected to load or release, depending on the load flag.
Referenced by selectedLoadAxes(), and selectedReleaseAxes().
vector<PMS::Axis> casa::PlotMSPlotTab::selectedReleaseAxes | ( | ) | const [inline] |
Returns the axes that the user has selected to release from the cache.
Definition at line 150 of file PlotMSPlotTab.qo.h.
References selectedLoadOrReleaseAxes().
void casa::PlotMSPlotTab::setupForPlot | ( | PlotMSPlot * | plot | ) | [private] |
Sets up the GUI to display the parameters for the given plot.
T* casa::PlotMSPlotTab::subtab | ( | ) | [inline, protected] |
Returns the first subtab with the given type, or NULL if there are none of that type.
Definition at line 204 of file PlotMSPlotTab.qo.h.
References itsSubtabs_.
void casa::PlotMSPlotTab::tabChanged | ( | ) | [private, slot] |
Slot for when the user changes the value for any parameters.
Updates the GUI to show which parameters have been changed (if any).
QString casa::PlotMSPlotTab::tabName | ( | ) | const [inline, virtual] |
Implements PlotMSTab::tabName().
Implements casa::PlotMSTab.
Definition at line 119 of file PlotMSPlotTab.qo.h.
QList<QToolButton*> casa::PlotMSPlotTab::toolButtons | ( | ) | const [virtual] |
Overrides PlotMSTab::toolButtons().
Should be called AFTER any tabs are added using addTab().
Reimplemented from casa::PlotMSTab.
friend class PlotMSIterPlot [friend] |
Definition at line 108 of file PlotMSPlotTab.qo.h.
friend class PlotMSOverPlot [friend] |
Definition at line 105 of file PlotMSPlotTab.qo.h.
friend class PlotMSPlot [friend] |
Definition at line 106 of file PlotMSPlotTab.qo.h.
friend class PlotMSPlotter [friend] |
Definition at line 107 of file PlotMSPlotTab.qo.h.
int casa::PlotMSPlotTab::forceReloadCounter_ [private] |
Definition at line 233 of file PlotMSPlotTab.qo.h.
bool casa::PlotMSPlotTab::its_force_reload [private] |
Flag set if user uses shift+plot or otherwise requests reload&replot.
Definition at line 232 of file PlotMSPlotTab.qo.h.
Parameters for the currently selected plot.
Definition at line 222 of file PlotMSPlotTab.qo.h.
PlotMSPlot* casa::PlotMSPlotTab::itsCurrentPlot_ [private] |
Currently selected plot.
Definition at line 219 of file PlotMSPlotTab.qo.h.
Qt::KeyboardModifiers casa::PlotMSPlotTab::itsModKeys [private] |
Bitflags report if shift, etc were down during click of Plot button.
Definition at line 229 of file PlotMSPlotTab.qo.h.
Reference to plot manager.
Definition at line 216 of file PlotMSPlotTab.qo.h.
QList<PlotMSPlotSubtab*> casa::PlotMSPlotTab::itsSubtabs_ [private] |
PlotMSPlotSubtab objects in tab widget.
Definition at line 213 of file PlotMSPlotTab.qo.h.
Referenced by subtab().
bool casa::PlotMSPlotTab::itsUpdateFlag_ [private] |
Whether or not to check for changed parameters and update the GUI accordingly.
Definition at line 226 of file PlotMSPlotTab.qo.h.