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

Abstract superclass for any widget that goes on a PlotPanel. More...

#include <PlotPanel.h>

Inheritance diagram for casa::PlotWidget:
casa::PlotButton casa::PlotCheckbox

Public Member Functions

 PlotWidget ()
 Constructor. More...
 
virtual ~PlotWidget ()
 Destructor. More...
 
virtual bool isEnabled () const =0
 Returns true if the widget is currently enabled, false otherwise. More...
 
virtual void setEnabled (bool enabled=true)=0
 Enables/disables the widget. More...
 
virtual bool isVisible () const =0
 Returns true if the widget is currently visible. More...
 
virtual void setVisible (bool visible=true)=0
 Show/hide the widget. More...
 
virtual casacore::String tooltip () const =0
 Returns the tooltip for this widget. More...
 
virtual void setTooltip (const casacore::String &text)=0
 Sets the tooltip for this widget. More...
 

Detailed Description

Abstract superclass for any widget that goes on a PlotPanel.

Definition at line 35 of file PlotPanel.h.

Constructor & Destructor Documentation

casa::PlotWidget::PlotWidget ( )
inline

Constructor.

Definition at line 38 of file PlotPanel.h.

virtual casa::PlotWidget::~PlotWidget ( )
inlinevirtual

Destructor.

Definition at line 41 of file PlotPanel.h.

Member Function Documentation

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 casacore::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 casacore::String casa::PlotWidget::tooltip ( ) const
pure virtual

Returns the tooltip for this widget.


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