Public Types | Public Member Functions | Public Attributes | List of all members
EditorActionGroup< E > Struct Template Reference

A template group of action. More...

#include <pqPythonEditorActions.h>

Inheritance diagram for EditorActionGroup< E >:
Inheritance graph
[legend]
Collaboration diagram for EditorActionGroup< E >:
Collaboration graph
[legend]

Public Types

using Type = E
 

Public Member Functions

 EditorActionGroup ()
 Default constructor allocates all the actions listed in the enum. More...
 
const QAction & operator[] (const Type action) const
 const accessor to an action More...
 
QAction & operator[] (const Type action)
 accessor to an action More...
 

Public Attributes

EnumArray< Type, QPointer< QAction > > Actions
 The array of actions. More...
 

Detailed Description

template<typename E>
struct EditorActionGroup< E >

A template group of action.

The template parameter should be an enum ending with END that contains at least one entry.

Definition at line 28 of file pqPythonEditorActions.h.

Member Typedef Documentation

◆ Type

template<typename E>
using EditorActionGroup< E >::Type = E

Definition at line 33 of file pqPythonEditorActions.h.

Constructor & Destructor Documentation

◆ EditorActionGroup()

template<typename E>
EditorActionGroup< E >::EditorActionGroup ( )
inline

Default constructor allocates all the actions listed in the enum.

Definition at line 39 of file pqPythonEditorActions.h.

Member Function Documentation

◆ operator[]() [1/2]

template<typename E>
const QAction& EditorActionGroup< E >::operator[] ( const Type  action) const
inline

const accessor to an action

Definition at line 50 of file pqPythonEditorActions.h.

◆ operator[]() [2/2]

template<typename E>
QAction& EditorActionGroup< E >::operator[] ( const Type  action)
inline

accessor to an action

Definition at line 55 of file pqPythonEditorActions.h.

Member Data Documentation

◆ Actions

template<typename E>
EnumArray<Type, QPointer<QAction> > EditorActionGroup< E >::Actions

The array of actions.

Definition at line 60 of file pqPythonEditorActions.h.


The documentation for this struct was generated from the following file: