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

pqViewMenuManager keeps ParaView View menu populated with all the available dock widgets and toolbars. More...

#include <pqViewMenuManager.h>

Inherits QObject.

Public Member Functions

 pqViewMenuManager (QMainWindow *mainWindow, QMenu *menu)
 

Protected Slots

void buildMenu ()
 build the menu from scratch. More...
 
virtual void updateMenu ()
 This is called to update items in the menu that are not static and may change as a result of loading of plugins, for example viz. More...
 

Protected Attributes

QPointer< QMenu > Menu
 
QPointer< QMenu > ToolbarsMenu
 
QPointer< QAction > DockPanelSeparators [2]
 
QPointer< QAction > ShowFrameDecorationsAction
 

Detailed Description

pqViewMenuManager keeps ParaView View menu populated with all the available dock widgets and toolbars.

This needs special handling since new dock widget/toolbars may get added when plugins are loaded.

Definition at line 20 of file pqViewMenuManager.h.

Constructor & Destructor Documentation

◆ pqViewMenuManager()

pqViewMenuManager::pqViewMenuManager ( QMainWindow *  mainWindow,
QMenu *  menu 
)

Member Function Documentation

◆ buildMenu

void pqViewMenuManager::buildMenu ( )
protectedslot

build the menu from scratch.

Clears all existing items in the menu before building it.

◆ updateMenu

virtual void pqViewMenuManager::updateMenu ( )
protectedvirtualslot

This is called to update items in the menu that are not static and may change as a result of loading of plugins, for example viz.

actions for controlling visibilities of toolbars are dock panels. It removes any actions for those currently present and adds actions for toolbars and panels in the application. This slot is called when the menu triggers aboutToShow signal.

Member Data Documentation

◆ Menu

QPointer<QMenu> pqViewMenuManager::Menu
protected

Definition at line 46 of file pqViewMenuManager.h.

◆ ToolbarsMenu

QPointer<QMenu> pqViewMenuManager::ToolbarsMenu
protected

Definition at line 47 of file pqViewMenuManager.h.

◆ DockPanelSeparators

QPointer<QAction> pqViewMenuManager::DockPanelSeparators[2]
protected

Definition at line 48 of file pqViewMenuManager.h.

◆ ShowFrameDecorationsAction

QPointer<QAction> pqViewMenuManager::ShowFrameDecorationsAction
protected

Definition at line 49 of file pqViewMenuManager.h.


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