GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
QtHandles::Object Class Referenceabstract

#include "Object.h"

Inheritance diagram for QtHandles::Object:
Collaboration diagram for QtHandles::Object:

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

 Object (octave::base_qobject &qobj, octave::interpreter &interp, const graphics_object &go, QObject *obj=nullptr)
 
virtual ~Object (void)
 
virtual void do_connections (const QObject *receiver, const QObject *emitter=nullptr)
 
virtual ContainerinnerContainer (void)=0
 
graphics_object object (void) const
 
base_propertiesproperties (void)
 
template<typename T >
T::properties & properties (void)
 
const base_propertiesproperties (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 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)
 
virtual void redraw (void)
 
virtual void show (void)
 
virtual void update (int pId)
 

Static Protected Member Functions

static ObjectparentObject (octave::interpreter &interp, const graphics_object &go)
 

Protected Attributes

graphics_object m_go
 
graphics_handle m_handle
 
octave::interpreterm_interpreter
 
octave::base_qobjectm_octave_qobj
 
QObjectm_qobject
 

Detailed Description

Definition at line 50 of file Object.h.

Constructor & Destructor Documentation

◆ Object()

QtHandles::Object::Object ( octave::base_qobject qobj,
octave::interpreter interp,
const graphics_object go,
QObject obj = nullptr 
)

◆ ~Object()

QtHandles::Object::~Object ( void  )
virtual

Definition at line 79 of file Object.cc.

Member Function Documentation

◆ beingDeleted()

void QtHandles::Object::beingDeleted ( void  )
protectedvirtual

Reimplemented in QtHandles::ToolBar, and QtHandles::Figure.

Definition at line 191 of file Object.cc.

Referenced by slotUpdate().

◆ do_connections()

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

◆ finalize()

void QtHandles::Object::finalize ( void  )
protectedvirtual

Definition at line 168 of file Object.cc.

References m_qobject.

Referenced by slotFinalize().

◆ fromQObject()

◆ gh_callback_event [1/2]

◆ gh_callback_event [2/2]

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

◆ gh_set_event [1/3]

◆ gh_set_event [2/3]

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

◆ gh_set_event [3/3]

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

◆ init()

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

Definition at line 62 of file Object.cc.

References m_qobject, and objectDestroyed().

Referenced by Object(), and QtHandles::BaseControl::init().

◆ innerContainer()

◆ interpreter_event [1/2]

void QtHandles::Object::interpreter_event ( const octave::fcn_callback fcn)
signal

Referenced by do_connections().

◆ interpreter_event [2/2]

void QtHandles::Object::interpreter_event ( const octave::meth_callback meth)
signal

◆ object()

◆ objectDestroyed

void QtHandles::Object::objectDestroyed ( QObject obj = nullptr)
slot

Definition at line 194 of file Object.cc.

References m_qobject.

Referenced by init().

◆ parentObject()

◆ print()

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

Reimplemented in QtHandles::Figure.

Definition at line 187 of file Object.cc.

Referenced by slotPrint().

◆ properties() [1/4]

◆ properties() [2/4]

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

◆ properties() [3/4]

const base_properties& QtHandles::Object::properties ( void  ) const
inline

Definition at line 63 of file Object.h.

References graphics_object::get_properties(), and object().

◆ properties() [4/4]

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

◆ qObject()

◆ qWidget()

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

◆ redraw()

void QtHandles::Object::redraw ( void  )
protectedvirtual

Reimplemented in QtHandles::Table, QtHandles::Panel, QtHandles::Figure, QtHandles::ButtonGroup, and QtHandles::BaseControl.

Definition at line 179 of file Object.cc.

Referenced by slotRedraw().

◆ show()

void QtHandles::Object::show ( void  )
protectedvirtual

Reimplemented in QtHandles::Figure.

Definition at line 183 of file Object.cc.

Referenced by QtHandles::ButtonGroup::ButtonGroup(), QtHandles::Panel::Panel(), and slotShow().

◆ slotFinalize

void QtHandles::Object::slotFinalize ( void  )
slot

◆ slotPrint

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

◆ slotRedraw

void QtHandles::Object::slotRedraw ( void  )
slot

◆ slotShow

void QtHandles::Object::slotShow ( void  )
slot

◆ slotUpdate

void QtHandles::Object::slotUpdate ( int  pId)
slot

◆ update()

Member Data Documentation

◆ m_go

graphics_object QtHandles::Object::m_go
protected

Definition at line 150 of file Object.h.

Referenced by object().

◆ m_handle

graphics_handle QtHandles::Object::m_handle
protected

Definition at line 157 of file Object.h.

Referenced by QtHandles::ButtonGroup::ButtonGroup(), QtHandles::Figure::Figure(), Object(), QtHandles::Panel::Panel(), QtHandles::ContextMenu::aboutToHide(), QtHandles::ContextMenu::aboutToShow(), QtHandles::Menu::actionHovered(), QtHandles::Menu::actionTriggered(), QtHandles::Figure::beingDeleted(), QtHandles::ButtonGroup::buttonClicked(), QtHandles::ButtonGroup::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(), object(), QtHandles::Figure::print(), QtHandles::ButtonGroup::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().

◆ m_interpreter

◆ m_octave_qobj

octave::base_qobject& QtHandles::Object::m_octave_qobj
protected

Definition at line 139 of file Object.h.

◆ m_qobject

QObject* QtHandles::Object::m_qobject
protected

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