casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Slots | Private Attributes | List of all members
casa::PlotMSOptionsTab Class Reference

Subclass of PlotMSTab that handles options for PlotMSPlotter. More...

#include <PlotMSOptionsTab.qo.h>

Inheritance diagram for casa::PlotMSOptionsTab:
casa::PlotMSTab casa::PlotMSParametersWatcher

Public Member Functions

 PlotMSOptionsTab (PlotMSPlotter *parent)
 Constructor which takes the parent plotter. More...
 
 ~PlotMSOptionsTab ()
 Destructor. More...
 
QString tabName () const
 Implements PlotMSTab::tabName(). More...
 
void parametersHaveChanged (const PlotMSWatchedParameters &params, int updateFlag)
 Implements PlotMSParametersWatcher::parametersHaveChanged(). More...
 
void setupForMaxWidth (int maxWidth)
 Overrides PlotMSTab::setupForMaxWidth(). More...
 
- Public Member Functions inherited from casa::PlotMSTab
 PlotMSTab (PlotMSPlotter *parent)
 Non-Static //. More...
 
virtual ~PlotMSTab ()
 Destructor. More...
 
virtual QList< QToolButton * > toolButtons () const
 Returns all tool buttons on this tab. More...
 
- Public Member Functions inherited from casa::PlotMSParametersWatcher
 PlotMSParametersWatcher ()
 Constructor. More...
 
virtual ~PlotMSParametersWatcher ()
 Destructor. More...
 

Private Slots

void toolButtonStyleChanged (int newIndex)
 When the user changes the tool button style on the GUI. More...
 
void logChanged ()
 When the user changes the log events or priority on the GUI. More...
 
void clearSelectionChanged (bool value)
 When the user changes the "clear selection" on the GUI. More...
 
void cachedImageSizeChanged ()
 When the user changes the cached image size. More...
 
void cachedImageSizeScreenResolution ()
 When the user sets the cached image size to screen resolution. More...
 
void historyLimitChanged ()
 When the user changes the file chooser history limit. More...
 
void gridChanged ()
 When the grid size changes. More...
 
void updateGrid ()
 

Private Attributes

PlotMSParametersitsParameters_
 Watched parameters for PlotMS. More...
 
bool itsChangeFlag_
 Flag for changing the parameters. More...
 
PlotMSLoggerWidgetitsLoggerWidget_
 Logger widget. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from casa::PlotMSTab
static bool setChooser (QComboBox *chooser, const QString &value)
 Static //. More...
 
static bool setChooser (QComboBox *chooser, const casacore::String &value)
 
static bool setChooser (QComboBox *chooser, const char *value)
 
- Protected Member Functions inherited from casa::PlotMSTab
void highlightWidgetText (QLabel *label, bool highlight)
 These alter the displayed text of Some widget types have a.title not a.text, and there's no Qt4 abstract class that encompasses all types that do have.text, so we overload highlightWidgetText for several classes. More...
 
void highlightWidgetText (QGroupBox *box, bool highlight)
 
void highlightWidgetText (QAbstractButton *but, bool highlight)
 
- Static Protected Member Functions inherited from casa::PlotMSTab
static QString highlightifyText (const QString &text, bool highlight)
 Returns the given text altered with HTML tags for highlighting, meant to be assigned to a Qt widget's title or similar property. More...
 
static QString highlightifyText (const casacore::String &text, bool changed)
 Variation taking a casacore String. More...
 
static QString highlightifyText (const char *text, bool changed)
 Variation of highlightifyText taking plain C-style text. More...
 
- Protected Attributes inherited from casa::PlotMSTab
PlotMSAppitsParent_
 Parent. More...
 
PlotMSPlotteritsPlotter_
 Plotter. More...
 
QMap< QLabel *, QString > itsLabelDefaults_
 Default text for labels, so that they can be easily switched to red or normal depending on whether the item has changed or not. More...
 

Detailed Description

Subclass of PlotMSTab that handles options for PlotMSPlotter.

Watches PlotMS's PlotMSParameters for changes to update the GUI as needed.

Definition at line 43 of file PlotMSOptionsTab.qo.h.

Constructor & Destructor Documentation

casa::PlotMSOptionsTab::PlotMSOptionsTab ( PlotMSPlotter parent)

Constructor which takes the parent plotter.

casa::PlotMSOptionsTab::~PlotMSOptionsTab ( )

Destructor.

Member Function Documentation

void casa::PlotMSOptionsTab::cachedImageSizeChanged ( )
privateslot

When the user changes the cached image size.

void casa::PlotMSOptionsTab::cachedImageSizeScreenResolution ( )
privateslot

When the user sets the cached image size to screen resolution.

void casa::PlotMSOptionsTab::clearSelectionChanged ( bool  value)
privateslot

When the user changes the "clear selection" on the GUI.

void casa::PlotMSOptionsTab::gridChanged ( )
privateslot

When the grid size changes.

void casa::PlotMSOptionsTab::historyLimitChanged ( )
privateslot

When the user changes the file chooser history limit.

void casa::PlotMSOptionsTab::logChanged ( )
privateslot

When the user changes the log events or priority on the GUI.

void casa::PlotMSOptionsTab::parametersHaveChanged ( const PlotMSWatchedParameters params,
int  updateFlag 
)
virtual

Implements PlotMSParametersWatcher::parametersHaveChanged().

Updates the GUI as needed if the given parameters are the PlotMS parent's parameters.

Implements casa::PlotMSParametersWatcher.

void casa::PlotMSOptionsTab::setupForMaxWidth ( int  maxWidth)
virtual

Overrides PlotMSTab::setupForMaxWidth().

MUST be called before being used, as it sets up the logging widget with it.

Reimplemented from casa::PlotMSTab.

QString casa::PlotMSOptionsTab::tabName ( ) const
inlinevirtual

Implements PlotMSTab::tabName().

Implements casa::PlotMSTab.

Definition at line 55 of file PlotMSOptionsTab.qo.h.

void casa::PlotMSOptionsTab::toolButtonStyleChanged ( int  newIndex)
privateslot

When the user changes the tool button style on the GUI.

void casa::PlotMSOptionsTab::updateGrid ( )
privateslot

Member Data Documentation

bool casa::PlotMSOptionsTab::itsChangeFlag_
private

Flag for changing the parameters.

Definition at line 72 of file PlotMSOptionsTab.qo.h.

PlotMSLoggerWidget* casa::PlotMSOptionsTab::itsLoggerWidget_
private

Logger widget.

Definition at line 75 of file PlotMSOptionsTab.qo.h.

PlotMSParameters& casa::PlotMSOptionsTab::itsParameters_
private

Watched parameters for PlotMS.

Definition at line 69 of file PlotMSOptionsTab.qo.h.


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