#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 44 of file ButtonGroup.h.
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(), Container::canvas(), Utils::computeFont< uibuttongroup >(), frameStyleFromProperties(), Utils::fromStdString(), m_buttongroup, m_container, Object::m_handle, m_hiddenbutton, m_title, Utils::properties(), round(), setupPalette(), Object::show(), and Faddeeva::w().
Referenced by create().
ButtonGroup::~ButtonGroup | ( | void | ) |
Definition at line 191 of file ButtonGroup.cc.
void ButtonGroup::addButton | ( | QAbstractButton * | btn | ) |
Definition at line 466 of file ButtonGroup.cc.
References buttonToggled(), and m_buttongroup.
Referenced by RadioButtonControl::RadioButtonControl(), and ToggleButtonControl::ToggleButtonControl().
|
protectedvirtualinherited |
Reimplemented in ToolBar, and Figure.
Definition at line 190 of file Object.cc.
Referenced by Object::slotUpdate().
|
privateslot |
Definition at line 502 of file ButtonGroup.cc.
References octave_handle::as_octave_value(), Object::fromQObject(), Object::gh_callback_event(), m_buttongroup, Object::m_handle, Object::m_interpreter, Utils::properties(), Object::properties(), and octave_scalar_map::setfield().
Referenced by ButtonGroup().
|
privateslot |
Definition at line 473 of file ButtonGroup.cc.
References octave_handle::as_octave_value(), Object::fromQObject(), Object::gh_set_event(), m_blockUpdates, m_buttongroup, Object::m_handle, m_hiddenbutton, Object::m_interpreter, Utils::properties(), and Object::properties().
Referenced by addButton().
|
static |
Definition at line 102 of file ButtonGroup.cc.
References ButtonGroup(), Object::innerContainer(), and Object::parentObject().
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().
bool ButtonGroup::eventFilter | ( | QObject * | watched, |
QEvent * | event | ||
) |
Definition at line 195 of file ButtonGroup.cc.
References Utils::computeFont< uibuttongroup >(), ContextMenu::executeAt(), m, m_blockUpdates, m_container, Object::m_interpreter, m_title, Object::object(), Utils::properties(), Object::properties(), Object::qObject(), and updateLayout().
|
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(), buttonClicked(), buttonToggled(), Figure::redraw(), Container::resizeEvent(), Figure::update(), and Menu::updateSiblingPositions().
|
signalinherited |
Referenced by ContextMenu::aboutToShow(), Menu::actionHovered(), Menu::actionTriggered(), 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 ContextMenu::aboutToHide(), ContextMenu::aboutToShow(), 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 |
|
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(), 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(), create(), CheckBoxControl::create(), ContextMenu::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 buttonClicked(), buttonToggled(), 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(), 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().
|
protectedvirtual |
Reimplemented from Object.
Definition at line 407 of file ButtonGroup.cc.
References Container::canvas(), m_container, Object::m_handle, Canvas::redraw(), and update().
void ButtonGroup::selectNothing | ( | void | ) |
Definition at line 460 of file ButtonGroup.cc.
References m_hiddenbutton.
Referenced by ButtonControl::update().
|
protectedvirtualinherited |
Reimplemented in Figure.
Definition at line 182 of file Object.cc.
Referenced by 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 273 of file ButtonGroup.cc.
References Utils::computeFont< uibuttongroup >(), frameStyleFromProperties(), Utils::fromStdString(), m_blockUpdates, m_hiddenbutton, Object::m_interpreter, m_title, Utils::properties(), round(), setupPalette(), qt_graphics_toolkit::toolkitObject(), and updateLayout().
Referenced by redraw().
|
private |
Definition at line 419 of file ButtonGroup.cc.
References borderWidthFromProperties(), m_blockUpdates, m_container, m_title, Utils::properties(), and round().
Referenced by eventFilter(), and update().
|
private |
Definition at line 82 of file ButtonGroup.h.
Referenced by buttonToggled(), eventFilter(), update(), and updateLayout().
|
private |
Definition at line 78 of file ButtonGroup.h.
Referenced by ButtonGroup(), addButton(), buttonClicked(), and buttonToggled().
|
private |
Definition at line 80 of file ButtonGroup.h.
Referenced by ButtonGroup(), eventFilter(), innerContainer(), redraw(), and updateLayout().
|
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(), Figure::Figure(), Panel::Panel(), ContextMenu::aboutToHide(), ContextMenu::aboutToShow(), Menu::actionHovered(), Menu::actionTriggered(), Figure::beingDeleted(), buttonClicked(), 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(), 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().
|
private |
Definition at line 79 of file ButtonGroup.h.
Referenced by ButtonGroup(), buttonToggled(), selectNothing(), and update().
|
protectedinherited |
Definition at line 136 of file Object.h.
Referenced by buttonClicked(), buttonToggled(), Table::checkBoxClicked(), Table::comboBoxCurrentIndexChanged(), BaseControl::eventFilter(), 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(), 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().
|
private |
Definition at line 81 of file ButtonGroup.h.
Referenced by ButtonGroup(), eventFilter(), update(), and updateLayout().