The pqViewContextMenuManager class manages the setup and cleanup of view context menus.
More...
#include <pqViewContextMenuManager.h>
Inherits QObject.
The pqViewContextMenuManager class manages the setup and cleanup of view context menus.
Definition at line 55 of file pqViewContextMenuManager.h.
§ pqViewContextMenuManager()
pqViewContextMenuManager::pqViewContextMenuManager |
( |
QObject * |
parent = 0 | ) |
|
Creates a view context menu manager.
- Parameters
-
§ ~pqViewContextMenuManager()
virtual pqViewContextMenuManager::~pqViewContextMenuManager |
( |
| ) |
|
|
virtual |
§ registerHandler()
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.
§ unregisterHandler()
Removes the context menu from the name mapping.
- Parameters
-
handler | The context menu handler. |
§ isRegistered()
Gets whether or not the context menu handler is registered.
- Returns
- True if the context menu handler is associated with a view type.
§ getHandler()
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.
§ setupContextMenu
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. |
§ cleanupContextMenu
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: