23 #if defined (HAVE_CONFIG_H) 27 #include <QCoreApplication> 41 :
QObject (), m_object (nullptr)
56 m_object, SLOT (slotFinalize (
void)));
59 disconnect (
this, SIGNAL (
sendPrint (
const QString&,
const QString&)),
60 m_object, SLOT (slotPrint (
const QString&,
const QString&)));
70 m_object, SLOT (slotFinalize (
void)));
73 connect (
this, SIGNAL (
sendPrint (
const QString&,
const QString&)),
74 m_object, SLOT (slotPrint (
const QString&,
const QString&)),
75 Qt::BlockingQueuedConnection);
125 Qt::ConnectionType
t = Qt::BlockingQueuedConnection;
127 if (QThread::currentThread () == QCoreApplication::instance ()->thread ())
128 t = Qt::DirectConnection;
130 QMetaObject::invokeMethod (
m_object,
"slotGetPixels",
t,
135 if (! QMetaObject::invokeMethod (
m_object,
"slotGetPixels",
t,
139 if (! QMetaObject::invokeMethod (
m_object,
"slotGetPixels",
t,
143 if (! QMetaObject::invokeMethod (
m_object,
"slotGetPixels",
t,
145 error (
"getframe: unable to retrieve figure pixels");
ObjectProxy(Object *obj=nullptr)
OCTINTERP_API void octave_sleep(double seconds)
void setObject(Object *obj)
void sendPrint(const QString &file_cmd, const QString &term)
void error(const char *fmt,...)
OCTAVE_EXPORT octave_value_list return the number of command line arguments passed to Octave If called with the optional argument the function t
uint8NDArray get_pixels(void)
static bool is_thread(void)
void print(const QString &file_cmd, const QString &term)