casa
5.7.0-16
|
Abstract parent for any widget that goes in the tabbed side panel of the PlotMSPlotter. More...
#include <PlotMSTab.qo.h>
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 ¶ms, 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 | |
PlotMSApp * | itsParent_ |
Parent. More... | |
PlotMSPlotter * | itsPlotter_ |
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... | |
Abstract parent for any widget that goes in the tabbed side panel of the PlotMSPlotter.
Definition at line 48 of file PlotMSTab.qo.h.
casa::PlotMSTab::PlotMSTab | ( | PlotMSPlotter * | parent | ) |
Non-Static //.
Constructor that takes the parent plotter for this tab.
|
virtual |
Destructor.
|
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().
|
inlinestaticprotected |
Variation taking a casacore String.
Definition at line 122 of file PlotMSTab.qo.h.
References casacore::String::c_str(), and highlightifyText().
|
inlinestaticprotected |
Variation of highlightifyText taking plain C-style text.
Definition at line 127 of file PlotMSTab.qo.h.
References highlightifyText().
|
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.
|
protected |
|
protected |
|
static |
Static //.
Convenience methods for setting the current value of the given QComboBox to the given.
Referenced by setChooser().
|
inlinestatic |
Definition at line 58 of file PlotMSTab.qo.h.
References casacore::String::c_str(), and setChooser().
|
inlinestatic |
Definition at line 61 of file PlotMSTab.qo.h.
References setChooser().
|
inlinevirtual |
Sets up the tab for the given maximum width.
Reimplemented in casa::PlotMSOptionsTab.
Definition at line 86 of file PlotMSTab.qo.h.
|
pure virtual |
Returns a string to use as the tab name for this widget.
Implemented in casa::PlotMSPlotTab, casa::PlotMSToolsTab, casa::PlotMSDataTab, casa::PlotMSIterateTab, casa::PlotMSAnnotatorTab, casa::PlotMSDisplayTab, casa::PlotMSOptionsTab, casa::PlotMSDataSummaryTab, casa::PlotMSCanvasTab, casa::PlotMSFlaggingTab, casa::PlotMSAxesTab, casa::PlotMSTransformationsTab, casa::PlotMSCalibrationTab, and casa::PlotMSCacheTab.
|
inlinevirtual |
Returns all tool buttons on this tab.
Reimplemented in casa::PlotMSPlotTab, and casa::PlotMSToolsTab.
Definition at line 82 of file PlotMSTab.qo.h.
|
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.
|
protected |
Parent.
Definition at line 90 of file PlotMSTab.qo.h.
|
protected |
Definition at line 93 of file PlotMSTab.qo.h.