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

#include "Object.h"

Inheritance diagram for Object:
Collaboration diagram for 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_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 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::interpreter & m_interpreter
 
octave::base_qobject & m_octave_qobj
 
QObjectm_qobject
 

Detailed Description

Definition at line 46 of file Object.h.

Constructor & Destructor Documentation

◆ Object()

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

Definition at line 43 of file Object.cc.

◆ ~Object()

Object::~Object ( void  )
virtual

Definition at line 78 of file Object.cc.

Member Function Documentation

◆ beingDeleted()

void Object::beingDeleted ( void  )
protectedvirtual

Reimplemented in ToolBar, and Figure.

Definition at line 190 of file Object.cc.

Referenced by slotUpdate().

◆ do_connections()

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

◆ finalize()

void Object::finalize ( void  )
protectedvirtual

Definition at line 167 of file Object.cc.

References m_qobject.

Referenced by 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 
)
signal

◆ 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 
)
signal

◆ 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 
)
signal

◆ init()

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

Definition at line 61 of file Object.cc.

References m_qobject, and objectDestroyed().

Referenced by BaseControl::init().

◆ innerContainer()

◆ interpreter_event [1/2]

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

Referenced by do_connections().

◆ interpreter_event [2/2]

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

◆ object()

◆ objectDestroyed

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

Definition at line 193 of file Object.cc.

References m_qobject.

Referenced by init().

◆ parentObject()

◆ print()

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

Reimplemented in Figure.

Definition at line 186 of file Object.cc.

Referenced by slotPrint().

◆ properties() [1/4]

base_properties& Object::properties ( void  )
inline

◆ properties() [2/4]

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

Definition at line 63 of file Object.h.

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

◆ properties() [3/4]

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

Definition at line 59 of file Object.h.

References object().

◆ properties() [4/4]

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

Definition at line 70 of file Object.h.

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

◆ qObject()

virtual QObject* Object::qObject ( void  )
inlinevirtual

◆ qWidget()

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

◆ redraw()

void Object::redraw ( void  )
protectedvirtual

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

Definition at line 178 of file Object.cc.

Referenced by slotRedraw().

◆ show()

void Object::show ( void  )
protectedvirtual

Reimplemented in Figure.

Definition at line 182 of file Object.cc.

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

◆ slotFinalize

void Object::slotFinalize ( void  )
slot

Definition at line 120 of file Object.cc.

References finalize(), and m_interpreter.

◆ slotPrint

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

Definition at line 152 of file Object.cc.

References m_interpreter, and print().

◆ slotRedraw

void Object::slotRedraw ( void  )
slot

Definition at line 130 of file Object.cc.

References m_interpreter, and redraw().

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

◆ slotShow

void Object::slotShow ( void  )
slot

Definition at line 141 of file Object.cc.

References m_interpreter, and show().

Referenced by ObjectProxy::init().

◆ slotUpdate

void Object::slotUpdate ( int  pId)
slot

Definition at line 97 of file Object.cc.

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

Referenced by ObjectProxy::init().

◆ update()

Member Data Documentation

◆ m_go

graphics_object Object::m_go
protected

Definition at line 146 of file Object.h.

Referenced by object().

◆ m_handle

◆ m_interpreter

◆ m_octave_qobj

octave::base_qobject& Object::m_octave_qobj
protected

Definition at line 135 of file Object.h.

◆ m_qobject

QObject* Object::m_qobject
protected

Definition at line 155 of file Object.h.

Referenced by ListBoxControl::eventFilter(), finalize(), init(), objectDestroyed(), and qObject().


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