#include "qt-graphics-toolkit.h"
Public Slots | |
void | create_object (double handle) |
void | gh_callback_event (const graphics_handle &h, const std::string &name) |
void | gh_callback_event (const graphics_handle &h, const std::string &name, const octave_value &data) |
void | gh_set_event (const graphics_handle &h, const std::string &name, const octave_value &value) |
void | gh_set_event (const graphics_handle &h, const std::string &name, const octave_value &value, bool notify_toolkit) |
void | gh_set_event (const graphics_handle &h, const std::string &name, const octave_value &value, bool notify_toolkit, bool redraw_figure) |
void | interpreter_event (const octave::fcn_callback &fcn) |
void | interpreter_event (const octave::meth_callback &meth) |
Signals | |
void | create_object_signal (double handle) |
Public Member Functions | |
qt_graphics_toolkit (octave::interpreter &interp, octave::base_qobject &oct_qobj) | |
~qt_graphics_toolkit (void)=default | |
virtual void | close (void) |
void | finalize (const graphics_handle &) |
void | finalize (const graphics_object &obj) |
virtual Matrix | get_canvas_size (const graphics_handle &) const |
std::string | get_name (void) const |
uint8NDArray | get_pixels (const graphics_object &go) const |
virtual double | get_screen_resolution (void) const |
virtual Matrix | get_screen_size (void) const |
Matrix | get_text_extent (const graphics_object &go) const |
bool | initialize (const graphics_handle &) |
bool | initialize (const graphics_object &obj) |
bool | is_valid (void) const |
void | print_figure (const graphics_object &go, const std::string &term, const std::string &file_cmd, const std::string &) const |
void | redraw_figure (const graphics_object &h) const |
void | show_figure (const graphics_object &h) const |
void | update (const graphics_handle &, int) |
void | update (const graphics_object &obj, int pId) |
Static Public Member Functions | |
static Object * | toolkitObject (const graphics_object &go) |
static ObjectProxy * | toolkitObjectProxy (const graphics_object &go) |
Private Member Functions | |
void | gripe_if_tkit_invalid (const std::string &fname) const |
Private Attributes | |
octave::interpreter & | m_interpreter |
std::string | m_name |
octave::base_qobject & | m_octave_qobj |
Definition at line 45 of file qt-graphics-toolkit.h.
QtHandles::qt_graphics_toolkit::qt_graphics_toolkit | ( | octave::interpreter & | interp, |
octave::base_qobject & | oct_qobj | ||
) |
Definition at line 101 of file qt-graphics-toolkit.cc.
References create_object(), and create_object_signal().
|
default |
|
inlinevirtualinherited |
Reimplemented in gnuplot_graphics_toolkit.
Definition at line 150 of file graphics-toolkit.h.
References octave::base_graphics_toolkit::gripe_if_tkit_invalid().
|
slot |
Definition at line 373 of file qt-graphics-toolkit.cc.
References QtHandles::ButtonGroup::create(), QtHandles::CheckBoxControl::create(), QtHandles::ContextMenu::create(), QtHandles::EditControl::create(), QtHandles::Figure::create(), QtHandles::ListBoxControl::create(), QtHandles::Menu::create(), QtHandles::Panel::create(), QtHandles::PopupMenuControl::create(), QtHandles::PushButtonControl::create(), QtHandles::PushTool::create(), QtHandles::RadioButtonControl::create(), QtHandles::SliderControl::create(), QtHandles::Table::create(), QtHandles::TextControl::create(), QtHandles::ToggleButtonControl::create(), QtHandles::ToggleTool::create(), QtHandles::ToolBar::create(), QtHandles::Logger::debug(), QtHandles::Object::do_connections(), octave::interpreter::get_gh_manager(), gh_manager::get_object(), graphics_object::get_properties(), gh_manager::graphics_lock(), graphics_object::isa(), m_interpreter, m_octave_qobj, QtHandles::ObjectProxy::setObject(), toolkitObjectProxy(), graphics_object::type(), and graphics_object::valid_object().
Referenced by qt_graphics_toolkit().
|
signal |
Referenced by qt_graphics_toolkit(), and initialize().
|
inherited |
Definition at line 59 of file graphics-toolkit.cc.
References octave::__get_gh_manager__(), octave::base_graphics_toolkit::finalize(), and gh_manager::get_object().
|
virtual |
Reimplemented from octave::base_graphics_toolkit.
Definition at line 198 of file qt-graphics-toolkit.cc.
References QtHandles::Logger::debug(), QtHandles::ObjectProxy::finalize(), octave::interpreter::get_gh_manager(), graphics_object::get_properties(), m_interpreter, base_properties::set(), QtHandles::toolkitObjectProperty(), toolkitObjectProxy(), graphics_object::type(), and gh_manager::unlock().
Referenced by update().
|
inlinevirtualinherited |
Reimplemented in gnuplot_graphics_toolkit.
Definition at line 94 of file graphics-toolkit.h.
References octave::base_graphics_toolkit::gripe_if_tkit_invalid().
|
inlineinherited |
Definition at line 61 of file graphics-toolkit.h.
References octave::base_graphics_toolkit::m_name.
|
virtual |
Reimplemented from octave::base_graphics_toolkit.
Definition at line 262 of file qt-graphics-toolkit.cc.
References QtHandles::ObjectProxy::get_pixels(), graphics_object::isa(), retval, and toolkitObjectProxy().
|
inlinevirtualinherited |
Reimplemented in gnuplot_graphics_toolkit.
Definition at line 100 of file graphics-toolkit.h.
References octave::base_graphics_toolkit::gripe_if_tkit_invalid().
|
inlinevirtualinherited |
Reimplemented in gnuplot_graphics_toolkit.
Definition at line 106 of file graphics-toolkit.h.
References octave::base_graphics_toolkit::gripe_if_tkit_invalid().
|
virtual |
Reimplemented from octave::base_graphics_toolkit.
Definition at line 278 of file qt-graphics-toolkit.cc.
References QtHandles::Utils::computeFont< uicontrol >(), QtHandles::Utils::fromStdString(), graphics_object::get(), uicontrol::properties::get_boundingbox(), graphics_object::get_properties(), octave_value::is_string(), graphics_object::isa(), octave_value::iscellstr(), octave_value::isempty(), max(), string_vector::numel(), octave_value::string_value(), and octave_value::string_vector_value().
|
slot |
Definition at line 462 of file qt-graphics-toolkit.cc.
References octave::interpreter::get_gh_manager(), m_interpreter, and gh_manager::post_callback().
|
slot |
Definition at line 470 of file qt-graphics-toolkit.cc.
References octave::interpreter::get_gh_manager(), m_interpreter, and gh_manager::post_callback().
|
slot |
Definition at line 479 of file qt-graphics-toolkit.cc.
References octave::interpreter::get_gh_manager(), m_interpreter, and gh_manager::post_set().
|
slot |
Definition at line 488 of file qt-graphics-toolkit.cc.
References octave::interpreter::get_gh_manager(), m_interpreter, and gh_manager::post_set().
|
slot |
Definition at line 498 of file qt-graphics-toolkit.cc.
References octave::interpreter::get_gh_manager(), m_interpreter, gh_manager::post_set(), and redraw_figure().
|
inlineprivateinherited |
Definition at line 161 of file graphics-toolkit.h.
References error(), and octave::base_graphics_toolkit::is_valid().
Referenced by octave::base_graphics_toolkit::close(), octave::base_graphics_toolkit::finalize(), octave::base_graphics_toolkit::get_canvas_size(), octave::base_graphics_toolkit::get_pixels(), octave::base_graphics_toolkit::get_screen_resolution(), octave::base_graphics_toolkit::get_screen_size(), octave::base_graphics_toolkit::get_text_extent(), octave::base_graphics_toolkit::initialize(), octave::base_graphics_toolkit::print_figure(), octave::base_graphics_toolkit::redraw_figure(), octave::base_graphics_toolkit::show_figure(), and octave::base_graphics_toolkit::update().
|
inherited |
Definition at line 48 of file graphics-toolkit.cc.
References octave::__get_gh_manager__(), gh_manager::get_object(), and octave::base_graphics_toolkit::initialize().
|
virtual |
Reimplemented from octave::base_graphics_toolkit.
Definition at line 121 of file qt-graphics-toolkit.cc.
References create_object_signal(), QtHandles::Logger::debug(), graphics_object::get(), octave::interpreter::get_gh_manager(), graphics_object::get_handle(), graphics_object::get_properties(), graphics_object::isa(), m_interpreter, OCTAVE_INTPTR_TYPE, OCTAVE_PTR_TYPE, base_properties::set(), octave_value::string_value(), QtHandles::toolkitObjectProperty(), graphics_object::type(), gh_manager::unlock(), and octave_handle::value().
Referenced by update().
|
slot |
Definition at line 357 of file qt-graphics-toolkit.cc.
References octave::interpreter::get_event_manager(), m_interpreter, and octave::event_manager::post_event().
|
slot |
Definition at line 365 of file qt-graphics-toolkit.cc.
References octave::interpreter::get_event_manager(), m_interpreter, and octave::event_manager::post_event().
|
inlinevirtual |
Reimplemented from octave::base_graphics_toolkit.
Definition at line 72 of file qt-graphics-toolkit.h.
|
virtual |
Reimplemented from octave::base_graphics_toolkit.
Definition at line 249 of file qt-graphics-toolkit.cc.
References QtHandles::Utils::fromStdString(), QtHandles::ObjectProxy::print(), and toolkitObjectProxy().
|
virtual |
Reimplemented from octave::base_graphics_toolkit.
Definition at line 225 of file qt-graphics-toolkit.cc.
References graphics_object::get_properties(), QtHandles::ObjectProxy::redraw(), and toolkitObjectProxy().
Referenced by gh_set_event().
|
virtual |
Reimplemented from octave::base_graphics_toolkit.
Definition at line 237 of file qt-graphics-toolkit.cc.
References graphics_object::get_properties(), QtHandles::ObjectProxy::show(), and toolkitObjectProxy().
|
static |
Definition at line 328 of file qt-graphics-toolkit.cc.
References QtHandles::ObjectProxy::object(), and toolkitObjectProxy().
Referenced by QtHandles::Canvas::canvasMouseMoveEvent(), QtHandles::Canvas::canvasMousePressEvent(), QtHandles::Canvas::canvasWheelEvent(), QtHandles::ContextMenu::executeAt(), QtHandles::Utils::figureCurrentPoint(), QtHandles::Object::parentObject(), and QtHandles::ButtonGroup::update().
|
static |
Definition at line 339 of file qt-graphics-toolkit.cc.
References graphics_object::get(), octave_value::is_defined(), octave_value::isempty(), OCTAVE_INTPTR_TYPE, and QtHandles::toolkitObjectProperty().
Referenced by create_object(), finalize(), get_pixels(), print_figure(), redraw_figure(), show_figure(), toolkitObject(), and update().
|
inherited |
Definition at line 37 of file graphics-toolkit.cc.
References octave::__get_gh_manager__(), gh_manager::get_object(), and octave::base_graphics_toolkit::update().
|
virtual |
Reimplemented from octave::base_graphics_toolkit.
Definition at line 160 of file qt-graphics-toolkit.cc.
References QtHandles::Logger::debug(), finalize(), initialize(), graphics_object::isa(), toolkitObjectProxy(), graphics_object::type(), and QtHandles::ObjectProxy::update().
|
private |
Definition at line 124 of file qt-graphics-toolkit.h.
Referenced by create_object(), finalize(), gh_callback_event(), gh_set_event(), initialize(), and interpreter_event().
|
privateinherited |
Definition at line 157 of file graphics-toolkit.h.
Referenced by octave::base_graphics_toolkit::get_name().
|
private |
Definition at line 126 of file qt-graphics-toolkit.h.
Referenced by create_object().