ParaView
Public Member Functions | List of all members
pqViewContextMenuHandler Class Referenceabstract

The pqViewContextMenuHandler class is used to setup and cleanup the context menu for a view of a given type. More...

#include <pqViewContextMenuHandler.h>

Inherits QObject.

Public Member Functions

 pqViewContextMenuHandler (QObject *parent=0)
 Constructs a view context menu handler. More...
 
virtual ~pqViewContextMenuHandler ()
 
virtual void setupContextMenu (pqView *view)=0
 Sets up the context menu for the given view. More...
 
virtual void cleanupContextMenu (pqView *view)=0
 Cleans up the context menu for the given view. More...
 

Detailed Description

The pqViewContextMenuHandler class is used to setup and cleanup the context menu for a view of a given type.

Definition at line 52 of file pqViewContextMenuHandler.h.

Constructor & Destructor Documentation

§ pqViewContextMenuHandler()

pqViewContextMenuHandler::pqViewContextMenuHandler ( QObject *  parent = 0)

Constructs a view context menu handler.

Parameters
parentThe parent object.

§ ~pqViewContextMenuHandler()

virtual pqViewContextMenuHandler::~pqViewContextMenuHandler ( )
inlinevirtual

Definition at line 63 of file pqViewContextMenuHandler.h.

Member Function Documentation

§ setupContextMenu()

virtual void pqViewContextMenuHandler::setupContextMenu ( pqView view)
pure virtual

Sets up the context menu for the given view.

The pqViewContextMenuManager maps the view type to the correct handler and calls this method to set up the context menu.

Parameters
viewThe view to set up.

§ cleanupContextMenu()

virtual void pqViewContextMenuHandler::cleanupContextMenu ( pqView view)
pure virtual

Cleans up the context menu for the given view.

Parameters
viewThe view to clean up.

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