casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
casa::PlotMSTab Class Referenceabstract

Abstract parent for any widget that goes in the tabbed side panel of the PlotMSPlotter. More...

#include <PlotMSTab.qo.h>

Inheritance diagram for casa::PlotMSTab:
casa::PlotMSParametersWatcher casa::PlotMSAnnotatorTab casa::PlotMSDataSummaryTab casa::PlotMSFlaggingTab casa::PlotMSOptionsTab casa::PlotMSPlotSubtab casa::PlotMSPlotTab casa::PlotMSToolsTab casa::PlotMSAxesTab casa::PlotMSCacheTab casa::PlotMSCalibrationTab casa::PlotMSCanvasTab casa::PlotMSDataTab casa::PlotMSDisplayTab casa::PlotMSIterateTab casa::PlotMSTransformationsTab

Public Member Functions

 PlotMSTab (PlotMSPlotter *parent)
 Non-Static //. More...
 
virtual ~PlotMSTab ()
 Destructor. More...
 
virtual QString tabName () const =0
 Returns a string to use as the tab name for this widget. More...
 
virtual QList< QToolButton * > toolButtons () const
 Returns all tool buttons on this tab. More...
 
virtual void setupForMaxWidth (int maxWidth)
 Sets up the tab for the given maximum width. More...
 
- Public Member Functions inherited from casa::PlotMSParametersWatcher
 PlotMSParametersWatcher ()
 Constructor. More...
 
virtual ~PlotMSParametersWatcher ()
 Destructor. More...
 
virtual void parametersHaveChanged (const PlotMSWatchedParameters &params, int updateFlag)=0
 This method is called whenever the watched parameters have been changed. More...
 

Static Public Member Functions

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

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

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

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

Abstract parent for any widget that goes in the tabbed side panel of the PlotMSPlotter.

Definition at line 48 of file PlotMSTab.qo.h.

Constructor & Destructor Documentation

casa::PlotMSTab::PlotMSTab ( PlotMSPlotter parent)

Non-Static //.

Constructor that takes the parent plotter for this tab.

virtual casa::PlotMSTab::~PlotMSTab ( )
virtual

Destructor.

Member Function Documentation

static QString casa::PlotMSTab::highlightifyText ( const QString &  text,
bool  highlight 
)
staticprotected

Returns the given text altered with HTML tags for highlighting, meant to be assigned to a Qt widget's title or similar property.

If highlight is false, the text is returned stripped of any HTML. If highlighted, the text is made red using a <font> tag.

Referenced by highlightifyText().

static QString casa::PlotMSTab::highlightifyText ( const casacore::String text,
bool  changed 
)
inlinestaticprotected

Variation taking a casacore String.

Definition at line 122 of file PlotMSTab.qo.h.

References casacore::String::c_str(), and highlightifyText().

static QString casa::PlotMSTab::highlightifyText ( const char *  text,
bool  changed 
)
inlinestaticprotected

Variation of highlightifyText taking plain C-style text.

Definition at line 127 of file PlotMSTab.qo.h.

References highlightifyText().

void casa::PlotMSTab::highlightWidgetText ( QLabel *  label,
bool  highlight 
)
protected

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.

Note that the Button version is meant for QCheckBox and QRadioButton, and probably isn't as useful for pushbuttons. Note: was formerly named changedText(). Name and purpose was unclear.

void casa::PlotMSTab::highlightWidgetText ( QGroupBox *  box,
bool  highlight 
)
protected
void casa::PlotMSTab::highlightWidgetText ( QAbstractButton *  but,
bool  highlight 
)
protected
static bool casa::PlotMSTab::setChooser ( QComboBox *  chooser,
const QString &  value 
)
static

Static //.

Convenience methods for setting the current value of the given QComboBox to the given.

Referenced by setChooser().

static bool casa::PlotMSTab::setChooser ( QComboBox *  chooser,
const casacore::String value 
)
inlinestatic

Definition at line 58 of file PlotMSTab.qo.h.

References casacore::String::c_str(), and setChooser().

static bool casa::PlotMSTab::setChooser ( QComboBox *  chooser,
const char *  value 
)
inlinestatic

Definition at line 61 of file PlotMSTab.qo.h.

References setChooser().

virtual void casa::PlotMSTab::setupForMaxWidth ( int  maxWidth)
inlinevirtual

Sets up the tab for the given maximum width.

Reimplemented in casa::PlotMSOptionsTab.

Definition at line 86 of file PlotMSTab.qo.h.

virtual QString casa::PlotMSTab::tabName ( ) const
pure virtual
virtual QList<QToolButton*> casa::PlotMSTab::toolButtons ( ) const
inlinevirtual

Returns all tool buttons on this tab.

Reimplemented in casa::PlotMSPlotTab, and casa::PlotMSToolsTab.

Definition at line 82 of file PlotMSTab.qo.h.

Member Data Documentation

QMap<QLabel*, QString> casa::PlotMSTab::itsLabelDefaults_
protected

Default text for labels, so that they can be easily switched to red or normal depending on whether the item has changed or not.

Definition at line 97 of file PlotMSTab.qo.h.

PlotMSApp* casa::PlotMSTab::itsParent_
protected

Parent.

Definition at line 90 of file PlotMSTab.qo.h.

PlotMSPlotter* casa::PlotMSTab::itsPlotter_
protected

Plotter.

Definition at line 93 of file PlotMSTab.qo.h.


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