GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Table Class Reference

#include "Table.h"

Inheritance diagram for Table:
Collaboration diagram for Table:

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)
 
ContainerinnerContainer (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 QObjectqObject (void)
 
template<typename T >
T * qWidget (void)
 

Static Public Member Functions

static Tablecreate (octave::base_qobject &oct_qobj, octave::interpreter &interp, const graphics_object &go)
 
static ObjectfromQObject (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 ObjectparentObject (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
 
QObjectm_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)
 
QWidgetcheckBoxForLogical (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
 
Containerm_container
 
octave_value m_curData
 
bool m_keyPressHandlerDefined
 
bool m_keyReleaseHandlerDefined
 
QTableWidget * m_tableWidget
 

Detailed Description

Definition at line 42 of file Table.h.

Constructor & Destructor Documentation

◆ Table()

Table::Table ( octave::base_qobject &  oct_qobj,
octave::interpreter &  interp,
const graphics_object &  go,
QTableWidget *  tableWidget 
)

◆ ~Table()

Table::~Table ( void  )

Definition at line 490 of file Table.cc.

Member Function Documentation

◆ beingDeleted()

void Object::beingDeleted ( void  )
protectedvirtualinherited

Reimplemented in ToolBar, and Figure.

Definition at line 190 of file Object.cc.

Referenced by Object::slotUpdate().

◆ cellClicked

void Table::cellClicked ( int  row,
int  col 
)
privateslot

Definition at line 515 of file Table.cc.

References checkBoxClicked(), and m_tableWidget.

Referenced by Table().

◆ checkBoxClicked()

◆ checkBoxForLogical()

QWidget * Table::checkBoxForLogical ( octave_value  cal,
bool  enabled = false 
)
private

◆ columneditable()

bool Table::columneditable ( int  column)
inlineprivate

◆ columnformat()

◆ comboBoxCurrentIndexChanged

◆ create()

Table * Table::create ( octave::base_qobject &  oct_qobj,
octave::interpreter &  interp,
const graphics_object &  go 
)
static

Definition at line 435 of file Table.cc.

References Table(), Object::innerContainer(), and Object::parentObject().

Referenced by qt_graphics_toolkit::create_object().

◆ do_connections()

void Object::do_connections ( const QObject receiver,
const QObject emitter = nullptr 
)
virtualinherited

◆ eventFilter()

◆ finalize()

void Object::finalize ( void  )
protectedvirtualinherited

Definition at line 167 of file Object.cc.

References Object::m_qobject.

Referenced by Object::slotFinalize().

◆ fromQObject()

◆ gh_callback_event [1/2]

◆ gh_callback_event [2/2]

void Object::gh_callback_event ( const graphics_handle h,
const std::string &  name,
const octave_value data 
)
signalinherited

◆ gh_set_event [1/3]

◆ gh_set_event [2/3]

void Object::gh_set_event ( const graphics_handle h,
const std::string &  name,
const octave_value value,
bool  notify_toolkit 
)
signalinherited

◆ gh_set_event [3/3]

void Object::gh_set_event ( const graphics_handle h,
const std::string &  name,
const octave_value value,
bool  notify_toolkit,
bool  redraw_figure 
)
signalinherited

◆ init()

void Object::init ( QObject obj,
bool  callBase = false 
)
protectedinherited

Definition at line 61 of file Object.cc.

References Object::m_qobject, and Object::objectDestroyed().

Referenced by BaseControl::init().

◆ innerContainer()

Container* Table::innerContainer ( void  )
inlinevirtual

Implements Object.

Definition at line 51 of file Table.h.

References m_container.

◆ interpreter_event [1/2]

void Object::interpreter_event ( const octave::fcn_callback fcn)
signalinherited

Referenced by Object::do_connections().

◆ interpreter_event [2/2]

void Object::interpreter_event ( const octave::meth_callback meth)
signalinherited

◆ itemChanged

◆ itemSelectionChanged

void Table::itemSelectionChanged ( void  )
privateslot

◆ object()

◆ objectDestroyed

void Object::objectDestroyed ( QObject obj = nullptr)
slotinherited

Definition at line 193 of file Object.cc.

References Object::m_qobject.

Referenced by Object::init().

◆ parentObject()

◆ print()

void Object::print ( const QString &  file_cmd,
const QString &  term 
)
protectedvirtualinherited

Reimplemented in Figure.

Definition at line 186 of file Object.cc.

Referenced by Object::slotPrint().

◆ properties() [1/4]

base_properties& Object::properties ( void  )
inlineinherited

◆ properties() [2/4]

template<typename T >
T::properties& Object::properties ( void  )
inlineinherited

Definition at line 63 of file Object.h.

References Object::object(), and Utils::properties().

◆ properties() [3/4]

const base_properties& Object::properties ( void  ) const
inlineinherited

Definition at line 59 of file Object.h.

References Object::object().

◆ properties() [4/4]

template<typename T >
const T::properties& Object::properties ( void  ) const
inlineinherited

Definition at line 70 of file Object.h.

References Object::object(), and Utils::properties().

◆ qObject()

virtual QObject* Object::qObject ( void  )
inlinevirtualinherited

◆ qWidget()

template<typename T >
T* Object::qWidget ( void  )
inlineinherited

◆ redraw()

void Table::redraw ( void  )
protectedvirtual

Reimplemented from Object.

Definition at line 880 of file Table.cc.

References update().

◆ sendCellEditCallback()

void Table::sendCellEditCallback ( int  row,
int  col,
octave_value  old_value,
octave_value  new_value,
octave_value  edit_data,
octave_value  error 
)
private

◆ show()

void Object::show ( void  )
protectedvirtualinherited

Reimplemented in Figure.

Definition at line 182 of file Object.cc.

Referenced by ButtonGroup::ButtonGroup(), and Object::slotShow().

◆ slotFinalize

void Object::slotFinalize ( void  )
slotinherited

Definition at line 120 of file Object.cc.

References Object::finalize(), and Object::m_interpreter.

◆ slotPrint

void Object::slotPrint ( const QString &  file_cmd,
const QString &  term 
)
slotinherited

Definition at line 152 of file Object.cc.

References Object::m_interpreter, and Object::print().

◆ slotRedraw

void Object::slotRedraw ( void  )
slotinherited

Definition at line 130 of file Object.cc.

References Object::m_interpreter, and Object::redraw().

Referenced by ObjectProxy::init(), and Figure::redraw().

◆ slotShow

void Object::slotShow ( void  )
slotinherited

Definition at line 141 of file Object.cc.

References Object::m_interpreter, and Object::show().

Referenced by ObjectProxy::init().

◆ slotUpdate

void Object::slotUpdate ( int  pId)
slotinherited

Definition at line 97 of file Object.cc.

References Object::beingDeleted(), Object::m_interpreter, and Object::update().

Referenced by ObjectProxy::init().

◆ update()

◆ updateColumnname()

◆ updateColumnwidth()

◆ updateData() [1/3]

void Table::updateData ( int  row,
int  col 
)
inlineprivate

◆ updateData() [2/3]

◆ updateData() [3/3]

◆ updateDataColumn()

void Table::updateDataColumn ( int  col)
inlineprivate

◆ updateEnable()

void Table::updateEnable ( void  )
protected

Definition at line 1307 of file Table.cc.

References columneditable(), m_tableWidget, and Utils::properties().

Referenced by Table(), and update().

◆ updateExtent()

void Table::updateExtent ( void  )
protected

Definition at line 1365 of file Table.cc.

References Object::gh_set_event(), m_tableWidget, Matrix, Object::object(), and realQSizeForTable().

Referenced by Table(), and update().

◆ updatePalette()

void Table::updatePalette ( void  )
protected

Definition at line 1378 of file Table.cc.

References Utils::fromRgb(), m_tableWidget, and Utils::properties().

Referenced by Table(), and update().

◆ updateRearrangeableColumns()

void Table::updateRearrangeableColumns ( void  )
protected

Definition at line 1493 of file Table.cc.

References m_tableWidget, and Utils::properties().

Referenced by update().

◆ updateRowname()

Member Data Documentation

◆ m_blockUpdates

bool Table::m_blockUpdates
private

Definition at line 81 of file Table.h.

Referenced by checkBoxClicked(), comboBoxCurrentIndexChanged(), itemChanged(), and update().

◆ m_container

Container* Table::m_container
private

Definition at line 78 of file Table.h.

Referenced by innerContainer().

◆ m_curData

octave_value Table::m_curData
private

Definition at line 80 of file Table.h.

Referenced by Table(), checkBoxClicked(), comboBoxCurrentIndexChanged(), itemChanged(), and update().

◆ m_go

graphics_object Object::m_go
protectedinherited

Definition at line 146 of file Object.h.

Referenced by Object::object().

◆ m_handle

◆ m_interpreter

◆ m_keyPressHandlerDefined

bool Table::m_keyPressHandlerDefined
private

Definition at line 82 of file Table.h.

Referenced by Table(), eventFilter(), and update().

◆ m_keyReleaseHandlerDefined

bool Table::m_keyReleaseHandlerDefined
private

Definition at line 83 of file Table.h.

Referenced by Table(), eventFilter(), and update().

◆ m_octave_qobj

octave::base_qobject& Object::m_octave_qobj
protectedinherited

Definition at line 135 of file Object.h.

◆ m_qobject

QObject* Object::m_qobject
protectedinherited

◆ m_tableWidget


The documentation for this class was generated from the following files: