diff libgui/graphics/Canvas.h @ 19715:35bca657d74d

printing for Qt plot widget (bug #42537) * Backend.h, Backend.cc (Backend::print_figure): New function. * Canvas.h, Canvas.cc (Canvas::print): New function. * Figure.h, Figure.cc (Figure:print): New function. * Object.h, Object.cc (Object::slotPrint, Object::print): New functions. * ObjectProxy.h, ObjectProxy.cc (ObjectProxy::print): New function. (ObjectProxy::sendPrint): New signal. (ObjectProxy::init): Connect sendPrint signal to slotPrint slot of current object.
author John W. Eaton <jwe@octave.org>
date Sun, 08 Feb 2015 16:25:06 -0500
parents dfea01b3425f
children 815db217f6f4
line wrap: on
line diff
--- a/libgui/graphics/Canvas.h	Sun Feb 08 12:10:05 2015 -0800
+++ b/libgui/graphics/Canvas.h	Sun Feb 08 16:25:06 2015 -0500
@@ -52,6 +52,8 @@
   void redraw (bool sync = false);
   void blockRedraw (bool block = true);
 
+  void print (const QString& file_cmd, const QString& term);
+
   void addEventMask (int m) { m_eventMask |= m; }
   void clearEventMask (int m) { m_eventMask &= (~m); }
   void setEventMask (int m) { m_eventMask = m; }