OpenWalnut  1.5.0dev
Public Member Functions | Static Public Member Functions | List of all members
WQtCombinerActionList Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ WQtCombinerActionList() [1/3]

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.

Parameters
parentthe parent widget of this widget, i.e. the widget that manages it.
iconsthe icon manager holding the right icons for all the prototypes
compatiblesthe list of combiners
advancedTextif true, the complete connector/module name is displayed in all actions
exclusionPredicatea predicate which checks for each module whether to exclude it or not. If 0, nothing is excluded.
Template Parameters
PredicateTthe predicate used for excluding modules

Definition at line 27 of file WQtCombinerActionList.cpp.

◆ WQtCombinerActionList() [2/3]

WQtCombinerActionList::WQtCombinerActionList ( QWidget *  parent,
WIconManager icons,
WCombinerTypes::WDisconnectList  disconnects 
)

This constructor creates a list of actions recursively from the specified disconnects list.

Parameters
parentthe parent widget of this widget, i.e. the widget that manages it.
iconsthe icon manager holding the right icons for all the prototypes
disconnectsthe list of disconnections

Definition at line 63 of file WQtCombinerActionList.cpp.

◆ WQtCombinerActionList() [3/3]

WQtCombinerActionList::WQtCombinerActionList ( )

Creates a completely empty list.

Definition at line 93 of file WQtCombinerActionList.cpp.

◆ ~WQtCombinerActionList()

WQtCombinerActionList::~WQtCombinerActionList ( )
virtual

Destructor.

Definition at line 99 of file WQtCombinerActionList.cpp.

Member Function Documentation

◆ deepDeleteActionList()

static void WQtCombinerActionList::deepDeleteActionList ( QList< QAction * > &  l)
inlinestatic

Clears a hierarchy of QActions in a list.

This deeply clears and deletes the lists.

Parameters
lthe 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:

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