#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 | |
void | finalize (const graphics_object &obj) |
uint8NDArray | get_pixels (const graphics_object &go) const |
Matrix | get_text_extent (const graphics_object &go) const |
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_object &obj, int pId) |
Static Public Member Functions | |
static Object * | toolkitObject (const graphics_object &go) |
static ObjectProxy * | toolkitObjectProxy (const graphics_object &go) |
Private Attributes | |
octave::interpreter & | m_interpreter |
octave::base_qobject & | m_octave_qobj |
Definition at line 42 of file qt-graphics-toolkit.h.
qt_graphics_toolkit::qt_graphics_toolkit | ( | octave::interpreter & | interp, |
octave::base_qobject & | oct_qobj | ||
) |
Definition at line 100 of file qt-graphics-toolkit.cc.
References create_object(), and create_object_signal().
|
default |
|
slot |
Definition at line 377 of file qt-graphics-toolkit.cc.
References ButtonGroup::create(), CheckBoxControl::create(), ContextMenu::create(), EditControl::create(), Figure::create(), ListBoxControl::create(), Menu::create(), Panel::create(), PopupMenuControl::create(), PushButtonControl::create(), PushTool::create(), RadioButtonControl::create(), SliderControl::create(), Table::create(), TextControl::create(), ToggleButtonControl::create(), ToggleTool::create(), ToolBar::create(), Logger::debug(), Object::do_connections(), m_interpreter, m_octave_qobj, Utils::properties(), ObjectProxy::setObject(), and toolkitObjectProxy().
Referenced by qt_graphics_toolkit().
|
signal |
Referenced by qt_graphics_toolkit(), and initialize().
void qt_graphics_toolkit::finalize | ( | const graphics_object & | obj | ) |
Definition at line 202 of file qt-graphics-toolkit.cc.
References Logger::debug(), ObjectProxy::finalize(), m_interpreter, toolkitObjectProperty(), and toolkitObjectProxy().
Referenced by update().
uint8NDArray qt_graphics_toolkit::get_pixels | ( | const graphics_object & | go | ) | const |
Definition at line 266 of file qt-graphics-toolkit.cc.
References ObjectProxy::get_pixels(), and toolkitObjectProxy().
Matrix qt_graphics_toolkit::get_text_extent | ( | const graphics_object & | go | ) | const |
Definition at line 282 of file qt-graphics-toolkit.cc.
References Utils::computeFont< uicontrol >(), Utils::fromStdString(), octave_value::is_string(), octave_value::iscellstr(), octave_value::isempty(), max(), string_vector::numel(), Utils::properties(), octave_value::string_value(), and octave_value::string_vector_value().
|
slot |
Definition at line 466 of file qt-graphics-toolkit.cc.
References m_interpreter.
|
slot |
Definition at line 474 of file qt-graphics-toolkit.cc.
References m_interpreter.
|
slot |
Definition at line 483 of file qt-graphics-toolkit.cc.
References m_interpreter.
|
slot |
Definition at line 492 of file qt-graphics-toolkit.cc.
References m_interpreter.
|
slot |
Definition at line 502 of file qt-graphics-toolkit.cc.
References m_interpreter, and redraw_figure().
bool qt_graphics_toolkit::initialize | ( | const graphics_object & | obj | ) |
Definition at line 120 of file qt-graphics-toolkit.cc.
References create_object_signal(), Logger::debug(), m_interpreter, OCTAVE_INTPTR_TYPE, OCTAVE_PTR_TYPE, and toolkitObjectProperty().
Referenced by update().
|
slot |
Definition at line 361 of file qt-graphics-toolkit.cc.
References m_interpreter.
|
slot |
Definition at line 369 of file qt-graphics-toolkit.cc.
References m_interpreter.
|
inline |
Definition at line 69 of file qt-graphics-toolkit.h.
void qt_graphics_toolkit::print_figure | ( | const graphics_object & | go, |
const std::string & | term, | ||
const std::string & | file_cmd, | ||
const std::string & | |||
) | const |
Definition at line 253 of file qt-graphics-toolkit.cc.
References Utils::fromStdString(), ObjectProxy::print(), and toolkitObjectProxy().
void qt_graphics_toolkit::redraw_figure | ( | const graphics_object & | h | ) | const |
Definition at line 229 of file qt-graphics-toolkit.cc.
References ObjectProxy::redraw(), and toolkitObjectProxy().
Referenced by gh_set_event().
void qt_graphics_toolkit::show_figure | ( | const graphics_object & | h | ) | const |
Definition at line 241 of file qt-graphics-toolkit.cc.
References ObjectProxy::show(), and toolkitObjectProxy().
|
static |
Definition at line 332 of file qt-graphics-toolkit.cc.
References ObjectProxy::object(), and toolkitObjectProxy().
Referenced by Canvas::canvasMouseMoveEvent(), Canvas::canvasMousePressEvent(), Canvas::canvasWheelEvent(), ContextMenu::executeAt(), Utils::figureCurrentPoint(), Object::parentObject(), and ButtonGroup::update().
|
static |
Definition at line 343 of file qt-graphics-toolkit.cc.
References octave_value::is_defined(), octave_value::isempty(), OCTAVE_INTPTR_TYPE, and toolkitObjectProperty().
Referenced by create_object(), finalize(), get_pixels(), print_figure(), redraw_figure(), show_figure(), toolkitObject(), and update().
void qt_graphics_toolkit::update | ( | const graphics_object & | obj, |
int | pId | ||
) |
Definition at line 159 of file qt-graphics-toolkit.cc.
References Logger::debug(), finalize(), initialize(), toolkitObjectProxy(), and ObjectProxy::update().
|
private |
Definition at line 121 of file qt-graphics-toolkit.h.
Referenced by create_object(), finalize(), gh_callback_event(), gh_set_event(), initialize(), and interpreter_event().
|
private |
Definition at line 123 of file qt-graphics-toolkit.h.
Referenced by create_object().