26 #if defined (HAVE_CONFIG_H)
30 #include <QCoreApplication>
43 :
QObject (), m_object (
nullptr)
97 error (
"ObjectProxy::finalize: invalid GUI Object");
99 Qt::ConnectionType t = Qt::BlockingQueuedConnection;
101 if (QThread::currentThread () == QCoreApplication::instance ()->
thread ())
102 t = Qt::DirectConnection;
104 if (! QMetaObject::invokeMethod (
m_object,
"slotFinalize", t))
105 error (
"ObjectProxy::finalize: unable to delete GUI Object");
124 error (
"ObjectProxy::print: invalid GUI Object");
126 Qt::ConnectionType t = Qt::BlockingQueuedConnection;
128 if (QThread::currentThread () == QCoreApplication::instance ()->
thread ())
129 t = Qt::DirectConnection;
131 if (! QMetaObject::invokeMethod (
m_object,
"slotPrint", t,
132 Q_ARG (QString, file_cmd),
133 Q_ARG (QString, term)))
134 error (
"ObjectProxy::print: unable to print figure");
141 error (
"ObjectProxy::finalize: invalid GUI Object");
150 Qt::ConnectionType t = Qt::BlockingQueuedConnection;
152 if (QThread::currentThread () == QCoreApplication::instance ()->
thread ())
153 t = Qt::DirectConnection;
155 QMetaObject::invokeMethod (
m_object,
"slotGetPixels", t,
OCTAVE_END_NAMESPACE(octave)
void print(const QString &file_cmd, const QString &term)
void setObject(Object *obj)
uint8NDArray get_pixels(void)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
void error(const char *fmt,...)