![]() |
OpenWalnut
1.5.0dev
|
This class represents a list of actions to apply a bunch of modules to others. More...
#include <WQtCombinerActionList.h>
Inheritance diagram for WQtCombinerActionList:
Collaboration diagram for WQtCombinerActionList:Public Member Functions | |
| WQtCombinerActionList (QWidget *parent, WIconManager *icons, WCombinerTypes::WCompatiblesList compatibles, const WQtModuleConfig *exclusionPredicate=0, bool advancedText=false) | |
| This constructor creates a list of actions recursively from the specified compatibles list. More... | |
| WQtCombinerActionList (QWidget *parent, WIconManager *icons, WCombinerTypes::WDisconnectList disconnects) | |
| This constructor creates a list of actions recursively from the specified disconnects list. More... | |
| WQtCombinerActionList () | |
| Creates a completely empty list. More... | |
| virtual | ~WQtCombinerActionList () |
| Destructor. More... | |
Static Public Member Functions | |
| static void | deepDeleteActionList (QList< QAction * > &l) |
| Clears a hierarchy of QActions in a list. More... | |
This class represents a list of actions to apply a bunch of modules to others.
It basically interprets the WCompatiblesList or WDisconnectList and builds a list of appropriate actions. It can be used to build menus, toolbars and so on.
Definition at line 51 of file WQtCombinerActionList.h.
| WQtCombinerActionList::WQtCombinerActionList | ( | QWidget * | parent, |
| WIconManager * | icons, | ||
| WCombinerTypes::WCompatiblesList | compatibles, | ||
| const WQtModuleConfig * | exclusionPredicate = 0, |
||
| bool | advancedText = false |
||
| ) |
This constructor creates a list of actions recursively from the specified compatibles list.
| parent | the parent widget of this widget, i.e. the widget that manages it. |
| icons | the icon manager holding the right icons for all the prototypes |
| compatibles | the list of combiners |
| advancedText | if true, the complete connector/module name is displayed in all actions |
| exclusionPredicate | a predicate which checks for each module whether to exclude it or not. If 0, nothing is excluded. |
| PredicateT | the predicate used for excluding modules |
Definition at line 27 of file WQtCombinerActionList.cpp.
| WQtCombinerActionList::WQtCombinerActionList | ( | QWidget * | parent, |
| WIconManager * | icons, | ||
| WCombinerTypes::WDisconnectList | disconnects | ||
| ) |
This constructor creates a list of actions recursively from the specified disconnects list.
| parent | the parent widget of this widget, i.e. the widget that manages it. |
| icons | the icon manager holding the right icons for all the prototypes |
| disconnects | the list of disconnections |
Definition at line 63 of file WQtCombinerActionList.cpp.
| WQtCombinerActionList::WQtCombinerActionList | ( | ) |
Creates a completely empty list.
Definition at line 93 of file WQtCombinerActionList.cpp.
|
virtual |
Destructor.
Definition at line 99 of file WQtCombinerActionList.cpp.
Clears a hierarchy of QActions in a list.
This deeply clears and deletes the lists.
| l | the list to clear and delete |
Definition at line 89 of file WQtCombinerActionList.h.
Referenced by WQtControlPanel::createCompatibleButtons().
Here is the caller graph for this function: