The pqViewContextMenuManager class manages the setup and cleanup of view context menus.
More...
#include <pqViewContextMenuManager.h>
List of all members.
Detailed Description
The pqViewContextMenuManager class manages the setup and cleanup of view context menus.
Definition at line 53 of file pqViewContextMenuManager.h.
Constructor & Destructor Documentation
| pqViewContextMenuManager::pqViewContextMenuManager |
( |
QObject * |
parent = 0 | ) |
|
Creates a view context menu manager.
- Parameters:
-
| virtual pqViewContextMenuManager::~pqViewContextMenuManager |
( |
| ) |
[virtual] |
Member Function Documentation
Registers a context menu handler with a view type.
- Parameters:
-
| viewType | The name of the view type. |
| handler | The context menu handler. |
- Returns:
- True if the registration was successful.
Removes the context menu from the name mapping.
- Parameters:
-
| handler | The context menu handler. |
Gets whether or not the context menu handler is registered.
- Returns:
- True if the context menu handler is associated with a view type.
Gets the context menu handler for the specified view type.
- Parameters:
-
| viewType | The name of the view type. |
- Returns:
- A pointer to the context menu handler.
| void pqViewContextMenuManager::setupContextMenu |
( |
pqView * |
view | ) |
[slot] |
Sets up the context menu for the given view.
The context menu is only set up for the view if there is a registered handler for the view type.
- Parameters:
-
| view | The view to initialize. |
| void pqViewContextMenuManager::cleanupContextMenu |
( |
pqView * |
view | ) |
[slot] |
Cleans up the context menu for the given view.
- Parameters:
-
| view | The view to clean up. |
The documentation for this class was generated from the following file: