#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 |
Object::Object | ( | octave::base_qobject & | qobj, |
octave::interpreter & | interp, | ||
const graphics_object & | go, | ||
QObject * | obj = nullptr |
||
) |
|
protectedvirtual |
Reimplemented in ToolBar, and Figure.
Definition at line 190 of file Object.cc.
Referenced by slotUpdate().
Reimplemented in Panel, and Figure.
Definition at line 224 of file Object.cc.
References gh_callback_event(), gh_set_event(), and interpreter_event().
Referenced by qt_graphics_toolkit::create_object(), Figure::do_connections(), and Panel::do_connections().
|
protectedvirtual |
Definition at line 213 of file Object.cc.
Referenced by ToolBar::ToolBar(), ButtonGroup::buttonClicked(), ButtonGroup::buttonToggled(), Figure::redraw(), Container::resizeEvent(), Figure::update(), and Menu::updateSiblingPositions().
|
signal |
Referenced by ContextMenu::aboutToShow(), Menu::actionHovered(), Menu::actionTriggered(), ButtonGroup::buttonClicked(), ButtonControl::clicked(), PushTool::clicked(), PopupMenuControl::currentIndexChanged(), do_connections(), EditControl::editingFinished(), BaseControl::eventFilter(), Table::eventFilter(), Figure::eventNotifyBefore(), Table::itemSelectionChanged(), EditControl::returnPressed(), Table::sendCellEditCallback(), ListBoxControl::sendSelectionChange(), ButtonControl::toggled(), ToggleTool::triggered(), and SliderControl::valueChanged().
|
signal |
|
signal |
Referenced by ContextMenu::aboutToHide(), ContextMenu::aboutToShow(), ButtonGroup::buttonToggled(), Table::checkBoxClicked(), Table::comboBoxCurrentIndexChanged(), PopupMenuControl::currentIndexChanged(), do_connections(), EditControl::editingFinished(), BaseControl::eventFilter(), Table::eventFilter(), Table::itemChanged(), EditControl::returnPressed(), ListBoxControl::sendSelectionChange(), ButtonControl::toggled(), ToggleTool::triggered(), PopupMenuControl::update(), Figure::updateBoundingBox(), Table::updateExtent(), and SliderControl::valueChanged().
|
signal |
|
signal |
|
protected |
Definition at line 61 of file Object.cc.
References m_qobject, and objectDestroyed().
Referenced by BaseControl::init().
|
pure virtual |
Implemented in ToolBarButton< T >, ToolBarButton< uitoggletool >, ToolBarButton< uipushtool >, ToolBar, Table, Panel, Menu, Figure, ContextMenu, ButtonGroup, and BaseControl.
Referenced by ButtonGroup::create(), CheckBoxControl::create(), EditControl::create(), ListBoxControl::create(), Panel::create(), PopupMenuControl::create(), PushButtonControl::create(), RadioButtonControl::create(), SliderControl::create(), Table::create(), TextControl::create(), ToggleButtonControl::create(), Utils::figureCurrentPoint(), and Figure::update().
|
signal |
Referenced by do_connections().
|
signal |
graphics_object Object::object | ( | void | ) | const |
Definition at line 82 of file Object.cc.
References m_go, m_handle, m_interpreter, and octave_handle::value().
Referenced by BaseControl::eventFilter(), ButtonGroup::eventFilter(), Panel::eventFilter(), Table::eventFilter(), properties(), Container::resizeEvent(), Table::updateExtent(), Figure::updateFigureHeight(), Menu::updateSiblingPositions(), and SliderControl::valueChanged().
|
slot |
|
staticprotected |
Definition at line 200 of file Object.cc.
References qt_graphics_toolkit::toolkitObject().
Referenced by RadioButtonControl::RadioButtonControl(), ToggleButtonControl::ToggleButtonControl(), ButtonGroup::create(), CheckBoxControl::create(), ContextMenu::create(), EditControl::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(), and ButtonControl::update().
|
protectedvirtual |
|
inline |
Definition at line 56 of file Object.h.
References object().
Referenced by ButtonGroup::buttonClicked(), ButtonGroup::buttonToggled(), ButtonGroup::eventFilter(), Table::eventFilter(), and Utils::figureCurrentPoint().
|
inline |
Definition at line 63 of file Object.h.
References object(), and Utils::properties().
|
inline |
|
inline |
Definition at line 70 of file Object.h.
References object(), and Utils::properties().
|
inlinevirtual |
Definition at line 78 of file Object.h.
References m_qobject.
Referenced by BaseControl::BaseControl(), Table::Table(), Menu::create(), ButtonGroup::eventFilter(), Panel::eventFilter(), ToolBar::eventFilter(), and qWidget().
|
inline |
Definition at line 81 of file Object.h.
References qObject().
Referenced by ContextMenu::create(), PushTool::create(), ToggleTool::create(), ToolBar::create(), ContextMenu::executeAt(), and Container::resizeEvent().
|
protectedvirtual |
Reimplemented in Table, Panel, Figure, ButtonGroup, and BaseControl.
Definition at line 178 of file Object.cc.
Referenced by slotRedraw().
|
protectedvirtual |
Reimplemented in Figure.
Definition at line 182 of file Object.cc.
Referenced by ButtonGroup::ButtonGroup(), and slotShow().
|
slot |
Definition at line 120 of file Object.cc.
References finalize(), and m_interpreter.
|
slot |
Definition at line 152 of file Object.cc.
References m_interpreter, and print().
|
slot |
Definition at line 130 of file Object.cc.
References m_interpreter, and redraw().
Referenced by ObjectProxy::init(), and Figure::redraw().
|
slot |
Definition at line 141 of file Object.cc.
References m_interpreter, and show().
Referenced by ObjectProxy::init().
|
slot |
Definition at line 97 of file Object.cc.
References beingDeleted(), m_interpreter, and update().
Referenced by ObjectProxy::init().
|
protectedvirtual |
Reimplemented in ToolBarButton< T >, ToolBarButton< uitoggletool >, ToolBarButton< uipushtool >, ToolBar, ToggleTool, ToggleButtonControl, TextControl, Table, SliderControl, RadioButtonControl, PushTool, PushButtonControl, PopupMenuControl, Panel, Menu, ListBoxControl, Figure, EditControl, ContextMenu, CheckBoxControl, ButtonGroup, ButtonControl, and BaseControl.
Definition at line 163 of file Object.cc.
Referenced by slotUpdate(), ContextMenu::update(), Menu::update(), ToolBar::update(), and ToolBarButton< T >::update().
|
protected |
|
protected |
Definition at line 153 of file Object.h.
Referenced by ButtonGroup::ButtonGroup(), Figure::Figure(), Panel::Panel(), ContextMenu::aboutToHide(), ContextMenu::aboutToShow(), Menu::actionHovered(), Menu::actionTriggered(), Figure::beingDeleted(), ButtonGroup::buttonClicked(), ButtonGroup::buttonToggled(), Table::checkBoxClicked(), ButtonControl::clicked(), PushTool::clicked(), Table::comboBoxCurrentIndexChanged(), PopupMenuControl::currentIndexChanged(), Figure::do_connections(), Panel::do_connections(), EditControl::editingFinished(), Figure::enableMouseTracking(), BaseControl::eventFilter(), Table::eventFilter(), Figure::eventNotifyBefore(), Table::itemChanged(), Table::itemSelectionChanged(), object(), Figure::print(), ButtonGroup::redraw(), Figure::redraw(), Panel::redraw(), EditControl::returnPressed(), Table::sendCellEditCallback(), ListBoxControl::sendSelectionChange(), Figure::slotGetPixels(), ButtonControl::toggled(), ToggleTool::triggered(), Figure::update(), PopupMenuControl::update(), Figure::updateBoundingBox(), and SliderControl::valueChanged().
|
protected |
Definition at line 136 of file Object.h.
Referenced by ButtonGroup::buttonClicked(), ButtonGroup::buttonToggled(), Table::checkBoxClicked(), Table::comboBoxCurrentIndexChanged(), BaseControl::eventFilter(), ButtonGroup::eventFilter(), Panel::eventFilter(), Table::eventFilter(), Figure::eventNotifyAfter(), Figure::eventNotifyBefore(), Figure::figureWindowShown(), Figure::fileName(), Table::itemChanged(), Figure::mouseMode(), object(), Figure::screenChanged(), Figure::setFileName(), slotFinalize(), Figure::slotGetPixels(), slotPrint(), slotRedraw(), slotShow(), slotUpdate(), ButtonControl::toggled(), ButtonControl::update(), ButtonGroup::update(), Figure::update(), Figure::updateFigureHeight(), and SliderControl::valueChanged().
|
protected |
Definition at line 155 of file Object.h.
Referenced by ListBoxControl::eventFilter(), finalize(), init(), objectDestroyed(), and qObject().