#include "ButtonGroup.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 | |
ButtonGroup (octave::base_qobject &oct_qobj, octave::interpreter &interp, const graphics_object &go, QButtonGroup *buttongroup, QFrame *frame) | |
~ButtonGroup (void) | |
void | addButton (QAbstractButton *btn) |
virtual void | do_connections (const QObject *receiver, const QObject *emitter=nullptr) |
bool | eventFilter (QObject *watched, QEvent *event) |
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) |
void | selectNothing (void) |
Static Public Member Functions | |
static ButtonGroup * | 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) |
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 | buttonClicked (QAbstractButton *btn) |
void | buttonToggled (bool toggled) |
Private Member Functions | |
void | updateLayout (void) |
Private Attributes | |
bool | m_blockUpdates |
QButtonGroup * | m_buttongroup |
Container * | m_container |
QRadioButton * | m_hiddenbutton |
QLabel * | m_title |
Definition at line 48 of file ButtonGroup.h.
QtHandles::ButtonGroup::ButtonGroup | ( | octave::base_qobject & | oct_qobj, |
octave::interpreter & | interp, | ||
const graphics_object & | go, | ||
QButtonGroup * | buttongroup, | ||
QFrame * | frame | ||
) |
Definition at line 122 of file ButtonGroup.cc.
References buttonClicked(), QtHandles::Container::canvas(), QtHandles::Utils::computeFont< uibuttongroup >(), QtHandles::frameStyleFromProperties(), QtHandles::Utils::fromStdString(), uibuttongroup::properties::get_boundingbox(), m_buttongroup, m_container, QtHandles::Object::m_handle, m_hiddenbutton, m_title, octave::math::round(), QtHandles::setupPalette(), QtHandles::Object::show(), and Faddeeva::w().
Referenced by create().
QtHandles::ButtonGroup::~ButtonGroup | ( | void | ) |
Definition at line 188 of file ButtonGroup.cc.
void QtHandles::ButtonGroup::addButton | ( | QAbstractButton * | btn | ) |
Definition at line 464 of file ButtonGroup.cc.
References buttonToggled(), and m_buttongroup.
Referenced by QtHandles::RadioButtonControl::RadioButtonControl(), and QtHandles::ToggleButtonControl::ToggleButtonControl().
|
protectedvirtualinherited |
Reimplemented in QtHandles::ToolBar, and QtHandles::Figure.
Definition at line 191 of file Object.cc.
Referenced by QtHandles::Object::slotUpdate().
|
privateslot |
Definition at line 500 of file ButtonGroup.cc.
References octave_handle::as_octave_value(), QtHandles::Object::fromQObject(), octave::interpreter::get_gh_manager(), QtHandles::Object::gh_callback_event(), gh_manager::graphics_lock(), m_buttongroup, QtHandles::Object::m_handle, QtHandles::Object::m_interpreter, QtHandles::Object::properties(), and octave_scalar_map::setfield().
Referenced by ButtonGroup().
|
privateslot |
Definition at line 471 of file ButtonGroup.cc.
References octave_handle::as_octave_value(), QtHandles::Object::fromQObject(), octave::interpreter::get_gh_manager(), QtHandles::Object::gh_set_event(), gh_manager::graphics_lock(), m_blockUpdates, m_buttongroup, QtHandles::Object::m_handle, m_hiddenbutton, QtHandles::Object::m_interpreter, and QtHandles::Object::properties().
Referenced by addButton().
|
static |
Definition at line 102 of file ButtonGroup.cc.
References ButtonGroup(), QtHandles::Object::innerContainer(), and QtHandles::Object::parentObject().
Referenced by QtHandles::qt_graphics_toolkit::create_object().
|
virtualinherited |
Reimplemented in QtHandles::Panel, and QtHandles::Figure.
Definition at line 225 of file Object.cc.
References QtHandles::Object::gh_callback_event(), QtHandles::Object::gh_set_event(), and QtHandles::Object::interpreter_event().
Referenced by QtHandles::qt_graphics_toolkit::create_object(), QtHandles::Figure::do_connections(), and QtHandles::Panel::do_connections().
bool QtHandles::ButtonGroup::eventFilter | ( | QObject * | watched, |
QEvent * | event | ||
) |
Definition at line 192 of file ButtonGroup.cc.
References QtHandles::Utils::computeFont< uibuttongroup >(), QtHandles::ContextMenu::executeAt(), octave::interpreter::get_gh_manager(), gh_manager::graphics_lock(), m, m_blockUpdates, m_container, QtHandles::Object::m_interpreter, m_title, QtHandles::Object::object(), QtHandles::Object::properties(), QtHandles::Object::qObject(), base_properties::update_boundingbox(), updateLayout(), and graphics_object::valid_object().
|
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(), buttonClicked(), buttonToggled(), QtHandles::Figure::redraw(), QtHandles::Container::resizeEvent(), QtHandles::Figure::update(), and QtHandles::Menu::updateSiblingPositions().
|
signalinherited |
Referenced by QtHandles::ContextMenu::aboutToShow(), QtHandles::Menu::actionHovered(), QtHandles::Menu::actionTriggered(), buttonClicked(), QtHandles::ButtonControl::clicked(), QtHandles::PushTool::clicked(), QtHandles::PopupMenuControl::currentIndexChanged(), QtHandles::Object::do_connections(), QtHandles::EditControl::editingFinished(), QtHandles::BaseControl::eventFilter(), QtHandles::Table::eventFilter(), QtHandles::Figure::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(), 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(), QtHandles::Figure::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().
|
inlinevirtual |
|
signalinherited |
Referenced by QtHandles::Object::do_connections().
|
signalinherited |
|
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(), eventFilter(), QtHandles::Panel::eventFilter(), QtHandles::Table::eventFilter(), QtHandles::Object::properties(), QtHandles::Container::resizeEvent(), QtHandles::Table::updateExtent(), QtHandles::Figure::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(), 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().
|
protectedvirtualinherited |
Reimplemented in QtHandles::Figure.
Definition at line 187 of file Object.cc.
Referenced by QtHandles::Object::slotPrint().
|
inlineinherited |
Definition at line 60 of file Object.h.
References graphics_object::get_properties(), and QtHandles::Object::object().
Referenced by buttonClicked(), buttonToggled(), 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(), 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 404 of file ButtonGroup.cc.
References QtHandles::Container::canvas(), m_container, QtHandles::Object::m_handle, QtHandles::Canvas::redraw(), and update().
void QtHandles::ButtonGroup::selectNothing | ( | void | ) |
Definition at line 457 of file ButtonGroup.cc.
References m_hiddenbutton.
Referenced by QtHandles::ButtonControl::update().
|
protectedvirtualinherited |
Reimplemented in QtHandles::Figure.
Definition at line 183 of file Object.cc.
Referenced by ButtonGroup(), QtHandles::Panel::Panel(), and QtHandles::Object::slotShow().
|
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.
|
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 QtHandles::Figure::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 270 of file ButtonGroup.cc.
References QtHandles::Utils::computeFont< uibuttongroup >(), QtHandles::frameStyleFromProperties(), QtHandles::Utils::fromStdString(), uibuttongroup::properties::get_boundingbox(), octave::interpreter::get_gh_manager(), gh_manager::get_object(), graphics_object::get_properties(), gh_manager::graphics_lock(), m_blockUpdates, m_hiddenbutton, QtHandles::Object::m_interpreter, m_title, octave::math::round(), base_properties::set(), QtHandles::setupPalette(), QtHandles::qt_graphics_toolkit::toolkitObject(), and updateLayout().
Referenced by redraw().
|
private |
Definition at line 416 of file ButtonGroup.cc.
References QtHandles::borderWidthFromProperties(), uibuttongroup::properties::get_boundingbox(), m_blockUpdates, m_container, m_title, octave::math::round(), and base_properties::update_boundingbox().
Referenced by eventFilter(), and update().
|
private |
Definition at line 86 of file ButtonGroup.h.
Referenced by buttonToggled(), eventFilter(), update(), and updateLayout().
|
private |
Definition at line 82 of file ButtonGroup.h.
Referenced by ButtonGroup(), addButton(), buttonClicked(), and buttonToggled().
|
private |
Definition at line 84 of file ButtonGroup.h.
Referenced by ButtonGroup(), eventFilter(), innerContainer(), redraw(), and updateLayout().
|
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 ButtonGroup(), QtHandles::Figure::Figure(), QtHandles::Object::Object(), QtHandles::Panel::Panel(), QtHandles::ContextMenu::aboutToHide(), QtHandles::ContextMenu::aboutToShow(), QtHandles::Menu::actionHovered(), QtHandles::Menu::actionTriggered(), QtHandles::Figure::beingDeleted(), buttonClicked(), buttonToggled(), QtHandles::Table::checkBoxClicked(), QtHandles::ButtonControl::clicked(), QtHandles::PushTool::clicked(), QtHandles::Table::comboBoxCurrentIndexChanged(), QtHandles::PopupMenuControl::currentIndexChanged(), QtHandles::Figure::do_connections(), QtHandles::Panel::do_connections(), QtHandles::EditControl::editingFinished(), QtHandles::Figure::enableMouseTracking(), QtHandles::BaseControl::eventFilter(), QtHandles::Table::eventFilter(), QtHandles::Figure::eventNotifyBefore(), QtHandles::Table::itemChanged(), QtHandles::Table::itemSelectionChanged(), QtHandles::Object::object(), QtHandles::Figure::print(), redraw(), QtHandles::Figure::redraw(), QtHandles::Panel::redraw(), QtHandles::EditControl::returnPressed(), QtHandles::Table::sendCellEditCallback(), QtHandles::ListBoxControl::sendSelectionChange(), QtHandles::Figure::slotGetPixels(), QtHandles::ButtonControl::toggled(), QtHandles::ToggleTool::triggered(), QtHandles::Figure::update(), QtHandles::PopupMenuControl::update(), QtHandles::Figure::updateBoundingBox(), and QtHandles::SliderControl::valueChanged().
|
private |
Definition at line 83 of file ButtonGroup.h.
Referenced by ButtonGroup(), buttonToggled(), selectNothing(), and update().
|
protectedinherited |
Definition at line 140 of file Object.h.
Referenced by QtHandles::Object::Object(), buttonClicked(), buttonToggled(), QtHandles::Table::checkBoxClicked(), QtHandles::Table::comboBoxCurrentIndexChanged(), QtHandles::BaseControl::eventFilter(), eventFilter(), QtHandles::Panel::eventFilter(), QtHandles::Table::eventFilter(), QtHandles::Figure::eventNotifyAfter(), QtHandles::Figure::eventNotifyBefore(), QtHandles::Figure::figureWindowShown(), QtHandles::Figure::fileName(), QtHandles::Table::itemChanged(), QtHandles::Figure::mouseMode(), QtHandles::Object::object(), QtHandles::Figure::screenChanged(), QtHandles::Figure::setFileName(), QtHandles::Object::slotFinalize(), QtHandles::Figure::slotGetPixels(), QtHandles::Object::slotPrint(), QtHandles::Object::slotRedraw(), QtHandles::Object::slotShow(), QtHandles::Object::slotUpdate(), QtHandles::ButtonControl::toggled(), QtHandles::ButtonControl::update(), update(), QtHandles::Figure::update(), QtHandles::Figure::updateFigureHeight(), and QtHandles::SliderControl::valueChanged().
|
protectedinherited |
|
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 85 of file ButtonGroup.h.
Referenced by ButtonGroup(), eventFilter(), update(), and updateLayout().