#include "Figure.h"
Public Slots | |
void | objectDestroyed (QObject *obj=nullptr) |
void | slotFinalize (void) |
uint8NDArray | slotGetPixels (void) |
void | slotPrint (const QString &file_cmd, const QString &term) |
void | slotRedraw (void) |
void | slotShow (void) |
void | slotUpdate (int pId) |
Signals | |
void | asyncUpdate (void) |
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 | |
Figure (octave::base_qobject &oct_qobj, octave::interpreter &interp, const graphics_object &go, FigureWindow *win) | |
~Figure (void) | |
void | do_connections (const QObject *receiver, const QObject *emitter=nullptr) |
void | eventNotifyAfter (QObject *watched, QEvent *event) |
bool | eventNotifyBefore (QObject *watched, QEvent *event) |
QString | fileName (void) |
Container * | innerContainer (void) |
QWidget * | menu (void) |
MouseMode | mouseMode (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) |
void | setFileName (const QString &name) |
void | updateStatusBar (ColumnVector pt) |
Static Public Member Functions | |
static Figure * | create (octave::base_qobject &oct_qobj, octave::interpreter &interp, const graphics_object &go) |
static Object * | fromQObject (QObject *obj) |
Protected Types | |
enum | UpdateBoundingBoxFlag { UpdateBoundingBoxPosition = 0x1 , UpdateBoundingBoxSize = 0x2 , UpdateBoundingBoxAll = 0x3 } |
Protected Member Functions | |
void | beingDeleted (void) |
virtual void | finalize (void) |
void | init (QObject *obj, bool callBase=false) |
void | print (const QString &file_cmd, const QString &term) |
void | redraw (void) |
void | show (void) |
void | update (int pId) |
void | updateBoundingBox (bool internal=false, int flags=0) |
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 | figureWindowShown () |
void | screenChanged (QScreen *) |
void | updateContainer (void) |
void | updateFigureHeight (int delta_h) |
Private Member Functions | |
void | addCustomToolBar (QToolBar *bar, bool visible, bool isdefault) |
void | enableMouseTracking (void) |
void | set_geometry (QRect r) |
void | showCustomToolBar (QToolBar *bar, bool visible) |
void | showFigureStatusBar (bool visible) |
Private Attributes | |
bool | m_blockUpdates |
Container * | m_container |
QToolBar * | m_figureToolBar |
QRect | m_innerRect |
MenuBar * | m_menuBar |
QRect | m_outerRect |
QImage | m_pointer_cdata |
int | m_previousHeight |
bool | m_resizable |
QStatusBar * | m_statusBar |
Friends | |
class | ToolBar |
|
protected |
QtHandles::Figure::Figure | ( | octave::base_qobject & | oct_qobj, |
octave::interpreter & | interp, | ||
const graphics_object & | go, | ||
FigureWindow * | win | ||
) |
Definition at line 119 of file Figure.cc.
References QtHandles::GenericEventNotifySender::addReceiver(), asyncUpdate(), QtHandles::boundingBoxToRect(), QtHandles::Container::canvas(), enableMouseTracking(), figureWindowShown(), figure::properties::get_boundingbox(), global_menubar_style(), m_container, QtHandles::Object::m_handle, m_innerRect, m_menuBar, m_outerRect, m_statusBar, set_geometry(), QtHandles::Canvas::setEventMask(), showFigureStatusBar(), update(), and updateContainer().
Referenced by create().
|
private |
Definition at line 801 of file Figure.cc.
References m_blockUpdates, m_figureToolBar, r, set_geometry(), and updateBoundingBox().
Referenced by QtHandles::ToolBar::ToolBar().
|
signal |
Referenced by Figure().
|
protectedvirtual |
Reimplemented from QtHandles::Object.
Definition at line 349 of file Figure.cc.
References QtHandles::Canvas::blockRedraw(), QtHandles::Container::canvas(), m_container, QtHandles::Object::m_handle, QtHandles::GenericEventNotifySender::removeReceiver(), and octave_handle::value().
|
static |
Definition at line 113 of file Figure.cc.
References Figure().
Referenced by QtHandles::qt_graphics_toolkit::create_object().
|
virtual |
Reimplemented from QtHandles::Object.
Definition at line 596 of file Figure.cc.
References QtHandles::Container::canvas(), QtHandles::Object::do_connections(), m_container, and QtHandles::Object::m_handle.
|
private |
Definition at line 901 of file Figure.cc.
References QtHandles::Container::canvas(), m_container, QtHandles::Object::m_handle, QtHandles::Canvas::qWidget(), and Faddeeva::w().
Referenced by Figure(), and eventNotifyAfter().
|
virtual |
Implements QtHandles::GenericEventNotifyReceiver.
Definition at line 721 of file Figure.cc.
References enableMouseTracking(), octave::interpreter::get_gh_manager(), gh_manager::graphics_lock(), m_blockUpdates, m_container, QtHandles::Object::m_interpreter, m_menuBar, m_previousHeight, update(), updateBoundingBox(), UpdateBoundingBoxPosition, UpdateBoundingBoxSize, and updateFigureHeight().
|
virtual |
Implements QtHandles::GenericEventNotifyReceiver.
Definition at line 667 of file Figure.cc.
References octave::interpreter::get_gh_manager(), gh_manager::get_object(), QtHandles::Object::gh_callback_event(), m_blockUpdates, m_container, QtHandles::Object::m_handle, QtHandles::Object::m_interpreter, m_menuBar, m_previousHeight, and graphics_object::set().
|
privateslot |
Definition at line 858 of file Figure.cc.
References octave::interpreter::get_gh_manager(), gh_manager::graphics_lock(), QtHandles::Object::m_interpreter, and screenChanged().
Referenced by Figure().
QString QtHandles::Figure::fileName | ( | void | ) |
Definition at line 199 of file Figure.cc.
References QtHandles::Utils::fromStdString(), octave::interpreter::get_gh_manager(), gh_manager::graphics_lock(), QtHandles::Object::m_interpreter, and name.
|
protectedvirtualinherited |
Definition at line 168 of file Object.cc.
References QtHandles::Object::m_qobject.
Referenced by QtHandles::Object::slotFinalize().
Definition at line 214 of file Object.cc.
Referenced by QtHandles::ToolBar::ToolBar(), QtHandles::ButtonGroup::buttonClicked(), QtHandles::ButtonGroup::buttonToggled(), redraw(), QtHandles::Container::resizeEvent(), update(), and QtHandles::Menu::updateSiblingPositions().
|
signalinherited |
Referenced by QtHandles::ContextMenu::aboutToShow(), QtHandles::Menu::actionHovered(), QtHandles::Menu::actionTriggered(), QtHandles::ButtonGroup::buttonClicked(), QtHandles::ButtonControl::clicked(), QtHandles::PushTool::clicked(), QtHandles::PopupMenuControl::currentIndexChanged(), QtHandles::Object::do_connections(), QtHandles::EditControl::editingFinished(), QtHandles::BaseControl::eventFilter(), QtHandles::Table::eventFilter(), eventNotifyBefore(), QtHandles::Table::itemSelectionChanged(), QtHandles::EditControl::returnPressed(), QtHandles::Table::sendCellEditCallback(), QtHandles::ListBoxControl::sendSelectionChange(), QtHandles::ButtonControl::toggled(), QtHandles::ToggleTool::triggered(), and QtHandles::SliderControl::valueChanged().
|
signalinherited |
|
signalinherited |
Referenced by QtHandles::ContextMenu::aboutToHide(), QtHandles::ContextMenu::aboutToShow(), QtHandles::ButtonGroup::buttonToggled(), QtHandles::Table::checkBoxClicked(), QtHandles::Table::comboBoxCurrentIndexChanged(), QtHandles::PopupMenuControl::currentIndexChanged(), QtHandles::Object::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(), updateBoundingBox(), QtHandles::Table::updateExtent(), and QtHandles::SliderControl::valueChanged().
|
signalinherited |
|
signalinherited |
|
protectedinherited |
Definition at line 62 of file Object.cc.
References QtHandles::Object::m_qobject, and QtHandles::Object::objectDestroyed().
Referenced by QtHandles::Object::Object(), and QtHandles::BaseControl::init().
|
virtual |
|
signalinherited |
Referenced by QtHandles::Object::do_connections().
|
signalinherited |
|
virtual |
Implements QtHandles::MenuContainer.
MouseMode QtHandles::Figure::mouseMode | ( | void | ) |
Definition at line 225 of file Figure.cc.
References octave::interpreter::get_gh_manager(), octave_scalar_map::getfield(), gh_manager::graphics_lock(), QtHandles::Object::m_interpreter, QtHandles::NoMode, QtHandles::PanMode, QtHandles::RotateMode, octave_value::string_value(), QtHandles::TextMode, QtHandles::ZoomInMode, and QtHandles::ZoomOutMode.
Referenced by QtHandles::Canvas::canvasMousePressEvent(), QtHandles::Canvas::canvasWheelEvent(), and update().
|
inherited |
Definition at line 83 of file Object.cc.
References octave::interpreter::get_gh_manager(), gh_manager::graphics_lock(), QtHandles::Object::m_go, QtHandles::Object::m_handle, QtHandles::Object::m_interpreter, and octave_handle::value().
Referenced by QtHandles::BaseControl::eventFilter(), QtHandles::ButtonGroup::eventFilter(), QtHandles::Panel::eventFilter(), QtHandles::Table::eventFilter(), QtHandles::Object::properties(), QtHandles::Container::resizeEvent(), QtHandles::Table::updateExtent(), updateFigureHeight(), QtHandles::Menu::updateSiblingPositions(), and QtHandles::SliderControl::valueChanged().
|
slotinherited |
Definition at line 194 of file Object.cc.
References QtHandles::Object::m_qobject.
Referenced by QtHandles::Object::init().
|
staticprotectedinherited |
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 from QtHandles::Object.
Definition at line 322 of file Figure.cc.
References QtHandles::Container::canvas(), m_container, QtHandles::Object::m_handle, and QtHandles::Canvas::print().
|
inlineinherited |
Definition at line 60 of file Object.h.
References graphics_object::get_properties(), and QtHandles::Object::object().
Referenced by QtHandles::ButtonGroup::buttonClicked(), QtHandles::ButtonGroup::buttonToggled(), QtHandles::ButtonGroup::eventFilter(), QtHandles::Table::eventFilter(), and QtHandles::Utils::figureCurrentPoint().
|
inlineinherited |
Definition at line 67 of file Object.h.
References graphics_object::get_properties(), QtHandles::Object::object(), and QtHandles::Utils::properties().
|
inlineinherited |
Definition at line 63 of file Object.h.
References graphics_object::get_properties(), and QtHandles::Object::object().
|
inlineinherited |
Definition at line 74 of file Object.h.
References graphics_object::get_properties(), QtHandles::Object::object(), and QtHandles::Utils::properties().
|
inlinevirtualinherited |
Definition at line 82 of file Object.h.
References QtHandles::Object::m_qobject.
Referenced by QtHandles::BaseControl::BaseControl(), QtHandles::Table::Table(), QtHandles::Menu::create(), QtHandles::ButtonGroup::eventFilter(), QtHandles::Panel::eventFilter(), QtHandles::ToolBar::eventFilter(), and QtHandles::Object::qWidget().
|
inlineinherited |
Definition at line 85 of file Object.h.
References QtHandles::Object::qObject().
Referenced by QtHandles::ContextMenu::create(), QtHandles::PushTool::create(), QtHandles::ToggleTool::create(), QtHandles::ToolBar::create(), QtHandles::ContextMenu::executeAt(), and QtHandles::Container::resizeEvent().
|
protectedvirtual |
Reimplemented from QtHandles::Object.
Definition at line 290 of file Figure.cc.
References QtHandles::Container::canvas(), QtHandles::Object::fromQObject(), m_container, QtHandles::Object::m_handle, QtHandles::Canvas::redraw(), and QtHandles::Object::slotRedraw().
Referenced by screenChanged(), and updateContainer().
|
privateslot |
Definition at line 877 of file Figure.cc.
References octave::interpreter::get_gh_manager(), gh_manager::graphics_lock(), QtHandles::Object::m_interpreter, and redraw().
Referenced by figureWindowShown().
|
private |
Definition at line 259 of file Figure.cc.
References m_resizable, r, and octave::state.
Referenced by Figure(), addCustomToolBar(), showCustomToolBar(), showFigureStatusBar(), update(), and updateFigureHeight().
void QtHandles::Figure::setFileName | ( | const QString & | name | ) |
Definition at line 213 of file Figure.cc.
References octave::interpreter::get_gh_manager(), gh_manager::graphics_lock(), QtHandles::Object::m_interpreter, and name.
|
protectedvirtual |
Reimplemented from QtHandles::Object.
Definition at line 313 of file Figure.cc.
Referenced by update().
|
private |
Definition at line 828 of file Figure.cc.
References m_blockUpdates, r, set_geometry(), and updateBoundingBox().
Referenced by QtHandles::ToolBar::beingDeleted(), and QtHandles::ToolBar::update().
|
private |
Definition at line 542 of file Figure.cc.
References m_blockUpdates, m_statusBar, r, set_geometry(), and updateBoundingBox().
|
slotinherited |
Definition at line 121 of file Object.cc.
References QtHandles::Object::finalize(), octave::interpreter::get_gh_manager(), gh_manager::graphics_lock(), and QtHandles::Object::m_interpreter.
|
slot |
Definition at line 331 of file Figure.cc.
References QtHandles::Container::canvas(), octave::interpreter::get_gh_manager(), QtHandles::Canvas::getPixels(), gh_manager::graphics_lock(), m_container, QtHandles::Object::m_handle, QtHandles::Object::m_interpreter, gh_manager::process_events(), and retval.
|
slotinherited |
Definition at line 153 of file Object.cc.
References octave::interpreter::get_gh_manager(), gh_manager::graphics_lock(), QtHandles::Object::m_interpreter, and QtHandles::Object::print().
|
slotinherited |
Definition at line 131 of file Object.cc.
References octave::interpreter::get_gh_manager(), gh_manager::graphics_lock(), QtHandles::Object::m_interpreter, and QtHandles::Object::redraw().
Referenced by redraw().
|
slotinherited |
Definition at line 142 of file Object.cc.
References octave::interpreter::get_gh_manager(), gh_manager::graphics_lock(), QtHandles::Object::m_interpreter, and QtHandles::Object::show().
|
slotinherited |
Definition at line 98 of file Object.cc.
References QtHandles::Object::beingDeleted(), octave::interpreter::get_gh_manager(), gh_manager::graphics_lock(), QtHandles::Object::m_interpreter, and QtHandles::Object::update().
|
protectedvirtual |
Reimplemented from QtHandles::Object.
Definition at line 361 of file Figure.cc.
References QtHandles::Canvas::addEventMask(), QtHandles::boundingBoxToRect(), QtHandles::Container::canvas(), QtHandles::Canvas::clearEventMask(), QtHandles::Object::fromQObject(), QtHandles::Utils::fromStdString(), figure::properties::get_boundingbox(), octave::interpreter::get_gh_manager(), figure::properties::get_title(), gh_manager::graphics_lock(), QtHandles::Object::innerContainer(), QtHandles::Canvas::KeyPress, QtHandles::Canvas::KeyRelease, m_blockUpdates, m_container, QtHandles::Object::m_handle, m_innerRect, QtHandles::Object::m_interpreter, m_menuBar, m_pointer_cdata, m_resizable, m_statusBar, mouseMode(), QtHandles::pointer_to_qimage(), base_properties::set(), set_geometry(), QtHandles::Canvas::setCursor(), show(), and showFigureStatusBar().
Referenced by Figure(), and eventNotifyAfter().
|
protected |
Definition at line 609 of file Figure.cc.
References figure::properties::bbox2position(), QtHandles::Object::gh_set_event(), m_container, QtHandles::Object::m_handle, m_innerRect, m_outerRect, r, UpdateBoundingBoxPosition, and UpdateBoundingBoxSize.
Referenced by addCustomToolBar(), eventNotifyAfter(), showCustomToolBar(), showFigureStatusBar(), and updateFigureHeight().
|
privateslot |
|
privateslot |
Definition at line 565 of file Figure.cc.
References octave::interpreter::get_gh_manager(), gh_manager::graphics_lock(), m_blockUpdates, QtHandles::Object::m_interpreter, QtHandles::Object::object(), r, set_geometry(), updateBoundingBox(), and graphics_object::valid_object().
Referenced by eventNotifyAfter().
void QtHandles::Figure::updateStatusBar | ( | ColumnVector | pt | ) |
Definition at line 587 of file Figure.cc.
References m_statusBar.
Referenced by QtHandles::Canvas::canvasMouseMoveEvent().
|
private |
Definition at line 136 of file Figure.h.
Referenced by addCustomToolBar(), eventNotifyAfter(), eventNotifyBefore(), showCustomToolBar(), showFigureStatusBar(), update(), and updateFigureHeight().
|
private |
Definition at line 135 of file Figure.h.
Referenced by Figure(), beingDeleted(), do_connections(), enableMouseTracking(), eventNotifyAfter(), eventNotifyBefore(), innerContainer(), print(), redraw(), slotGetPixels(), update(), and updateBoundingBox().
|
private |
Definition at line 137 of file Figure.h.
Referenced by addCustomToolBar().
|
protectedinherited |
Definition at line 150 of file Object.h.
Referenced by QtHandles::Object::object().
|
protectedinherited |
Definition at line 157 of file Object.h.
Referenced by QtHandles::ButtonGroup::ButtonGroup(), Figure(), QtHandles::Object::Object(), QtHandles::Panel::Panel(), QtHandles::ContextMenu::aboutToHide(), QtHandles::ContextMenu::aboutToShow(), QtHandles::Menu::actionHovered(), QtHandles::Menu::actionTriggered(), beingDeleted(), QtHandles::ButtonGroup::buttonClicked(), QtHandles::ButtonGroup::buttonToggled(), QtHandles::Table::checkBoxClicked(), QtHandles::ButtonControl::clicked(), QtHandles::PushTool::clicked(), QtHandles::Table::comboBoxCurrentIndexChanged(), QtHandles::PopupMenuControl::currentIndexChanged(), do_connections(), QtHandles::Panel::do_connections(), QtHandles::EditControl::editingFinished(), enableMouseTracking(), QtHandles::BaseControl::eventFilter(), QtHandles::Table::eventFilter(), eventNotifyBefore(), QtHandles::Table::itemChanged(), QtHandles::Table::itemSelectionChanged(), QtHandles::Object::object(), print(), QtHandles::ButtonGroup::redraw(), redraw(), QtHandles::Panel::redraw(), QtHandles::EditControl::returnPressed(), QtHandles::Table::sendCellEditCallback(), QtHandles::ListBoxControl::sendSelectionChange(), slotGetPixels(), QtHandles::ButtonControl::toggled(), QtHandles::ToggleTool::triggered(), update(), QtHandles::PopupMenuControl::update(), updateBoundingBox(), and QtHandles::SliderControl::valueChanged().
|
private |
Definition at line 140 of file Figure.h.
Referenced by Figure(), update(), and updateBoundingBox().
|
protectedinherited |
Definition at line 140 of file Object.h.
Referenced by QtHandles::Object::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(), eventNotifyAfter(), eventNotifyBefore(), figureWindowShown(), fileName(), QtHandles::Table::itemChanged(), mouseMode(), QtHandles::Object::object(), screenChanged(), setFileName(), QtHandles::Object::slotFinalize(), slotGetPixels(), QtHandles::Object::slotPrint(), QtHandles::Object::slotRedraw(), QtHandles::Object::slotShow(), QtHandles::Object::slotUpdate(), QtHandles::ButtonControl::toggled(), QtHandles::ButtonControl::update(), QtHandles::ButtonGroup::update(), update(), updateFigureHeight(), and QtHandles::SliderControl::valueChanged().
|
private |
Definition at line 138 of file Figure.h.
Referenced by Figure(), eventNotifyAfter(), eventNotifyBefore(), and update().
|
protectedinherited |
|
private |
Definition at line 141 of file Figure.h.
Referenced by Figure(), and updateBoundingBox().
|
private |
|
private |
Definition at line 143 of file Figure.h.
Referenced by eventNotifyAfter(), and eventNotifyBefore().
|
protectedinherited |
Definition at line 159 of file Object.h.
Referenced by QtHandles::ListBoxControl::eventFilter(), QtHandles::Object::finalize(), QtHandles::Object::init(), QtHandles::Object::objectDestroyed(), and QtHandles::Object::qObject().
|
private |
Definition at line 144 of file Figure.h.
Referenced by set_geometry(), and update().
|
private |
Definition at line 139 of file Figure.h.
Referenced by Figure(), showFigureStatusBar(), update(), and updateStatusBar().