#include "Object.h"
Public Slots | |
void | objectDestroyed (QObject *obj=nullptr) |
void | slotFinalize (void) |
void | slotPrint (const QString &file_cmd, const QString &term) |
void | slotRedraw (void) |
void | slotShow (void) |
void | slotUpdate (int pId) |
Signals | |
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) |
Public Member Functions | |
Object (octave::base_qobject &qobj, octave::interpreter &interp, const graphics_object &go, QObject *obj=nullptr) | |
virtual | ~Object (void) |
virtual void | do_connections (const QObject *receiver, const QObject *emitter=nullptr) |
virtual Container * | innerContainer (void)=0 |
graphics_object | object (void) const |
base_properties & | properties (void) |
template<typename T > | |
T::properties & | properties (void) |
const base_properties & | properties (void) const |
template<typename T > | |
const T::properties & | properties (void) const |
virtual QObject * | qObject (void) |
template<typename T > | |
T * | qWidget (void) |
Static Public Member Functions | |
static Object * | fromQObject (QObject *obj) |
Protected Member Functions | |
virtual void | beingDeleted (void) |
virtual void | finalize (void) |
void | init (QObject *obj, bool callBase=false) |
virtual void | print (const QString &file_cmd, const QString &term) |
virtual void | redraw (void) |
virtual void | show (void) |
virtual void | update (int pId) |
Static Protected Member Functions | |
static Object * | parentObject (octave::interpreter &interp, const graphics_object &go) |
Protected Attributes | |
graphics_object | m_go |
graphics_handle | m_handle |
octave::interpreter & | m_interpreter |
octave::base_qobject & | m_octave_qobj |
QObject * | m_qobject |
QtHandles::Object::Object | ( | octave::base_qobject & | qobj, |
octave::interpreter & | interp, | ||
const graphics_object & | go, | ||
QObject * | obj = nullptr |
||
) |
Definition at line 44 of file Object.cc.
References octave::interpreter::get_gh_manager(), gh_manager::graphics_lock(), init(), m_handle, m_interpreter, and octave_handle::value().
|
protectedvirtual |
Reimplemented in QtHandles::ToolBar, and QtHandles::Figure.
Definition at line 191 of file Object.cc.
Referenced by slotUpdate().
|
virtual |
Reimplemented in QtHandles::Panel, and QtHandles::Figure.
Definition at line 225 of file Object.cc.
References gh_callback_event(), gh_set_event(), and interpreter_event().
Referenced by QtHandles::qt_graphics_toolkit::create_object(), QtHandles::Figure::do_connections(), and QtHandles::Panel::do_connections().
|
protectedvirtual |
Definition at line 214 of file Object.cc.
Referenced by QtHandles::ToolBar::ToolBar(), QtHandles::ButtonGroup::buttonClicked(), QtHandles::ButtonGroup::buttonToggled(), QtHandles::Figure::redraw(), QtHandles::Container::resizeEvent(), QtHandles::Figure::update(), and QtHandles::Menu::updateSiblingPositions().
|
signal |
Referenced by QtHandles::ContextMenu::aboutToShow(), QtHandles::Menu::actionHovered(), QtHandles::Menu::actionTriggered(), QtHandles::ButtonGroup::buttonClicked(), QtHandles::ButtonControl::clicked(), QtHandles::PushTool::clicked(), QtHandles::PopupMenuControl::currentIndexChanged(), do_connections(), QtHandles::EditControl::editingFinished(), QtHandles::BaseControl::eventFilter(), QtHandles::Table::eventFilter(), QtHandles::Figure::eventNotifyBefore(), QtHandles::Table::itemSelectionChanged(), QtHandles::EditControl::returnPressed(), QtHandles::Table::sendCellEditCallback(), QtHandles::ListBoxControl::sendSelectionChange(), QtHandles::ButtonControl::toggled(), QtHandles::ToggleTool::triggered(), and QtHandles::SliderControl::valueChanged().
|
signal |
|
signal |
Referenced by QtHandles::ContextMenu::aboutToHide(), QtHandles::ContextMenu::aboutToShow(), QtHandles::ButtonGroup::buttonToggled(), QtHandles::Table::checkBoxClicked(), QtHandles::Table::comboBoxCurrentIndexChanged(), QtHandles::PopupMenuControl::currentIndexChanged(), do_connections(), QtHandles::EditControl::editingFinished(), QtHandles::BaseControl::eventFilter(), QtHandles::Table::eventFilter(), QtHandles::Table::itemChanged(), QtHandles::EditControl::returnPressed(), QtHandles::ListBoxControl::sendSelectionChange(), QtHandles::ButtonControl::toggled(), QtHandles::ToggleTool::triggered(), QtHandles::PopupMenuControl::update(), QtHandles::Figure::updateBoundingBox(), QtHandles::Table::updateExtent(), and QtHandles::SliderControl::valueChanged().
|
signal |
|
signal |
|
protected |
Definition at line 62 of file Object.cc.
References m_qobject, and objectDestroyed().
Referenced by Object(), and QtHandles::BaseControl::init().
|
pure virtual |
Implemented in QtHandles::ToolBarButton< T >, QtHandles::ToolBarButton< uitoggletool >, QtHandles::ToolBarButton< uipushtool >, QtHandles::ToolBar, QtHandles::Table, QtHandles::Panel, QtHandles::Menu, QtHandles::Figure, QtHandles::ContextMenu, QtHandles::ButtonGroup, and QtHandles::BaseControl.
Referenced by QtHandles::ButtonGroup::create(), QtHandles::CheckBoxControl::create(), QtHandles::EditControl::create(), QtHandles::ListBoxControl::create(), QtHandles::Panel::create(), QtHandles::PopupMenuControl::create(), QtHandles::PushButtonControl::create(), QtHandles::RadioButtonControl::create(), QtHandles::SliderControl::create(), QtHandles::Table::create(), QtHandles::TextControl::create(), QtHandles::ToggleButtonControl::create(), QtHandles::Utils::figureCurrentPoint(), and QtHandles::Figure::update().
|
signal |
Referenced by do_connections().
|
signal |
graphics_object QtHandles::Object::object | ( | void | ) | const |
Definition at line 83 of file Object.cc.
References octave::interpreter::get_gh_manager(), gh_manager::graphics_lock(), m_go, m_handle, m_interpreter, and octave_handle::value().
Referenced by QtHandles::BaseControl::eventFilter(), QtHandles::ButtonGroup::eventFilter(), QtHandles::Panel::eventFilter(), QtHandles::Table::eventFilter(), properties(), QtHandles::Container::resizeEvent(), QtHandles::Table::updateExtent(), QtHandles::Figure::updateFigureHeight(), QtHandles::Menu::updateSiblingPositions(), and QtHandles::SliderControl::valueChanged().
|
slot |
|
staticprotected |
Definition at line 201 of file Object.cc.
References octave::interpreter::get_gh_manager(), gh_manager::get_object(), graphics_object::get_parent(), gh_manager::graphics_lock(), and QtHandles::qt_graphics_toolkit::toolkitObject().
Referenced by QtHandles::RadioButtonControl::RadioButtonControl(), QtHandles::ToggleButtonControl::ToggleButtonControl(), QtHandles::ButtonGroup::create(), QtHandles::CheckBoxControl::create(), QtHandles::ContextMenu::create(), QtHandles::EditControl::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(), and QtHandles::ButtonControl::update().
|
protectedvirtual |
Reimplemented in QtHandles::Figure.
Definition at line 187 of file Object.cc.
Referenced by slotPrint().
|
inline |
Definition at line 60 of file Object.h.
References graphics_object::get_properties(), and object().
Referenced by QtHandles::ButtonGroup::buttonClicked(), QtHandles::ButtonGroup::buttonToggled(), QtHandles::ButtonGroup::eventFilter(), QtHandles::Table::eventFilter(), and QtHandles::Utils::figureCurrentPoint().
|
inline |
Definition at line 67 of file Object.h.
References graphics_object::get_properties(), object(), and QtHandles::Utils::properties().
|
inline |
Definition at line 63 of file Object.h.
References graphics_object::get_properties(), and object().
|
inline |
Definition at line 74 of file Object.h.
References graphics_object::get_properties(), object(), and QtHandles::Utils::properties().
|
inlinevirtual |
Definition at line 82 of file Object.h.
References m_qobject.
Referenced by QtHandles::BaseControl::BaseControl(), QtHandles::Table::Table(), QtHandles::Menu::create(), QtHandles::ButtonGroup::eventFilter(), QtHandles::Panel::eventFilter(), QtHandles::ToolBar::eventFilter(), and qWidget().
|
inline |
Definition at line 85 of file Object.h.
References qObject().
Referenced by QtHandles::ContextMenu::create(), QtHandles::PushTool::create(), QtHandles::ToggleTool::create(), QtHandles::ToolBar::create(), QtHandles::ContextMenu::executeAt(), and QtHandles::Container::resizeEvent().
|
protectedvirtual |
Reimplemented in QtHandles::Table, QtHandles::Panel, QtHandles::Figure, QtHandles::ButtonGroup, and QtHandles::BaseControl.
Definition at line 179 of file Object.cc.
Referenced by slotRedraw().
|
protectedvirtual |
Reimplemented in QtHandles::Figure.
Definition at line 183 of file Object.cc.
Referenced by QtHandles::ButtonGroup::ButtonGroup(), QtHandles::Panel::Panel(), and slotShow().
|
slot |
Definition at line 121 of file Object.cc.
References finalize(), octave::interpreter::get_gh_manager(), gh_manager::graphics_lock(), and m_interpreter.
|
slot |
Definition at line 153 of file Object.cc.
References octave::interpreter::get_gh_manager(), gh_manager::graphics_lock(), m_interpreter, and print().
|
slot |
Definition at line 131 of file Object.cc.
References octave::interpreter::get_gh_manager(), gh_manager::graphics_lock(), m_interpreter, and redraw().
Referenced by QtHandles::Figure::redraw().
|
slot |
Definition at line 142 of file Object.cc.
References octave::interpreter::get_gh_manager(), gh_manager::graphics_lock(), m_interpreter, and show().
|
slot |
Definition at line 98 of file Object.cc.
References beingDeleted(), octave::interpreter::get_gh_manager(), gh_manager::graphics_lock(), m_interpreter, and update().
|
protectedvirtual |
Reimplemented in QtHandles::ToolBarButton< T >, QtHandles::ToolBarButton< uitoggletool >, QtHandles::ToolBarButton< uipushtool >, QtHandles::ToolBar, QtHandles::ToggleTool, QtHandles::ToggleButtonControl, QtHandles::TextControl, QtHandles::Table, QtHandles::SliderControl, QtHandles::PushTool, QtHandles::PushButtonControl, QtHandles::PopupMenuControl, QtHandles::Panel, QtHandles::Menu, QtHandles::ListBoxControl, QtHandles::Figure, QtHandles::EditControl, QtHandles::ContextMenu, QtHandles::ButtonGroup, QtHandles::ButtonControl, and QtHandles::BaseControl.
Definition at line 164 of file Object.cc.
Referenced by slotUpdate(), QtHandles::ContextMenu::update(), QtHandles::Menu::update(), QtHandles::ToolBar::update(), and QtHandles::ToolBarButton< T >::update().
|
protected |
|
protected |
Definition at line 157 of file Object.h.
Referenced by QtHandles::ButtonGroup::ButtonGroup(), QtHandles::Figure::Figure(), Object(), QtHandles::Panel::Panel(), QtHandles::ContextMenu::aboutToHide(), QtHandles::ContextMenu::aboutToShow(), QtHandles::Menu::actionHovered(), QtHandles::Menu::actionTriggered(), QtHandles::Figure::beingDeleted(), QtHandles::ButtonGroup::buttonClicked(), QtHandles::ButtonGroup::buttonToggled(), QtHandles::Table::checkBoxClicked(), QtHandles::ButtonControl::clicked(), QtHandles::PushTool::clicked(), QtHandles::Table::comboBoxCurrentIndexChanged(), QtHandles::PopupMenuControl::currentIndexChanged(), QtHandles::Figure::do_connections(), QtHandles::Panel::do_connections(), QtHandles::EditControl::editingFinished(), QtHandles::Figure::enableMouseTracking(), QtHandles::BaseControl::eventFilter(), QtHandles::Table::eventFilter(), QtHandles::Figure::eventNotifyBefore(), QtHandles::Table::itemChanged(), QtHandles::Table::itemSelectionChanged(), object(), QtHandles::Figure::print(), QtHandles::ButtonGroup::redraw(), QtHandles::Figure::redraw(), QtHandles::Panel::redraw(), QtHandles::EditControl::returnPressed(), QtHandles::Table::sendCellEditCallback(), QtHandles::ListBoxControl::sendSelectionChange(), QtHandles::Figure::slotGetPixels(), QtHandles::ButtonControl::toggled(), QtHandles::ToggleTool::triggered(), QtHandles::Figure::update(), QtHandles::PopupMenuControl::update(), QtHandles::Figure::updateBoundingBox(), and QtHandles::SliderControl::valueChanged().
|
protected |
Definition at line 140 of file Object.h.
Referenced by Object(), QtHandles::ButtonGroup::buttonClicked(), QtHandles::ButtonGroup::buttonToggled(), QtHandles::Table::checkBoxClicked(), QtHandles::Table::comboBoxCurrentIndexChanged(), QtHandles::BaseControl::eventFilter(), QtHandles::ButtonGroup::eventFilter(), QtHandles::Panel::eventFilter(), QtHandles::Table::eventFilter(), QtHandles::Figure::eventNotifyAfter(), QtHandles::Figure::eventNotifyBefore(), QtHandles::Figure::figureWindowShown(), QtHandles::Figure::fileName(), QtHandles::Table::itemChanged(), QtHandles::Figure::mouseMode(), object(), QtHandles::Figure::screenChanged(), QtHandles::Figure::setFileName(), slotFinalize(), QtHandles::Figure::slotGetPixels(), slotPrint(), slotRedraw(), slotShow(), slotUpdate(), QtHandles::ButtonControl::toggled(), QtHandles::ButtonControl::update(), QtHandles::ButtonGroup::update(), QtHandles::Figure::update(), QtHandles::Figure::updateFigureHeight(), and QtHandles::SliderControl::valueChanged().
|
protected |
|
protected |
Definition at line 159 of file Object.h.
Referenced by QtHandles::ListBoxControl::eventFilter(), finalize(), init(), objectDestroyed(), and qObject().