26#if defined (HAVE_CONFIG_H)
45 const graphics_object& go,
QObject *obj)
46 :
QObject (), m_octave_qobj (oct_qobj), m_interpreter (interp),
47 m_go (go), m_handle (go.get_handle ()), m_qobject (nullptr)
54 qCritical (
"octave::Object::Object: "
55 "creating Object (h=%g) without a valid lock!!!",
65 qCritical (
"octave::Object::init: "
66 "resetting QObject while in invalid state");
73 QVariant::fromValue<void *> (
this));
90 qCritical (
"octave::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);
203 gh_manager& gh_mgr = interp.get_gh_manager ();
208 (gh_mgr.get_object (go.get_parent ()));
216 QVariant v = obj->property (
"octave::Object");
219 return reinterpret_cast<Object *
> (qvariant_cast<void *> (v));
242 const std::string&)),
245 const std::string&)));
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)
virtual void beingDeleted(void)
virtual void finalize(void)
void slotPrint(const QString &file_cmd, const QString &term)
virtual void do_connections(const QObject *receiver, const QObject *emitter=nullptr)
void gh_callback_event(const graphics_handle &h, const std::string &name)
void interpreter_event(const octave::fcn_callback &fcn)
virtual void update(int pId)
octave::interpreter & m_interpreter
void objectDestroyed(QObject *obj=nullptr)
static Object * fromQObject(QObject *obj)
void gh_set_event(const graphics_handle &h, const std::string &name, const octave_value &value)
void init(QObject *obj, bool callBase=false)
virtual void redraw(void)
graphics_object object(void) const
static Object * parentObject(octave::interpreter &interp, const graphics_object &go)
Base class for Octave interfaces that use Qt.
OCTAVE_NAMESPACE_BEGIN typedef std::function< void(void)> fcn_callback
std::function< void(interpreter &)> meth_callback