26 #if defined (HAVE_CONFIG_H)
46 :
QObject (), m_octave_qobj (oct_qobj), m_interpreter (interp),
47 m_go (go), m_handle (go.get_handle ()), m_qobject (nullptr)
54 qCritical (
"QtHandles::Object::Object: "
55 "creating Object (h=%g) without a valid lock!!!",
65 qCritical (
"QtHandles::Object::init: "
66 "resetting QObject while in invalid state");
72 m_qobject->setProperty (
"QtHandles::Object",
73 QVariant::fromValue<void*> (
this));
90 qCritical (
"QtHandles::Object::object: "
91 "accessing graphics object (h=%g) without a valid lock!!!",
109 case base_properties::ID_BEINGDELETED:
114 if (
object ().valid_object ())
137 if (
object ().valid_object ())
148 if (
object ().valid_object ())
159 if (
object ().valid_object ())
160 print (file_cmd, term);
216 QVariant v = obj->property (
"QtHandles::Object");
219 return reinterpret_cast<Object *
> (qvariant_cast<void*> (v));
242 const std::string&)),
245 const std::string&)));
graphics_object object(void) const
virtual void beingDeleted(void)
virtual void do_connections(const QObject *receiver, const QObject *emitter=nullptr)
virtual void redraw(void)
virtual void finalize(void)
octave::interpreter & m_interpreter
static Object * parentObject(octave::interpreter &interp, const graphics_object &go)
void gh_callback_event(const graphics_handle &h, const std::string &name)
virtual void print(const QString &file_cmd, const QString &term)
Object(octave::base_qobject &qobj, octave::interpreter &interp, const graphics_object &go, QObject *obj=nullptr)
void slotPrint(const QString &file_cmd, const QString &term)
void interpreter_event(const octave::fcn_callback &fcn)
static Object * fromQObject(QObject *obj)
void init(QObject *obj, bool callBase=false)
virtual void update(int pId)
void objectDestroyed(QObject *obj=nullptr)
void gh_set_event(const graphics_handle &h, const std::string &name, const octave_value &value)
graphics_object get_object(double val) const
octave::mutex graphics_lock(void)
graphics_handle get_parent(void) const
Base class for Octave interfaces that use Qt.
gh_manager & get_gh_manager(void)
std::function< void(octave::interpreter &)> meth_callback
std::function< void(void)> fcn_callback