GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
ObjectProxy.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2011-2018 Michael Goffioul
4 
5 This file is part of Octave.
6 
7 Octave is free software: you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with Octave; see the file COPYING. If not, see
19 <https://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if ! defined (octave_ObjectProxy_h)
24 #define octave_ObjectProxy_h 1
25 
26 #include "uint8NDArray.h"
27 
28 #include <QObject>
29 
30 class QString;
31 
32 namespace QtHandles
33 {
34 
35  class Object;
36 
37  class ObjectProxy : public QObject
38  {
39  Q_OBJECT
40 
41  public:
42  ObjectProxy (Object *obj = nullptr);
43 
44  void update (int pId);
45  void finalize (void);
46  void redraw (void);
47  void print (const QString& file_cmd, const QString& term);
48  uint8NDArray get_pixels (void);
49 
50  Object * object (void) { return m_object; }
51  void setObject (Object *obj);
52 
53  signals:
54  void sendUpdate (int pId);
55  void sendFinalize (void);
56  void sendRedraw (void);
57  void sendPrint (const QString& file_cmd, const QString& term);
58 
59  private:
60  void init (Object *obj);
61 
62  private:
64  };
65 
66 };
67 
68 #endif
ObjectProxy(Object *obj=nullptr)
Definition: ObjectProxy.cc:40
void setObject(Object *obj)
Definition: ObjectProxy.cc:81
void sendPrint(const QString &file_cmd, const QString &term)
void update(int pId)
Definition: ObjectProxy.cc:88
Object * object(void)
Definition: ObjectProxy.h:50
void init(Object *obj)
Definition: ObjectProxy.cc:47
void sendUpdate(int pId)
uint8NDArray get_pixels(void)
Definition: ObjectProxy.cc:116
void print(const QString &file_cmd, const QString &term)
Definition: ObjectProxy.cc:110