26 #if defined (HAVE_CONFIG_H)
30 #include <QChildEvent>
31 #include <QVBoxLayout>
47 m_interpreter (interp), m_canvas (nullptr)
49 setFocusPolicy (Qt::ClickFocus);
84 const std::string&)));
124 canvasWidget->lower ();
125 canvasWidget->show ();
126 canvasWidget->setGeometry (0, 0, width (), height ());
143 for (
auto *qObj : children ())
145 if (qObj->isWidgetType ())
175 if (xevent->added ())
177 QObject *obj = xevent->child ();
179 if (obj && obj->isWidgetType ())
181 QWidget *widget = qobject_cast<QWidget *> (obj);
184 widget->setMouseTracking (hasMouseTracking ());
static Canvas * create(octave::base_qobject &oct_qobj, octave::interpreter &interp, const graphics_handle &handle, QWidget *parent, const std::string &name)
virtual QWidget * qWidget(void)=0
Canvas * canvas(const graphics_handle &handle, bool create=true)
void gh_set_event(const graphics_handle &h, const std::string &name, const octave_value &value)
octave::base_qobject & m_octave_qobj
Container(QWidget *parent, octave::base_qobject &oct_qobj, octave::interpreter &interp)
void gh_callback_event(const graphics_handle &h, const std::string &name)
octave::interpreter & m_interpreter
void childEvent(QChildEvent *event)
void resizeEvent(QResizeEvent *event)
graphics_object object(void) const
static Object * fromQObject(QObject *obj)
virtual Matrix get_boundingbox(bool=false, const Matrix &=Matrix()) const
graphics_object get_object(double val) const
octave::mutex graphics_lock(void)
octave_value get(bool all=false) const
graphics_object get_ancestor(const std::string &type) const
base_properties & get_properties(void)
bool valid_object(void) const
Base class for Octave interfaces that use Qt.
gh_manager & get_gh_manager(void)
std::string string_value(bool force=false) const
std::function< void(octave::interpreter &)> meth_callback
std::function< void(void)> fcn_callback