casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Slots | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | Friends
casa::PlotMSPlotTab Class Reference

Subclass of PlotMSTab that manages PlotMSPlots in the GUI. More...

#include <PlotMSPlotTab.qo.h>

Inheritance diagram for casa::PlotMSPlotTab:
casa::PlotMSTab casa::PlotMSPlotManagerWatcher casa::PlotMSParametersWatcher

List of all members.

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 &params, int updateFlag)
 Implements PlotMSParametersWatcher::parametersHaveChanged().
void plotsChanged (const PlotMSPlotManager &manager)
 Implements PlotMSPlotManagerWatcher::plotsChanged().
PlotMSPlotcurrentPlot () 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.
PlotMSAxesTabaddAxesSubtab ()
 Inserts one of the known subtab types if it is not already present, and returns a pointer to it.
PlotMSAxesTabinsertAxesSubtab (int index)
PlotMSCacheTabaddCacheSubtab ()
PlotMSCacheTabinsertCacheSubtab (int index)
PlotMSCanvasTabaddCanvasSubtab ()
PlotMSCanvasTabinsertCanvasSubtab (int index)
PlotMSDataTabaddDataSubtab ()
PlotMSDataTabinsertDataSubtab (int index)
PlotMSDisplayTabaddDisplaySubtab ()
PlotMSDisplayTabinsertDisplaySubtab (int index)
PlotMSIterateTabaddIterateSubtab ()
PlotMSIterateTabinsertIterateSubtab (int index)
PlotMSExportTabaddExportSubtab ()
PlotMSExportTabinsertExportSubtab (int index)
PlotMSTransformationsTabaddTransformationsSubtab ()
PlotMSTransformationsTabinsertTransformationsSubtab (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.
PlotMSPlotManageritsPlotManager_
 Reference to plot manager.
PlotMSPlotitsCurrentPlot_
 Currently selected plot.
PlotMSPlotParametersitsCurrentParameters_
 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

Detailed Description

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.


Constructor & Destructor Documentation

Constructor which takes the parent plotter.

Destructor.


Member Function Documentation

Inserts one of the known subtab types if it is not already present, and returns a pointer to it.

void casa::PlotMSPlotTab::addSubtab ( PlotMSPlotSubtab tab) [protected]

Adds the given subtab to the end of the tab widget.

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).

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.

void casa::PlotMSPlotTab::insertSubtab ( int  index,
PlotMSPlotSubtab tab 
) [protected]

Inserts the given subtab in the tab widget.

PMS::SummaryType casa::PlotMSPlotTab::msSummaryType ( ) const

Returns the MS summary type the user has selected.

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]
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.

template<class T >
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.


Friends And Related Function Documentation

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.


Member Data Documentation

Definition at line 233 of file PlotMSPlotTab.qo.h.

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.

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.

PlotMSPlotSubtab objects in tab widget.

Definition at line 213 of file PlotMSPlotTab.qo.h.

Referenced by subtab().

Whether or not to check for changed parameters and update the GUI accordingly.

Definition at line 226 of file PlotMSPlotTab.qo.h.


The documentation for this class was generated from the following file: