#include "ContextMenu.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 | |
ContextMenu (octave::base_qobject &oct_qobj, octave::interpreter &interp, const graphics_object &go, QMenu *menu) | |
~ContextMenu (void) | |
virtual void | do_connections (const QObject *receiver, const QObject *emitter=nullptr) |
Container * | innerContainer (void) |
QWidget * | menu (void) |
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 ContextMenu * | create (octave::base_qobject &oct_qobj, octave::interpreter &interp, const graphics_object &go) |
static void | executeAt (octave::interpreter &interp, const base_properties &props, const QPoint &pt) |
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) |
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 |
Private Slots | |
void | aboutToHide (void) |
void | aboutToShow (void) |
Definition at line 41 of file ContextMenu.h.
ContextMenu::ContextMenu | ( | octave::base_qobject & | oct_qobj, |
octave::interpreter & | interp, | ||
const graphics_object & | go, | ||
QMenu * | menu | ||
) |
Definition at line 58 of file ContextMenu.cc.
References aboutToHide(), and aboutToShow().
Referenced by create().
ContextMenu::~ContextMenu | ( | void | ) |
Definition at line 69 of file ContextMenu.cc.
|
privateslot |
Definition at line 110 of file ContextMenu.cc.
References Object::gh_set_event(), and Object::m_handle.
Referenced by ContextMenu().
|
privateslot |
Definition at line 103 of file ContextMenu.cc.
References Object::gh_callback_event(), Object::gh_set_event(), and Object::m_handle.
Referenced by ContextMenu().
|
protectedvirtualinherited |
Reimplemented in ToolBar, and Figure.
Definition at line 190 of file Object.cc.
Referenced by Object::slotUpdate().
|
static |
Definition at line 43 of file ContextMenu.cc.
References ContextMenu(), Object::parentObject(), Object::qWidget(), and Faddeeva::w().
Referenced by qt_graphics_toolkit::create_object().
|
virtualinherited |
Reimplemented in Panel, and Figure.
Definition at line 224 of file Object.cc.
References Object::gh_callback_event(), Object::gh_set_event(), and Object::interpreter_event().
Referenced by qt_graphics_toolkit::create_object(), Figure::do_connections(), and Panel::do_connections().
|
static |
Definition at line 122 of file ContextMenu.cc.
References menu(), octave_handle::ok(), Object::qWidget(), and qt_graphics_toolkit::toolkitObject().
Referenced by Canvas::canvasMousePressEvent(), BaseControl::eventFilter(), ButtonGroup::eventFilter(), Panel::eventFilter(), and Table::eventFilter().
|
protectedvirtualinherited |
Definition at line 167 of file Object.cc.
References Object::m_qobject.
Referenced by Object::slotFinalize().
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().
|
signalinherited |
Referenced by aboutToShow(), Menu::actionHovered(), Menu::actionTriggered(), ButtonGroup::buttonClicked(), ButtonControl::clicked(), PushTool::clicked(), PopupMenuControl::currentIndexChanged(), Object::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().
|
signalinherited |
|
signalinherited |
Referenced by aboutToHide(), aboutToShow(), ButtonGroup::buttonToggled(), Table::checkBoxClicked(), Table::comboBoxCurrentIndexChanged(), PopupMenuControl::currentIndexChanged(), Object::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().
|
signalinherited |
|
signalinherited |
|
protectedinherited |
Definition at line 61 of file Object.cc.
References Object::m_qobject, and Object::objectDestroyed().
Referenced by BaseControl::init().
|
inlinevirtual |
Implements Object.
Definition at line 57 of file ContextMenu.h.
|
signalinherited |
Referenced by Object::do_connections().
|
signalinherited |
|
virtual |
|
inherited |
Definition at line 82 of file Object.cc.
References Object::m_go, Object::m_handle, Object::m_interpreter, and octave_handle::value().
Referenced by BaseControl::eventFilter(), ButtonGroup::eventFilter(), Panel::eventFilter(), Table::eventFilter(), Object::properties(), Container::resizeEvent(), Table::updateExtent(), Figure::updateFigureHeight(), Menu::updateSiblingPositions(), and SliderControl::valueChanged().
|
slotinherited |
Definition at line 193 of file Object.cc.
References Object::m_qobject.
Referenced by Object::init().
|
staticprotectedinherited |
Definition at line 200 of file Object.cc.
References qt_graphics_toolkit::toolkitObject().
Referenced by RadioButtonControl::RadioButtonControl(), ToggleButtonControl::ToggleButtonControl(), ButtonGroup::create(), CheckBoxControl::create(), 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().
|
protectedvirtualinherited |
Reimplemented in Figure.
Definition at line 186 of file Object.cc.
Referenced by Object::slotPrint().
|
inlineinherited |
Definition at line 56 of file Object.h.
References Object::object().
Referenced by ButtonGroup::buttonClicked(), ButtonGroup::buttonToggled(), ButtonGroup::eventFilter(), Table::eventFilter(), and Utils::figureCurrentPoint().
|
inlineinherited |
Definition at line 63 of file Object.h.
References Object::object(), and Utils::properties().
|
inlineinherited |
Definition at line 59 of file Object.h.
References Object::object().
|
inlineinherited |
Definition at line 70 of file Object.h.
References Object::object(), and Utils::properties().
|
inlinevirtualinherited |
Definition at line 78 of file Object.h.
References Object::m_qobject.
Referenced by BaseControl::BaseControl(), Table::Table(), Menu::create(), ButtonGroup::eventFilter(), Panel::eventFilter(), ToolBar::eventFilter(), and Object::qWidget().
|
inlineinherited |
Definition at line 81 of file Object.h.
References Object::qObject().
Referenced by create(), PushTool::create(), ToggleTool::create(), ToolBar::create(), executeAt(), and Container::resizeEvent().
|
protectedvirtualinherited |
Reimplemented in Table, Panel, Figure, ButtonGroup, and BaseControl.
Definition at line 178 of file Object.cc.
Referenced by Object::slotRedraw().
|
protectedvirtualinherited |
Reimplemented in Figure.
Definition at line 182 of file Object.cc.
Referenced by ButtonGroup::ButtonGroup(), and Object::slotShow().
|
slotinherited |
Definition at line 120 of file Object.cc.
References Object::finalize(), and Object::m_interpreter.
|
slotinherited |
Definition at line 152 of file Object.cc.
References Object::m_interpreter, and Object::print().
|
slotinherited |
Definition at line 130 of file Object.cc.
References Object::m_interpreter, and Object::redraw().
Referenced by ObjectProxy::init(), and Figure::redraw().
|
slotinherited |
Definition at line 141 of file Object.cc.
References Object::m_interpreter, and Object::show().
Referenced by ObjectProxy::init().
|
slotinherited |
Definition at line 97 of file Object.cc.
References Object::beingDeleted(), Object::m_interpreter, and Object::update().
Referenced by ObjectProxy::init().
|
protectedvirtual |
Reimplemented from Object.
Definition at line 73 of file ContextMenu.cc.
References Utils::properties(), round(), and Object::update().
|
protectedinherited |
Definition at line 146 of file Object.h.
Referenced by Object::object().
|
protectedinherited |
Definition at line 153 of file Object.h.
Referenced by ButtonGroup::ButtonGroup(), Figure::Figure(), Panel::Panel(), aboutToHide(), 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::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().
|
protectedinherited |
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::object(), Figure::screenChanged(), Figure::setFileName(), Object::slotFinalize(), Figure::slotGetPixels(), Object::slotPrint(), Object::slotRedraw(), Object::slotShow(), Object::slotUpdate(), ButtonControl::toggled(), ButtonControl::update(), ButtonGroup::update(), Figure::update(), Figure::updateFigureHeight(), and SliderControl::valueChanged().
|
protectedinherited |
|
protectedinherited |
Definition at line 155 of file Object.h.
Referenced by ListBoxControl::eventFilter(), Object::finalize(), Object::init(), Object::objectDestroyed(), and Object::qObject().