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

#include "ButtonGroup.h"

Inheritance diagram for QtHandles::ButtonGroup:
Collaboration diagram for QtHandles::ButtonGroup:

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)
 
ContainerinnerContainer (void)
 
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)
 
void selectNothing (void)
 

Static Public Member Functions

static ButtonGroupcreate (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)
 

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
 

Private Slots

void buttonClicked (QAbstractButton *btn)
 
void buttonToggled (bool toggled)
 

Private Member Functions

void updateLayout (void)
 

Private Attributes

bool m_blockUpdates
 
QButtonGroup * m_buttongroup
 
Containerm_container
 
QRadioButton * m_hiddenbutton
 
QLabel * m_title
 

Detailed Description

Definition at line 48 of file ButtonGroup.h.

Constructor & Destructor Documentation

◆ ButtonGroup()

◆ ~ButtonGroup()

QtHandles::ButtonGroup::~ButtonGroup ( void  )

Definition at line 188 of file ButtonGroup.cc.

Member Function Documentation

◆ addButton()

void QtHandles::ButtonGroup::addButton ( QAbstractButton *  btn)

◆ beingDeleted()

void QtHandles::Object::beingDeleted ( void  )
protectedvirtualinherited

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

Definition at line 191 of file Object.cc.

Referenced by QtHandles::Object::slotUpdate().

◆ buttonClicked

◆ buttonToggled

◆ create()

ButtonGroup * QtHandles::ButtonGroup::create ( octave::base_qobject oct_qobj,
octave::interpreter interp,
const graphics_object go 
)
static

◆ do_connections()

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

◆ eventFilter()

◆ finalize()

void QtHandles::Object::finalize ( void  )
protectedvirtualinherited

Definition at line 168 of file Object.cc.

References QtHandles::Object::m_qobject.

Referenced by QtHandles::Object::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 
)
signalinherited

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

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

◆ init()

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

◆ innerContainer()

Container* QtHandles::ButtonGroup::innerContainer ( void  )
inlinevirtual

Implements QtHandles::Object.

Definition at line 58 of file ButtonGroup.h.

References m_container.

◆ interpreter_event [1/2]

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

◆ interpreter_event [2/2]

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

◆ object()

◆ objectDestroyed

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

Definition at line 194 of file Object.cc.

References QtHandles::Object::m_qobject.

Referenced by QtHandles::Object::init().

◆ parentObject()

◆ print()

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

Reimplemented in QtHandles::Figure.

Definition at line 187 of file Object.cc.

Referenced by QtHandles::Object::slotPrint().

◆ properties() [1/4]

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

◆ properties() [2/4]

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

◆ properties() [3/4]

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

Definition at line 63 of file Object.h.

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

◆ properties() [4/4]

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

◆ qObject()

◆ qWidget()

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

◆ redraw()

void QtHandles::ButtonGroup::redraw ( void  )
protectedvirtual

◆ selectNothing()

void QtHandles::ButtonGroup::selectNothing ( void  )

Definition at line 457 of file ButtonGroup.cc.

References m_hiddenbutton.

Referenced by QtHandles::ButtonControl::update().

◆ show()

void QtHandles::Object::show ( void  )
protectedvirtualinherited

Reimplemented in QtHandles::Figure.

Definition at line 183 of file Object.cc.

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

◆ slotFinalize

void QtHandles::Object::slotFinalize ( void  )
slotinherited

◆ slotPrint

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

◆ slotRedraw

void QtHandles::Object::slotRedraw ( void  )
slotinherited

◆ slotShow

void QtHandles::Object::slotShow ( void  )
slotinherited

◆ slotUpdate

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

◆ update()

◆ updateLayout()

void QtHandles::ButtonGroup::updateLayout ( void  )
private

Member Data Documentation

◆ m_blockUpdates

bool QtHandles::ButtonGroup::m_blockUpdates
private

Definition at line 86 of file ButtonGroup.h.

Referenced by buttonToggled(), eventFilter(), update(), and updateLayout().

◆ m_buttongroup

QButtonGroup* QtHandles::ButtonGroup::m_buttongroup
private

Definition at line 82 of file ButtonGroup.h.

Referenced by ButtonGroup(), addButton(), buttonClicked(), and buttonToggled().

◆ m_container

Container* QtHandles::ButtonGroup::m_container
private

Definition at line 84 of file ButtonGroup.h.

Referenced by ButtonGroup(), eventFilter(), innerContainer(), redraw(), and updateLayout().

◆ m_go

graphics_object QtHandles::Object::m_go
protectedinherited

Definition at line 150 of file Object.h.

Referenced by QtHandles::Object::object().

◆ m_handle

graphics_handle QtHandles::Object::m_handle
protectedinherited

◆ m_hiddenbutton

QRadioButton* QtHandles::ButtonGroup::m_hiddenbutton
private

Definition at line 83 of file ButtonGroup.h.

Referenced by ButtonGroup(), buttonToggled(), selectNothing(), and update().

◆ m_interpreter

◆ m_octave_qobj

octave::base_qobject& QtHandles::Object::m_octave_qobj
protectedinherited

Definition at line 139 of file Object.h.

◆ m_qobject

◆ m_title

QLabel* QtHandles::ButtonGroup::m_title
private

Definition at line 85 of file ButtonGroup.h.

Referenced by ButtonGroup(), eventFilter(), update(), and updateLayout().


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