5 #ifndef pqPythonEditorActions_h 6 #define pqPythonEditorActions_h 30 static_assert(static_cast<int>(E::END),
"The input enum must end with END");
31 static_assert(static_cast<int>(E::END) != 0,
"At least one action is required");
41 for (
int i = 0; i < static_cast<int>(Type::END); ++i)
43 this->
Actions[
static_cast<Type>(i)] =
new QAction();
146 return this->GeneralActions[action];
182 #endif // pqPythonEditorActions_h
EditorActionGroup()
Default constructor allocates all the actions listed in the enum.
Stack array using an enum as indexer.
QAction & operator[](const GeneralActionType action)
accessor to an action
A template group of action.
const QAction & operator[](const Type action) const
const accessor to an action
std::vector< ScriptAction > ScriptActions
The variable sized array of script actions.
GeneralActionType
General editor actions.
QAction & operator[](const Type action)
accessor to an action
const QAction & operator[](const GeneralActionType action) const
const accessor to an action
EnumArray< Type, QPointer< QAction > > Actions
The array of actions.
pqPythonManager is a class to facilitate the use of a python interpreter by various paraview GUI comp...
int Run(int processType, int argc, char *argv[])
TGeneralAction GeneralActions
The list of general actions.
ScriptActionType
Specialized actions for the scripting part of the editor.