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

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::PlotMSFlaggingTab casa::PlotMSOptionsTab casa::PlotMSPlotSubtab casa::PlotMSPlotTab casa::PlotMSToolsTab casa::PlotMSAxesTab casa::PlotMSCacheTab casa::PlotMSCanvasTab casa::PlotMSDataTab casa::PlotMSDisplayTab casa::PlotMSExportTab casa::PlotMSIterateTab casa::PlotMSMultiAxesTab casa::PlotMSTransformationsTab

List of all members.

Public Member Functions

 PlotMSTab (PlotMSPlotter *parent)
 Non-Static //.
virtual ~PlotMSTab ()
 Destructor.
virtual QString tabName () const =0
 Returns a string to use as the tab name for this widget.
virtual QList< QToolButton * > toolButtons () const
 Returns all tool buttons on this tab.
virtual void setupForMaxWidth (int maxWidth)
 Sets up the tab for the given maximum width.

Static Public Member Functions

static bool setChooser (QComboBox *chooser, const QString &value)
 Static //.
static bool setChooser (QComboBox *chooser, const 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.
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.
static QString highlightifyText (const String &text, bool changed)
 Variation taking a casacore String.
static QString highlightifyText (const char *text, bool changed)
 Variation of highlightifyText taking plain C-style text.

Protected Attributes

PlotMSAppitsParent_
 Parent.
PlotMSPlotteritsPlotter_
 Plotter.
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.

Detailed Description

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

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


Constructor & Destructor Documentation

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 
) [static, protected]

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 String text,
bool  changed 
) [inline, static, protected]

Variation taking a casacore String.

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

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

static QString casa::PlotMSTab::highlightifyText ( const char *  text,
bool  changed 
) [inline, static, protected]

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 String value 
) [inline, static]

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

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

static bool casa::PlotMSTab::setChooser ( QComboBox *  chooser,
const char *  value 
) [inline, static]

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

References setChooser().

virtual void casa::PlotMSTab::setupForMaxWidth ( int  maxWidth) [inline, virtual]

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 [inline, virtual]

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.

Parent.

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

Plotter.

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


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