GNU Octave 7.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::Menu Class Reference

#include "Menu.h"

Inheritance diagram for octave::Menu:
Collaboration diagram for octave::Menu:

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

 Menu (octave::base_qobject &oct_qobj, octave::interpreter &interp, const graphics_object &go, QAction *action, Object *parent)
 
 ~Menu (void)
 
virtual void do_connections (const QObject *receiver, const QObject *emitter=nullptr)
 
ContainerinnerContainer (void)
 
QWidgetmenu (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 Menucreate (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)
 
virtual 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::interpreter & m_interpreter
 
octave::base_qobjectm_octave_qobj
 
QObjectm_qobject
 

Private Slots

void actionHovered (void)
 
void actionTriggered (void)
 

Private Member Functions

void updateSiblingPositions (void)
 

Private Attributes

QWidgetm_parent
 
QAction * m_separator
 

Detailed Description

Definition at line 45 of file Menu.h.

Constructor & Destructor Documentation

◆ Menu()

octave::Menu::Menu ( octave::base_qobject oct_qobj,
octave::interpreter &  interp,
const graphics_object &  go,
QAction *  action,
Object parent 
)

◆ ~Menu()

octave::Menu::~Menu ( void  )

Definition at line 167 of file Menu.cc.

Member Function Documentation

◆ actionHovered

void octave::Menu::actionHovered ( void  )
privateslot

Definition at line 301 of file Menu.cc.

References octave::Object::gh_callback_event(), and octave::Object::m_handle.

Referenced by menu().

◆ actionTriggered

void octave::Menu::actionTriggered ( void  )
privateslot

Definition at line 291 of file Menu.cc.

References octave::Object::gh_callback_event(), and octave::Object::m_handle.

Referenced by Menu().

◆ beingDeleted()

void octave::Object::beingDeleted ( void  )
protectedvirtualinherited

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

Definition at line 191 of file Object.cc.

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

◆ create()

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

◆ do_connections()

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

◆ finalize()

void octave::Object::finalize ( void  )
protectedvirtualinherited

Definition at line 168 of file Object.cc.

References octave::Object::m_qobject.

Referenced by octave::Object::slotFinalize().

◆ fromQObject()

◆ gh_callback_event [1/2]

◆ gh_callback_event [2/2]

void octave::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 octave::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 octave::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 octave::Object::init ( QObject obj,
bool  callBase = false 
)
protectedinherited

◆ innerContainer()

Container * octave::Menu::innerContainer ( void  )
inlinevirtual

Implements octave::Object.

Definition at line 58 of file Menu.h.

◆ interpreter_event [1/2]

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

◆ interpreter_event [2/2]

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

◆ menu()

QWidget * octave::Menu::menu ( void  )
virtual

Implements octave::MenuContainer.

Definition at line 274 of file Menu.cc.

References actionHovered().

◆ object()

◆ objectDestroyed

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

Definition at line 194 of file Object.cc.

References octave::Object::m_qobject.

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

◆ parentObject()

◆ print()

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

Reimplemented in octave::Figure.

Definition at line 187 of file Object.cc.

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

◆ properties() [1/4]

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

◆ properties() [2/4]

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

Definition at line 67 of file Object.h.

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

◆ properties() [3/4]

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

Definition at line 63 of file Object.h.

References octave::Object::object().

◆ properties() [4/4]

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

Definition at line 74 of file Object.h.

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

◆ qObject()

◆ qWidget()

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

◆ redraw()

void octave::Object::redraw ( void  )
protectedvirtualinherited

◆ show()

void octave::Object::show ( void  )
protectedvirtualinherited

Reimplemented in octave::Figure.

Definition at line 183 of file Object.cc.

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

◆ slotFinalize

void octave::Object::slotFinalize ( void  )
slotinherited

Definition at line 121 of file Object.cc.

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

◆ slotPrint

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

Definition at line 153 of file Object.cc.

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

◆ slotRedraw

void octave::Object::slotRedraw ( void  )
slotinherited

◆ slotShow

void octave::Object::slotShow ( void  )
slotinherited

Definition at line 142 of file Object.cc.

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

Referenced by octave::ObjectProxy::init().

◆ slotUpdate

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

◆ update()

void octave::Menu::update ( int  pId)
protectedvirtual

◆ updateSiblingPositions()

void octave::Menu::updateSiblingPositions ( void  )
private

Definition at line 307 of file Menu.cc.

References octave::Object::fromQObject(), m_parent, octave::Object::object(), and octave::Utils::properties().

Referenced by Menu(), and update().

Member Data Documentation

◆ m_go

graphics_object octave::Object::m_go
protectedinherited

Definition at line 150 of file Object.h.

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

◆ m_handle

◆ m_interpreter

◆ m_octave_qobj

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

Definition at line 139 of file Object.h.

◆ m_parent

QWidget* octave::Menu::m_parent
private

Definition at line 73 of file Menu.h.

Referenced by Menu(), update(), and updateSiblingPositions().

◆ m_qobject

◆ m_separator

QAction* octave::Menu::m_separator
private

Definition at line 74 of file Menu.h.

Referenced by Menu(), and update().


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