23 #if defined (HAVE_CONFIG_H) 29 #include <QApplication> 43 # define OCTAVE_PTR_TYPE octave_uint64 44 # define OCTAVE_INTPTR_TYPE uint64_t 45 # define OCTAVE_PTR_SCALAR uint64_scalar_value 54 if (go.
isa (
"figure"))
55 return "__plot_stream__";
56 else if (go.
isa (
"uicontrol")
58 || go.
isa (
"uibuttongroup")
60 || go.
isa (
"uicontextmenu")
61 || go.
isa (
"uitoolbar")
62 || go.
isa (
"uipushtool")
63 || go.
isa (
"uitoggletool"))
66 qCritical (
"QtHandles::Backend: no __object__ property known for object " 67 "of type %s", go.
type ().c_str ());
88 || go.
isa (
"uicontrol")
90 || go.
isa (
"uibuttongroup")
92 || go.
isa (
"uicontextmenu")
93 || go.
isa (
"uitoolbar")
94 || go.
isa (
"uipushtool")
95 || go.
isa (
"uitoggletool"))
98 go.
type ().c_str (), QThread::currentThreadId ());
118 if (pId == figure::properties::ID___PLOT_STREAM__
119 || pId == uicontrol::properties::ID___OBJECT__
120 || pId == uipanel::properties::ID___OBJECT__
121 || pId == uibuttongroup::properties::ID___OBJECT__
122 || pId == uimenu::properties::ID___OBJECT__
123 || pId == uicontextmenu::properties::ID___OBJECT__
124 || pId == uitoolbar::properties::ID___OBJECT__
125 || pId == uipushtool::properties::ID___OBJECT__
126 || pId == uitoggletool::properties::ID___OBJECT__
127 || pId == base_properties::ID___MODIFIED__)
131 go.
type ().c_str (), pId, QThread::currentThreadId ());
137 if (go.
isa (
"uicontrol")
138 && pId == uicontrol::properties::ID_STYLE)
155 go.
type ().c_str (), QThread::currentThreadId ());
200 if (go.
isa (
"figure"))
void update(const graphics_object &obj, int pId)
virtual void set(const caseless_str &, const octave_value &)
bool initialize(const graphics_object &obj)
graphics_handle get_handle(void) const
void redraw_figure(const graphics_object &h) const
QString fromStdString(const std::string &s)
bool is_defined(void) const
bool isa(const std::string &go_name) const
void print_figure(const graphics_object &go, const std::string &term, const std::string &file_cmd, const std::string &) const
void createObject(double handle)
static ObjectFactory * instance(void)
static void debug(const char *fmt,...)
#define OCTAVE_INTPTR_TYPE
octave_value get(bool all=false) const
static ObjectProxy * toolkitObjectProxy(const graphics_object &go)
uint8NDArray get_pixels(const graphics_object &go) const
base_properties & get_properties(void)
static std::string toolkitObjectProperty(const graphics_object &go)
static Object * toolkitObject(const graphics_object &go)
uint8NDArray get_pixels(void)
std::string type(void) const
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
void finalize(const graphics_object &obj)
void print(const QString &file_cmd, const QString &term)