48 virtual void setEnabled(
bool enabled =
true) = 0;
54 virtual void setVisible(
bool visible =
true) = 0;
110 virtual void setToggled(
bool toggled =
true) = 0;
116 virtual std::vector<PlotButtonEventHandlerPtr>
allHandlers()
const = 0;
144 virtual void setChecked(
bool checked =
true) = 0;
150 virtual std::vector<PlotCheckboxEventHandlerPtr>
allHandlers()
const = 0;
166 virtual std::vector<PlotWidgetPtr>
widgets()
const = 0;
virtual bool isChecked() const =0
Returns true if the checkbox is currently checked, false otherwise.
PlotCheckbox()
Constructor.
virtual void registerHandler(PlotCheckboxEventHandlerPtr handler)=0
Register the given event handler for this checkbox.
virtual void setText(const casacore::String &text)=0
Sets the text for this checkbox.
virtual void clearWidgets()=0
Clears all widgets on the panel.
virtual void removeWidget(PlotWidgetPtr widget)=0
Removes the given widget from this panel.
virtual casacore::String text() const =0
Returns the text for this checkbox.
casacore::CountedPtr< PlotWidget > PlotWidgetPtr
void show(const variant &v)
Generic class for a checkbox that goes on a PlotPanel.
virtual ~PlotCheckbox()
Destructor.
Referenced counted pointer for constant data.
SMART POINTER DEFINITIONS *typedef casacore::CountedPtr< PlotPanel > PlotPanelPtr
virtual std::vector< PlotWidgetPtr > widgets() const =0
Returns all PlotWidgets currently on the panel.
virtual std::vector< PlotCheckboxEventHandlerPtr > allHandlers() const =0
Returns all event handlers currently registered on this button.
A PlotPanel is a panel that goes on the bottom of the plot window.
INHERITANCE_POINTER2(PlotLayoutSingle, PlotLayoutSinglePtr, PlotCanvasLayout, PlotCanvasLayoutPtr) INHERITANCE_POINTER2(PlotLayoutGrid
String: the storage and methods of handling collections of characters.
virtual int addWidget(PlotWidgetPtr widget)=0
Adds the given widget to this panel.
virtual void unregisterHandler(PlotCheckboxEventHandlerPtr handler)=0
Unregisters the given event handler.
virtual void setChecked(bool checked=true)=0
Sets whether the checkbox is checked or not.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.