36 #include <QPushButton>
43 class QPButton :
public QObject,
public PlotButton {
58 bool isEnabled()
const;
61 void setEnabled(
bool enabled =
true);
64 bool isVisible()
const;
67 void setVisible(
bool visible =
true);
79 bool textShown()
const;
82 void showText(
bool show =
true);
91 bool imageShown()
const;
94 void showImage(
bool show =
true);
100 bool isToggleable()
const;
103 void setToggleable(
bool toggleable =
true);
106 bool isToggled()
const;
109 void setToggled(
bool toggled =
true);
115 std::vector<PlotButtonEventHandlerPtr> allHandlers()
const;
125 QPushButton* asQPushButton();
126 const QPushButton* asQPushButton()
const;
130 QPushButton* m_button;
134 std::vector<PlotButtonEventHandlerPtr> m_handlers;
141 void buttonDeleted();
146 class QPCheckbox :
public QObject,
public PlotCheckbox {
160 bool isEnabled()
const;
163 void setEnabled(
bool enabled =
true);
166 bool isVisible()
const;
169 void setVisible(
bool visible =
true);
187 bool isChecked()
const;
190 void setChecked(
bool checked =
true);
196 std::vector<PlotCheckboxEventHandlerPtr> allHandlers()
const;
206 QCheckBox* asQCheckBox();
207 const QCheckBox* asQCheckBox()
const;
211 QCheckBox* m_checkbox;
212 std::vector<PlotCheckboxEventHandlerPtr> m_handlers;
216 void checkboxToggled();
219 void checkboxDeleted();
224 class QPPanel :
public QObject,
public PlotPanel {
238 std::vector<PlotWidgetPtr> widgets()
const;
249 void removeWidget(
int index);
258 const QFrame* asQFrame()
const;
263 std::vector<PlotWidgetPtr> m_widgets;
casacore::CountedPtr< PlotButtonEventHandler > PlotButtonEventHandlerPtr
casacore::CountedPtr< PlotWidget > PlotWidgetPtr
void show(const variant &v)
casacore::CountedPtr< PlotCheckboxEventHandler > PlotCheckboxEventHandlerPtr
String: the storage and methods of handling collections of characters.