GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "Figure.h"
Public Slots | |
void | objectDestroyed (QObject *obj=0) |
void | slotFinalize (void) |
void | slotPrint (const QString &file_cmd, const QString &term) |
void | slotRedraw (void) |
void | slotUpdate (int pId) |
Signals | |
void | asyncUpdate (void) |
Public Member Functions | |
Figure (const graphics_object &go, FigureWindow *win) | |
~Figure (void) | |
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) |
const base_properties & | properties (void) const |
template<class T > | |
T::properties & | properties (void) |
template<class T > | |
const T::properties & | properties (void) const |
virtual QObject * | qObject (void) |
template<class T > | |
T * | qWidget (void) |
void | setFileName (const QString &name) |
Static Public Member Functions | |
static Figure * | create (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 | update (int pId) |
void | updateBoundingBox (bool internal=false, int flags=0) |
Static Protected Member Functions | |
static Object * | parentObject (const graphics_object &go) |
Protected Attributes | |
graphics_handle | m_handle |
QObject * | m_qobject |
Private Slots | |
void | autoAxes (void) |
void | editCopy (bool choose_format=false) |
void | fileCloseFigure (void) |
void | fileSaveFigure (bool prompt=false) |
void | fileSaveFigureAs (void) |
void | helpAboutQtHandles (void) |
void | setMouseMode (MouseMode mode) |
void | toggleAxes (void) |
void | toggleGrid (void) |
void | updateContainer (void) |
void | updateMenuBar (void) |
Private Member Functions | |
void | addCustomToolBar (QToolBar *bar, bool visible) |
void | copy_figure_callback (const std::string &format) |
void | createFigureToolBarAndMenuBar (void) |
void | save_figure_callback (const std::string &file) |
void | showCustomToolBar (QToolBar *bar, bool visible) |
void | showFigureToolBar (bool visible) |
void | showMenuBar (bool visible) |
void | updateFigureToolBarAndMenuBar (void) |
Static Private Member Functions | |
static void | updateBoundingBoxHelper (void *) |
Private Attributes | |
bool | m_blockUpdates |
Container * | m_container |
QToolBar * | m_figureToolBar |
QRect | m_innerRect |
MenuBar * | m_menuBar |
MouseModeActionGroup * | m_mouseModeGroup |
QRect | m_outerRect |
Friends | |
class | ToolBar |
|
protected |
QtHandles::Figure::Figure | ( | const graphics_object & | go, |
FigureWindow * | win | ||
) |
Definition at line 126 of file Figure.cc.
References QtHandles::GenericEventNotifySender::addReceiver(), asyncUpdate(), QtHandles::boundingBoxToRect(), QtHandles::Container::canvas(), createFigureToolBarAndMenuBar(), QtHandles::Utils::fromStdString(), figure::properties::get_boundingbox(), figure::properties::get_keypressfcn(), figure::properties::get_keyreleasefcn(), figure::properties::get_title(), figure::properties::get_windowbuttonmotionfcn(), QtHandles::hasUiControlChildren(), QtHandles::hasUiMenuChildren(), octave_value::is_empty(), base_properties::is_visible(), QtHandles::Canvas::KeyPress, QtHandles::Canvas::KeyRelease, m_container, m_figureToolBar, QtHandles::Object::m_handle, m_innerRect, m_menuBar, m_outerRect, figure::properties::menubar_is(), QtHandles::Canvas::qWidget(), QtHandles::Canvas::setEventMask(), figure::properties::toolbar_is(), and updateContainer().
Referenced by create().
|
private |
Definition at line 876 of file Figure.cc.
References m_blockUpdates, and updateBoundingBox().
Referenced by QtHandles::ToolBar::ToolBar().
|
signal |
Definition at line 136 of file moc-Figure.cc.
Referenced by Figure().
|
privateslot |
Definition at line 950 of file Figure.cc.
References QtHandles::Canvas::autoAxes(), QtHandles::Container::canvas(), m_container, and QtHandles::Object::m_handle.
Referenced by createFigureToolBarAndMenuBar().
|
protectedvirtual |
Reimplemented from QtHandles::Object.
Definition at line 386 of file Figure.cc.
References QtHandles::Canvas::blockRedraw(), QtHandles::Container::canvas(), m_container, QtHandles::Object::m_handle, m_menuBar, QtHandles::GenericEventNotifySender::removeReceiver(), and octave_handle::value().
|
private |
Definition at line 820 of file Figure.cc.
References octave_link::copy_image_to_clipboard(), Ffeval(), octave_tempnam(), and ovl().
Referenced by editCopy().
|
static |
Definition at line 121 of file Figure.cc.
References Figure().
Referenced by QtHandles::ObjectFactory::createObject().
|
private |
Definition at line 284 of file Figure.cc.
References QtHandles::MouseModeActionGroup::actions(), QtHandles::GenericEventNotifySender::addReceiver(), autoAxes(), CTRL, editCopy(), fileCloseFigure(), fileSaveFigure(), fileSaveFigureAs(), helpAboutQtHandles(), m_figureToolBar, m_menuBar, m_mouseModeGroup, setMouseMode(), toggleAxes(), and toggleGrid().
Referenced by Figure().
|
privateslot |
Definition at line 852 of file Figure.cc.
References copy_figure_callback(), and octave_link::post_event().
Referenced by createFigureToolBarAndMenuBar().
|
virtual |
Implements QtHandles::GenericEventNotifyReceiver.
Definition at line 691 of file Figure.cc.
References QtHandles::hasUiControlChildren(), m_blockUpdates, m_container, m_menuBar, showFigureToolBar(), updateBoundingBox(), UpdateBoundingBoxPosition, UpdateBoundingBoxSize, and updateMenuBar().
Implements QtHandles::GenericEventNotifyReceiver.
Definition at line 646 of file Figure.cc.
References m_blockUpdates, m_container, QtHandles::Object::m_handle, m_menuBar, gh_manager::post_callback(), and updateMenuBar().
|
privateslot |
Definition at line 846 of file Figure.cc.
Referenced by createFigureToolBarAndMenuBar().
QString QtHandles::Figure::fileName | ( | void | ) |
Definition at line 241 of file Figure.cc.
References QtHandles::Utils::fromStdString(), and figure::properties::get_filename().
Referenced by fileSaveFigure().
|
privateslot |
Definition at line 781 of file Figure.cc.
References fileName(), octave_link::post_event(), save_figure_callback(), and setFileName().
Referenced by createFigureToolBarAndMenuBar(), and fileSaveFigureAs().
|
privateslot |
Definition at line 840 of file Figure.cc.
References fileSaveFigure().
Referenced by createFigureToolBarAndMenuBar().
|
protectedvirtualinherited |
Definition at line 138 of file Object.cc.
References QtHandles::Object::m_qobject.
Referenced by QtHandles::Object::slotFinalize().
Definition at line 181 of file Object.cc.
Referenced by redraw(), QtHandles::Container::resizeEvent(), QtHandles::ToolBar::ToolBar(), and QtHandles::Menu::updateSiblingPositions().
|
privateslot |
Definition at line 756 of file Figure.cc.
References ABOUT_TEXT.
Referenced by createFigureToolBarAndMenuBar().
Definition at line 51 of file Object.cc.
References QtHandles::Object::m_qobject, and QtHandles::Object::objectDestroyed().
Referenced by QtHandles::BaseControl::init(), and QtHandles::Object::Object().
|
virtual |
|
virtual |
Implements QtHandles::MenuContainer.
MouseMode QtHandles::Figure::mouseMode | ( | void | ) |
Definition at line 263 of file Figure.cc.
References figure::properties::get___mouse_mode__(), figure::properties::get___zoom_mode__(), octave_scalar_map::getfield(), QtHandles::mouse_mode_from_string(), octave_value::scalar_map_value(), and octave_value::string_value().
Referenced by QtHandles::Canvas::canvasMousePressEvent(), QtHandles::Canvas::canvasWheelEvent(), and updateFigureToolBarAndMenuBar().
|
inherited |
Definition at line 73 of file Object.cc.
References gh_manager::get_object(), QtHandles::Object::m_handle, and octave_handle::value().
Referenced by QtHandles::BaseControl::eventFilter(), QtHandles::Panel::eventFilter(), QtHandles::Object::properties(), updateMenuBar(), QtHandles::Menu::updateSiblingPositions(), and QtHandles::SliderControl::valueChanged().
|
slotinherited |
Definition at line 163 of file Object.cc.
References QtHandles::Object::m_qobject.
Referenced by QtHandles::Object::init().
|
staticprotectedinherited |
Definition at line 170 of file Object.cc.
References gh_manager::get_object(), graphics_object::get_parent(), and QtHandles::Backend::toolkitObject().
Referenced by QtHandles::CheckBoxControl::create(), QtHandles::PushButtonControl::create(), QtHandles::TextControl::create(), QtHandles::PushTool::create(), QtHandles::RadioButtonControl::create(), QtHandles::ToggleButtonControl::create(), QtHandles::ToggleTool::create(), QtHandles::PopupMenuControl::create(), QtHandles::ListBoxControl::create(), QtHandles::SliderControl::create(), QtHandles::ToolBar::create(), QtHandles::Menu::create(), QtHandles::ContextMenu::create(), QtHandles::EditControl::create(), and QtHandles::Panel::create().
|
protectedvirtual |
Reimplemented from QtHandles::Object.
Definition at line 377 of file Figure.cc.
References QtHandles::Container::canvas(), m_container, QtHandles::Object::m_handle, and QtHandles::Canvas::print().
|
inlineinherited |
Definition at line 49 of file Object.h.
References graphics_object::get_properties(), and QtHandles::Object::object().
Referenced by QtHandles::Panel::eventFilter(), QtHandles::Utils::figureCurrentPoint(), and QtHandles::Container::resizeEvent().
|
inlineinherited |
Definition at line 52 of file Object.h.
References graphics_object::get_properties(), and QtHandles::Object::object().
|
inlineinherited |
Definition at line 56 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(), QtHandles::Object::object(), and QtHandles::Utils::properties().
|
inlinevirtualinherited |
Definition at line 71 of file Object.h.
References QtHandles::Object::m_qobject.
Referenced by QtHandles::Menu::create(), QtHandles::Panel::eventFilter(), QtHandles::ToolBar::eventFilter(), and QtHandles::Object::qWidget().
|
inlineinherited |
Definition at line 74 of file Object.h.
References QtHandles::Object::qObject().
Referenced by QtHandles::PushTool::create(), QtHandles::ToggleTool::create(), QtHandles::ToolBar::create(), QtHandles::ContextMenu::create(), QtHandles::ContextMenu::executeAt(), and QtHandles::Container::resizeEvent().
|
protectedvirtual |
Reimplemented from QtHandles::Object.
Definition at line 354 of file Figure.cc.
References QtHandles::Container::canvas(), QtHandles::Object::fromQObject(), m_container, QtHandles::Object::m_handle, QtHandles::Canvas::redraw(), QtHandles::Object::slotRedraw(), and updateFigureToolBarAndMenuBar().
Referenced by updateContainer().
|
private |
Definition at line 814 of file Figure.cc.
References Ffeval(), and ovl().
Referenced by fileSaveFigure().
void QtHandles::Figure::setFileName | ( | const QString & | name | ) |
Definition at line 253 of file Figure.cc.
References figure::properties::set_filename().
Referenced by fileSaveFigure().
|
privateslot |
Definition at line 763 of file Figure.cc.
References QtHandles::Container::canvas(), m_blockUpdates, m_container, QtHandles::Object::m_handle, QtHandles::mouse_mode_to_string(), figure::properties::set___mouse_mode__(), and QtHandles::Canvas::setCursor().
Referenced by createFigureToolBarAndMenuBar().
|
private |
Definition at line 902 of file Figure.cc.
References m_blockUpdates, and updateBoundingBox().
Referenced by QtHandles::ToolBar::beingDeleted(), and QtHandles::ToolBar::update().
|
private |
Definition at line 488 of file Figure.cc.
References m_blockUpdates, m_figureToolBar, and updateBoundingBox().
Referenced by eventNotifyAfter(), and update().
|
private |
Definition at line 510 of file Figure.cc.
References QtHandles::hasUiMenuChildren(), m_blockUpdates, m_menuBar, and updateBoundingBox().
Referenced by update(), and updateMenuBar().
|
slotinherited |
Definition at line 107 of file Object.cc.
References QtHandles::Object::finalize().
|
slotinherited |
Definition at line 124 of file Object.cc.
References QtHandles::Object::print().
|
slotinherited |
Definition at line 115 of file Object.cc.
References QtHandles::Object::redraw().
Referenced by redraw().
|
slotinherited |
Definition at line 86 of file Object.cc.
References QtHandles::Object::beingDeleted(), base_properties::ID_BEINGDELETED, and QtHandles::Object::update().
Referenced by QtHandles::ObjectProxy::update().
|
privateslot |
Definition at line 932 of file Figure.cc.
References QtHandles::Container::canvas(), m_container, QtHandles::Object::m_handle, and QtHandles::Canvas::toggleAxes().
Referenced by createFigureToolBarAndMenuBar().
|
privateslot |
Definition at line 941 of file Figure.cc.
References QtHandles::Container::canvas(), m_container, QtHandles::Object::m_handle, and QtHandles::Canvas::toggleGrid().
Referenced by createFigureToolBarAndMenuBar().
|
protectedvirtual |
Reimplemented from QtHandles::Object.
Definition at line 399 of file Figure.cc.
References QtHandles::Canvas::addEventMask(), QtHandles::boundingBoxToRect(), QtHandles::Container::canvas(), QtHandles::Canvas::clearEventMask(), QtHandles::Utils::fromStdString(), figure::properties::get_boundingbox(), figure::properties::get_keypressfcn(), figure::properties::get_keyreleasefcn(), figure::properties::get_title(), figure::properties::get_windowbuttonmotionfcn(), QtHandles::hasUiControlChildren(), figure::properties::ID_KEYPRESSFCN, figure::properties::ID_KEYRELEASEFCN, figure::properties::ID_MENUBAR, figure::properties::ID_NAME, figure::properties::ID_NUMBERTITLE, figure::properties::ID_POSITION, figure::properties::ID_TOOLBAR, base_properties::ID_VISIBLE, figure::properties::ID_WINDOWBUTTONMOTIONFCN, octave_value::is_empty(), base_properties::is_visible(), QtHandles::Canvas::KeyPress, QtHandles::Canvas::KeyRelease, m_blockUpdates, m_container, QtHandles::Object::m_handle, m_innerRect, m_menuBar, figure::properties::menubar_is(), showFigureToolBar(), showMenuBar(), figure::properties::toolbar_is(), and Faddeeva::w().
Definition at line 587 of file Figure.cc.
References d, QtHandles::UpdateBoundingBoxData::m_bbox, m_container, QtHandles::UpdateBoundingBoxData::m_figure, QtHandles::Object::m_handle, QtHandles::UpdateBoundingBoxData::m_handle, m_innerRect, QtHandles::UpdateBoundingBoxData::m_internal, m_outerRect, gh_manager::post_function(), updateBoundingBoxHelper(), UpdateBoundingBoxPosition, and UpdateBoundingBoxSize.
Referenced by addCustomToolBar(), eventNotifyAfter(), showCustomToolBar(), showFigureToolBar(), and showMenuBar().
|
staticprivate |
Definition at line 569 of file Figure.cc.
References d, gh_manager::get_object(), QtHandles::UpdateBoundingBoxData::m_bbox, QtHandles::UpdateBoundingBoxData::m_handle, QtHandles::UpdateBoundingBoxData::m_internal, figure::properties::set_boundingbox(), and graphics_object::valid_object().
Referenced by updateBoundingBox().
|
privateslot |
|
private |
Definition at line 337 of file Figure.cc.
References m_blockUpdates, m_mouseModeGroup, mouseMode(), and QtHandles::MouseModeActionGroup::setMode().
Referenced by redraw().
|
privateslot |
Definition at line 545 of file Figure.cc.
References QtHandles::Object::object(), showMenuBar(), and graphics_object::valid_object().
Referenced by eventNotifyAfter(), and eventNotifyBefore().
|
private |
Definition at line 132 of file Figure.h.
Referenced by addCustomToolBar(), eventNotifyAfter(), eventNotifyBefore(), setMouseMode(), showCustomToolBar(), showFigureToolBar(), showMenuBar(), update(), and updateFigureToolBarAndMenuBar().
|
private |
Definition at line 131 of file Figure.h.
Referenced by autoAxes(), beingDeleted(), eventNotifyAfter(), eventNotifyBefore(), Figure(), innerContainer(), print(), redraw(), setMouseMode(), toggleAxes(), toggleGrid(), update(), and updateBoundingBox().
|
private |
Definition at line 133 of file Figure.h.
Referenced by createFigureToolBarAndMenuBar(), Figure(), and showFigureToolBar().
|
protectedinherited |
Definition at line 100 of file Object.h.
Referenced by QtHandles::ContextMenu::aboutToHide(), QtHandles::ContextMenu::aboutToShow(), QtHandles::Menu::actionHovered(), QtHandles::Menu::actionTriggered(), autoAxes(), beingDeleted(), QtHandles::PushTool::clicked(), QtHandles::ButtonControl::clicked(), QtHandles::PopupMenuControl::currentIndexChanged(), QtHandles::EditControl::editingFinished(), QtHandles::BaseControl::eventFilter(), eventNotifyBefore(), Figure(), QtHandles::ListBoxControl::itemSelectionChanged(), QtHandles::Object::Object(), QtHandles::Object::object(), QtHandles::Panel::Panel(), print(), QtHandles::Panel::redraw(), redraw(), QtHandles::EditControl::returnPressed(), setMouseMode(), toggleAxes(), QtHandles::ButtonControl::toggled(), toggleGrid(), QtHandles::ToggleTool::triggered(), QtHandles::PopupMenuControl::update(), update(), updateBoundingBox(), and QtHandles::SliderControl::valueChanged().
|
private |
Definition at line 135 of file Figure.h.
Referenced by Figure(), update(), and updateBoundingBox().
|
private |
Definition at line 134 of file Figure.h.
Referenced by beingDeleted(), createFigureToolBarAndMenuBar(), eventNotifyAfter(), eventNotifyBefore(), Figure(), showMenuBar(), and update().
|
private |
Definition at line 137 of file Figure.h.
Referenced by createFigureToolBarAndMenuBar(), and updateFigureToolBarAndMenuBar().
|
private |
Definition at line 136 of file Figure.h.
Referenced by Figure(), and updateBoundingBox().
|
protectedinherited |
Definition at line 101 of file Object.h.
Referenced by QtHandles::Object::finalize(), QtHandles::Object::init(), QtHandles::Object::objectDestroyed(), and QtHandles::Object::qObject().