#include "PopupMenuControl.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 | |
PopupMenuControl (octave::base_qobject &oct_qobj, octave::interpreter &interp, const graphics_object &go, QComboBox *box) | |
~PopupMenuControl (void) | |
virtual void | do_connections (const QObject *receiver, const QObject *emitter=nullptr) |
bool | eventFilter (QObject *watched, QEvent *e) |
Container * | innerContainer (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 PopupMenuControl * | create (octave::base_qobject &oct_qobj, octave::interpreter &interp, const graphics_object &go) |
static Object * | fromQObject (QObject *obj) |
Protected Member Functions | |
virtual void | beingDeleted (void) |
virtual void | finalize (void) |
void | init (QObject *obj, bool callBase=false) |
void | init (QWidget *w, bool callBase=false) |
virtual void | print (const QString &file_cmd, const QString &term) |
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 | currentIndexChanged (int index) |
Private Attributes | |
bool | m_blockUpdate |
bool | m_keyPressHandlerDefined |
bool | m_normalizedFont |
Definition at line 38 of file PopupMenuControl.h.
PopupMenuControl::PopupMenuControl | ( | octave::base_qobject & | oct_qobj, |
octave::interpreter & | interp, | ||
const graphics_object & | go, | ||
QComboBox * | box | ||
) |
Definition at line 60 of file PopupMenuControl.cc.
References box(), currentIndexChanged(), Utils::fromStdString(), Utils::properties(), and update().
Referenced by create().
PopupMenuControl::~PopupMenuControl | ( | void | ) |
Definition at line 76 of file PopupMenuControl.cc.
|
protectedvirtualinherited |
Reimplemented in ToolBar, and Figure.
Definition at line 190 of file Object.cc.
Referenced by Object::slotUpdate().
|
static |
Definition at line 42 of file PopupMenuControl.cc.
References PopupMenuControl(), Object::innerContainer(), and Object::parentObject().
Referenced by qt_graphics_toolkit::create_object().
|
privateslot |
Definition at line 143 of file PopupMenuControl.cc.
References Object::gh_callback_event(), Object::gh_set_event(), m_blockUpdate, and Object::m_handle.
Referenced by PopupMenuControl().
|
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().
|
inherited |
Definition at line 236 of file BaseControl.cc.
References Utils::computeFont< uicontrol >(), ContextMenu::executeAt(), Utils::figureCurrentPoint(), Utils::figureSelectionType(), octave_scalar_map::getfield(), Object::gh_callback_event(), Object::gh_set_event(), m, Object::m_handle, Object::m_interpreter, BaseControl::m_keyPressHandlerDefined, BaseControl::m_normalizedFont, Utils::makeKeyEventStruct(), Object::object(), Utils::properties(), and octave_handle::value().
Referenced by ListBoxControl::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 ContextMenu::aboutToShow(), Menu::actionHovered(), Menu::actionTriggered(), ButtonGroup::buttonClicked(), ButtonControl::clicked(), PushTool::clicked(), 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 ContextMenu::aboutToHide(), ContextMenu::aboutToShow(), ButtonGroup::buttonToggled(), Table::checkBoxClicked(), Table::comboBoxCurrentIndexChanged(), currentIndexChanged(), Object::do_connections(), EditControl::editingFinished(), BaseControl::eventFilter(), Table::eventFilter(), Table::itemChanged(), EditControl::returnPressed(), ListBoxControl::sendSelectionChange(), ButtonControl::toggled(), ToggleTool::triggered(), 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().
|
protectedinherited |
Definition at line 129 of file BaseControl.cc.
References Utils::computeFont< uicontrol >(), Utils::fromStdString(), Object::init(), BaseControl::m_keyPressHandlerDefined, BaseControl::m_normalizedFont, Utils::properties(), round(), updatePalette(), and Faddeeva::w().
Referenced by BaseControl::BaseControl(), and EditControl::init().
|
inlinevirtualinherited |
Implements Object.
Definition at line 46 of file BaseControl.h.
|
signalinherited |
Referenced by Object::do_connections().
|
signalinherited |
|
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(), ContextMenu::create(), EditControl::create(), ListBoxControl::create(), Menu::create(), Panel::create(), 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 ContextMenu::create(), PushTool::create(), ToggleTool::create(), ToolBar::create(), ContextMenu::executeAt(), and Container::resizeEvent().
|
protectedvirtualinherited |
Reimplemented from Object.
Definition at line 158 of file BaseControl.cc.
References BaseControl::update().
|
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 BaseControl.
Definition at line 79 of file PopupMenuControl.cc.
References box(), Utils::fromStdString(), Object::gh_set_event(), m_blockUpdate, Object::m_handle, Array< T, Alloc >::numel(), Utils::properties(), BaseControl::update(), and warning().
Referenced by PopupMenuControl().
|
private |
Definition at line 59 of file PopupMenuControl.h.
Referenced by currentIndexChanged(), and 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(), ContextMenu::aboutToHide(), ContextMenu::aboutToShow(), Menu::actionHovered(), Menu::actionTriggered(), Figure::beingDeleted(), ButtonGroup::buttonClicked(), ButtonGroup::buttonToggled(), Table::checkBoxClicked(), ButtonControl::clicked(), PushTool::clicked(), Table::comboBoxCurrentIndexChanged(), 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(), 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().
|
privateinherited |
Definition at line 57 of file BaseControl.h.
Referenced by BaseControl::eventFilter(), BaseControl::init(), and BaseControl::update().
|
privateinherited |
Definition at line 56 of file BaseControl.h.
Referenced by BaseControl::eventFilter(), BaseControl::init(), and BaseControl::update().
|
protectedinherited |
|
protectedinherited |
Definition at line 155 of file Object.h.
Referenced by ListBoxControl::eventFilter(), Object::finalize(), Object::init(), Object::objectDestroyed(), and Object::qObject().