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) | |
Protected Slots | |
void | updateToolbars () |
Called when menuManager fires the menuPopulated() signal. 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... | |
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 54 of file pqCategoryToolbarsBehavior.h.
pqCategoryToolbarsBehavior::pqCategoryToolbarsBehavior | ( | pqProxyGroupMenuManager * | menuManager, |
QMainWindow * | mainWindow | ||
) |
|
protectedslot |
Called when menuManager fires the menuPopulated() signal.
|
protectedslot |
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).