casa
$Rev:20696$
|
Abstract superclass for any widget that goes on a PlotPanel. More...
#include <PlotPanel.h>
Public Member Functions | |
PlotWidget () | |
Constructor. | |
virtual | ~PlotWidget () |
Destructor. | |
virtual bool | isEnabled () const =0 |
Returns true if the widget is currently enabled, false otherwise. | |
virtual void | setEnabled (bool enabled=true)=0 |
Enables/disables the widget. | |
virtual bool | isVisible () const =0 |
Returns true if the widget is currently visible. | |
virtual void | setVisible (bool visible=true)=0 |
Show/hide the widget. | |
virtual String | tooltip () const =0 |
Returns the tooltip for this widget. | |
virtual void | setTooltip (const String &text)=0 |
Sets the tooltip for this widget. |
Abstract superclass for any widget that goes on a PlotPanel.
Definition at line 37 of file PlotPanel.h.
casa::PlotWidget::PlotWidget | ( | ) | [inline] |
Constructor.
Definition at line 40 of file PlotPanel.h.
virtual casa::PlotWidget::~PlotWidget | ( | ) | [inline, virtual] |
Destructor.
Definition at line 43 of file PlotPanel.h.
virtual bool casa::PlotWidget::isEnabled | ( | ) | const [pure virtual] |
Returns true if the widget is currently enabled, false otherwise.
A widget button should be grayed out or not interact-able.
virtual bool casa::PlotWidget::isVisible | ( | ) | const [pure virtual] |
Returns true if the widget is currently visible.
virtual void casa::PlotWidget::setEnabled | ( | bool | enabled = true | ) | [pure virtual] |
Enables/disables the widget.
virtual void casa::PlotWidget::setTooltip | ( | const String & | text | ) | [pure virtual] |
Sets the tooltip for this widget.
virtual void casa::PlotWidget::setVisible | ( | bool | visible = true | ) | [pure virtual] |
Show/hide the widget.
virtual String casa::PlotWidget::tooltip | ( | ) | const [pure virtual] |
Returns the tooltip for this widget.