26 #if defined (HAVE_CONFIG_H)
30 #include <QCoreApplication>
44 :
QObject (), m_object (nullptr)
60 disconnect (
this, SIGNAL (
sendShow (
void)),
72 connect (
this, SIGNAL (
sendShow (
void)),
98 error (
"ObjectProxy::finalize: invalid GUI Object");
100 Qt::ConnectionType t = Qt::BlockingQueuedConnection;
102 if (QThread::currentThread () == QCoreApplication::instance ()->thread ())
103 t = Qt::DirectConnection;
105 if (! QMetaObject::invokeMethod (
m_object,
"slotFinalize", t))
106 error (
"ObjectProxy::finalize: unable to delete GUI Object");
125 error (
"ObjectProxy::print: invalid GUI Object");
127 Qt::ConnectionType t = Qt::BlockingQueuedConnection;
129 if (QThread::currentThread () == QCoreApplication::instance ()->thread ())
130 t = Qt::DirectConnection;
132 if (! QMetaObject::invokeMethod (
m_object,
"slotPrint", t,
133 Q_ARG (QString, file_cmd),
134 Q_ARG (QString, term)))
135 error (
"ObjectProxy::print: unable to print figure");
142 error (
"ObjectProxy::finalize: invalid GUI Object");
151 Qt::ConnectionType t = Qt::BlockingQueuedConnection;
153 if (QThread::currentThread () == QCoreApplication::instance ()->thread ())
154 t = Qt::DirectConnection;
156 QMetaObject::invokeMethod (
m_object,
"slotGetPixels", t,
uint8NDArray get_pixels(void)
void setObject(Object *obj)
void print(const QString &file_cmd, const QString &term)
ObjectProxy(Object *obj=nullptr)
void error(const char *fmt,...)
octave_value::octave_value(const Array< char > &chm, char type) return retval