Public Member Functions | Protected Slots | List of all members
pqCategoryToolbarsBehavior Class Reference

pqCategoryToolbarsBehavior is used when the application wants to enable categories from a pqProxyGroupMenuManager to show up in a toolbar. More...

#include <pqCategoryToolbarsBehavior.h>

Inherits QObject.

Public Member Functions

 pqCategoryToolbarsBehavior (pqProxyGroupMenuManager *menuManager, QMainWindow *mainWindow)
 
 ~pqCategoryToolbarsBehavior () override
 

Protected Slots

void updateToolbars ()
 Create, delete toolbars. More...
 
void prepareForTest ()
 This slot gets attached to a pqEventDispatcher so that some toolbars can be hidden before each test starts (to prevent small test-image differences due to layout differences between machines). More...
 

Detailed Description

pqCategoryToolbarsBehavior is used when the application wants to enable categories from a pqProxyGroupMenuManager to show up in a toolbar.

ex. One may want to have a toolbar listing all the filters in "Common" category. This behavior also ensures that as plugins are loaded, if new categories request that the be added as a toolbar, new toolbars for those are added and also if new items get added to a category already shown as a toolbar, then the toolbar is updated.

Definition at line 29 of file pqCategoryToolbarsBehavior.h.

Constructor & Destructor Documentation

◆ pqCategoryToolbarsBehavior()

pqCategoryToolbarsBehavior::pqCategoryToolbarsBehavior ( pqProxyGroupMenuManager menuManager,
QMainWindow *  mainWindow 
)

◆ ~pqCategoryToolbarsBehavior()

pqCategoryToolbarsBehavior::~pqCategoryToolbarsBehavior ( )
override

Member Function Documentation

◆ updateToolbars

void pqCategoryToolbarsBehavior::updateToolbars ( )
protectedslot

Create, delete toolbars.

◆ prepareForTest

void pqCategoryToolbarsBehavior::prepareForTest ( )
inlineprotectedslot

This slot gets attached to a pqEventDispatcher so that some toolbars can be hidden before each test starts (to prevent small test-image differences due to layout differences between machines).

Definition at line 51 of file pqCategoryToolbarsBehavior.h.


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