#include "Table.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 | |
Table (octave::base_qobject &oct_qobj, octave::interpreter &interp, const graphics_object &go, QTableWidget *tableWidget) | |
~Table (void) | |
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) |
Static Public Member Functions | |
static Table * | 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) |
void | updateColumnname (void) |
void | updateColumnwidth (void) |
void | updateData (void) |
void | updateEnable (void) |
void | updateExtent (void) |
void | updatePalette (void) |
void | updateRearrangeableColumns (void) |
void | updateRowname (void) |
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 | cellClicked (int row, int col) |
void | comboBoxCurrentIndexChanged (const QString &value) |
void | itemChanged (QTableWidgetItem *item) |
void | itemSelectionChanged (void) |
Private Member Functions | |
void | checkBoxClicked (int row, int col, QCheckBox *checkBox) |
QWidget * | checkBoxForLogical (octave_value cal, bool enabled) |
bool | columneditable (int column) |
std::string | columnformat (int column) |
void | sendCellEditCallback (int row, int col, octave_value old_value, octave_value new_value, octave_value edit_data, octave_value error) |
void | updateData (int row, int col) |
void | updateData (int row, int col, octave_value value, std::string format, bool enabled) |
void | updateDataColumn (int col) |
Private Attributes | |
bool | m_blockUpdates |
Container * | m_container |
octave_value | m_curData |
bool | m_keyPressHandlerDefined |
bool | m_keyReleaseHandlerDefined |
QTableWidget * | m_tableWidget |
Table::Table | ( | octave::base_qobject & | oct_qobj, |
octave::interpreter & | interp, | ||
const graphics_object & | go, | ||
QTableWidget * | tableWidget | ||
) |
Definition at line 451 of file Table.cc.
References cellClicked(), Utils::computeFont< uitable >(), Utils::fromStdString(), itemChanged(), itemSelectionChanged(), m_curData, m_keyPressHandlerDefined, m_keyReleaseHandlerDefined, m_tableWidget, octave_value(), Utils::properties(), Object::qObject(), round(), updateColumnname(), updateColumnwidth(), updateData(), updateEnable(), updateExtent(), updatePalette(), and updateRowname().
Referenced by create().
|
protectedvirtualinherited |
Reimplemented in ToolBar, and Figure.
Definition at line 190 of file Object.cc.
Referenced by Object::slotUpdate().
|
privateslot |
Definition at line 515 of file Table.cc.
References checkBoxClicked(), and m_tableWidget.
Referenced by Table().
|
private |
Definition at line 684 of file Table.cc.
References octave_value::bool_matrix_value(), octave_value::cell_value(), octave_value::columns(), Array< T, Alloc >::columns(), octave_value::fast_elem_extract(), Object::gh_set_event(), octave_value::is_matrix_type(), octave_value::iscell(), octave_value::islogical(), m_blockUpdates, m_curData, Object::m_handle, Object::m_interpreter, octave_value(), octave_value::rows(), Array< T, Alloc >::rows(), and sendCellEditCallback().
Referenced by cellClicked(), and eventFilter().
|
private |
Definition at line 412 of file Table.cc.
References octave_value::bool_value(), octave_value::is_bool_scalar(), octave_value::islogical(), and m_tableWidget.
Referenced by updateData().
|
inlineprivate |
Definition at line 1153 of file Table.cc.
References Utils::properties().
Referenced by comboBoxCurrentIndexChanged(), updateColumnname(), updateData(), updateDataColumn(), updateEnable(), and updateRowname().
|
inlineprivate |
Definition at line 1168 of file Table.cc.
References octave_value::cell_value(), format(), octave_value::is_string(), octave_value::iscell(), octave_value::isempty(), Utils::properties(), and octave_value::string_value().
Referenced by comboBoxCurrentIndexChanged(), itemChanged(), updateColumnname(), updateData(), updateDataColumn(), and updateRowname().
|
privateslot |
Definition at line 563 of file Table.cc.
References attempt_type_conversion(), octave_value::cell_value(), columneditable(), columnformat(), octave_value::columns(), error(), octave_value::fast_elem_extract(), octave_value::fast_elem_insert(), Object::gh_set_event(), octave_value::is_matrix_type(), octave_value::iscell(), m_blockUpdates, m_curData, Object::m_handle, Object::m_interpreter, octave_value(), octave_value::rows(), sendCellEditCallback(), octave_value::string_value(), Utils::toStdString(), and updateData().
Referenced by updateData().
|
static |
Definition at line 435 of file Table.cc.
References Table(), 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 Table::eventFilter | ( | QObject * | watched, |
QEvent * | event | ||
) |
Definition at line 1506 of file Table.cc.
References checkBoxClicked(), Utils::computeFont< uitable >(), 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, m_keyPressHandlerDefined, m_keyReleaseHandlerDefined, m_tableWidget, Utils::makeKeyEventStruct(), Object::object(), Utils::properties(), and Object::properties().
|
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(), PopupMenuControl::currentIndexChanged(), Object::do_connections(), EditControl::editingFinished(), BaseControl::eventFilter(), eventFilter(), Figure::eventNotifyBefore(), itemSelectionChanged(), EditControl::returnPressed(), sendCellEditCallback(), ListBoxControl::sendSelectionChange(), ButtonControl::toggled(), ToggleTool::triggered(), and SliderControl::valueChanged().
|
signalinherited |
|
signalinherited |
Referenced by ContextMenu::aboutToHide(), ContextMenu::aboutToShow(), ButtonGroup::buttonToggled(), checkBoxClicked(), comboBoxCurrentIndexChanged(), PopupMenuControl::currentIndexChanged(), Object::do_connections(), EditControl::editingFinished(), BaseControl::eventFilter(), eventFilter(), itemChanged(), EditControl::returnPressed(), ListBoxControl::sendSelectionChange(), ButtonControl::toggled(), ToggleTool::triggered(), PopupMenuControl::update(), Figure::updateBoundingBox(), 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 |
|
privateslot |
Definition at line 799 of file Table.cc.
References attempt_type_conversion(), octave_value::cell_value(), columnformat(), octave_value::columns(), error(), octave_value::fast_elem_extract(), octave_value::fast_elem_insert(), Object::gh_set_event(), octave_value::is_matrix_type(), octave_value::is_string(), octave_value::iscell(), m_blockUpdates, m_curData, Object::m_handle, Object::m_interpreter, octave_value(), qStringValueFor(), octave_value::rows(), sendCellEditCallback(), and Utils::toStdString().
Referenced by Table().
|
privateslot |
Definition at line 493 of file Table.cc.
References Matrix::column(), Object::gh_callback_event(), Object::m_handle, m_tableWidget, Matrix, Matrix::row(), and octave_scalar_map::setfield().
Referenced by Table().
|
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(), eventFilter(), Object::properties(), Container::resizeEvent(), 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(), PopupMenuControl::create(), PushButtonControl::create(), PushTool::create(), RadioButtonControl::create(), SliderControl::create(), 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(), 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(), 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().
|
protectedvirtual |
|
private |
Definition at line 534 of file Table.cc.
References error(), Object::gh_callback_event(), Object::m_handle, Matrix, and octave_scalar_map::setfield().
Referenced by checkBoxClicked(), comboBoxCurrentIndexChanged(), and itemChanged().
|
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 Object.
Definition at line 886 of file Table.cc.
References AUTO_HEIGHT, Utils::computeFont< uitable >(), Utils::fromStdString(), m_blockUpdates, m_curData, m_keyPressHandlerDefined, m_keyReleaseHandlerDefined, m_tableWidget, octave_value(), Utils::properties(), round(), updateColumnname(), updateColumnwidth(), updateData(), updateEnable(), updateExtent(), updatePalette(), updateRearrangeableColumns(), and updateRowname().
Referenced by redraw().
|
protected |
Definition at line 983 of file Table.cc.
References octave_value::cell_value(), Array< T, Alloc >::cols(), columneditable(), columnformat(), octave_value::double_value(), format(), Utils::fromStdString(), octave_value::is_matrix_type(), octave_value::is_string(), octave_value::iscell(), octave_value::isempty(), octave_value::isnumeric(), m_tableWidget, octave_value::matrix_value(), n, octave_value::numel(), Array< T, Alloc >::numel(), Utils::properties(), Array< T, Alloc >::rows(), octave_value::string_value(), and updateData().
|
protected |
Definition at line 1079 of file Table.cc.
References AUTO_WIDTH, octave_value::cell_value(), octave_value::double_value(), octave_value::is_matrix_type(), octave_value::is_string(), octave_value::iscell(), octave_value::isempty(), m_tableWidget, octave_value::matrix_value(), Array< T, Alloc >::numel(), Utils::properties(), octave_value::string_value(), and Faddeeva::w().
|
inlineprivate |
Definition at line 1213 of file Table.cc.
References octave_value::cell_value(), columneditable(), columnformat(), octave_value::fast_elem_extract(), octave_value::iscell(), octave_value::rows(), and updateData().
|
inlineprivate |
Definition at line 1226 of file Table.cc.
References octave_value::cell_value(), checkBoxForLogical(), comboBoxCurrentIndexChanged(), octave_value::fast_elem_extract(), format(), Utils::fromStdString(), octave_value::islogical(), itemFor(), m_tableWidget, octave_value::numel(), Utils::properties(), qStringValueFor(), octave_value::string_value(), and Array< T, Alloc >::xelem().
|
protected |
Definition at line 1287 of file Table.cc.
References AUTO_HEIGHT, octave_value::columns(), octave_value::is_matrix_type(), octave_value::iscell(), m_tableWidget, Utils::properties(), octave_value::rows(), and updateDataColumn().
Referenced by Table(), comboBoxCurrentIndexChanged(), update(), updateColumnname(), updateData(), updateDataColumn(), and updateRowname().
|
inlineprivate |
Definition at line 1195 of file Table.cc.
References octave_value::cell_value(), columneditable(), columnformat(), octave_value::fast_elem_extract(), format(), octave_value::iscell(), octave_value::rows(), and updateData().
Referenced by updateData().
|
protected |
Definition at line 1307 of file Table.cc.
References columneditable(), m_tableWidget, and Utils::properties().
|
protected |
Definition at line 1365 of file Table.cc.
References Object::gh_set_event(), m_tableWidget, Matrix, Object::object(), and realQSizeForTable().
|
protected |
Definition at line 1378 of file Table.cc.
References Utils::fromRgb(), m_tableWidget, and Utils::properties().
|
protected |
Definition at line 1493 of file Table.cc.
References m_tableWidget, and Utils::properties().
Referenced by update().
|
protected |
Definition at line 1395 of file Table.cc.
References AUTO_HEIGHT, octave_value::cell_value(), Array< T, Alloc >::cols(), columneditable(), columnformat(), octave_value::double_value(), format(), Utils::fromStdString(), octave_value::is_matrix_type(), octave_value::is_string(), octave_value::iscell(), octave_value::isempty(), octave_value::isnumeric(), m_tableWidget, octave_value::matrix_value(), n, octave_value::numel(), Array< T, Alloc >::numel(), Utils::properties(), Array< T, Alloc >::rows(), octave_value::string_value(), and updateData().
|
private |
Definition at line 81 of file Table.h.
Referenced by checkBoxClicked(), comboBoxCurrentIndexChanged(), itemChanged(), and update().
|
private |
Definition at line 78 of file Table.h.
Referenced by innerContainer().
|
private |
Definition at line 80 of file Table.h.
Referenced by Table(), checkBoxClicked(), comboBoxCurrentIndexChanged(), itemChanged(), 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(), checkBoxClicked(), ButtonControl::clicked(), PushTool::clicked(), comboBoxCurrentIndexChanged(), PopupMenuControl::currentIndexChanged(), Figure::do_connections(), Panel::do_connections(), EditControl::editingFinished(), Figure::enableMouseTracking(), BaseControl::eventFilter(), eventFilter(), Figure::eventNotifyBefore(), itemChanged(), itemSelectionChanged(), Object::object(), Figure::print(), ButtonGroup::redraw(), Figure::redraw(), Panel::redraw(), EditControl::returnPressed(), sendCellEditCallback(), ListBoxControl::sendSelectionChange(), Figure::slotGetPixels(), ButtonControl::toggled(), ToggleTool::triggered(), Figure::update(), PopupMenuControl::update(), Figure::updateBoundingBox(), and SliderControl::valueChanged().
|
protectedinherited |
Definition at line 136 of file Object.h.
Referenced by ButtonGroup::buttonClicked(), ButtonGroup::buttonToggled(), checkBoxClicked(), comboBoxCurrentIndexChanged(), BaseControl::eventFilter(), ButtonGroup::eventFilter(), Panel::eventFilter(), eventFilter(), Figure::eventNotifyAfter(), Figure::eventNotifyBefore(), Figure::figureWindowShown(), Figure::fileName(), 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().
|
private |
Definition at line 82 of file Table.h.
Referenced by Table(), eventFilter(), and update().
|
private |
Definition at line 83 of file Table.h.
Referenced by Table(), eventFilter(), and update().
|
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 79 of file Table.h.
Referenced by Table(), cellClicked(), checkBoxForLogical(), eventFilter(), itemSelectionChanged(), update(), updateColumnname(), updateColumnwidth(), updateData(), updateEnable(), updateExtent(), updatePalette(), updateRearrangeableColumns(), and updateRowname().