ParaView
Public Slots | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
pqSGWritersMenuManager Class Reference

pqSGWritersMenuManager is responsible for managing the menu for "Writers". More...

#include <pqSGWritersMenuManager.h>

Inherits QObject.

Public Slots

void createMenu ()
 Creates a new writers menu and adds the writers to it. More...
 

Public Member Functions

 pqSGWritersMenuManager (const char *writersMenuName, const char *objectMenuName, QObject *parent=0)
 
 ~pqSGWritersMenuManager ()
 

Protected Slots

void updateEnableState ()
 Updates the enable state for the writers menu. More...
 
void onActionTriggered (QAction *)
 Called when user requests to create a writer. More...
 

Protected Member Functions

void createWriter (const QString &xmlgroup, const QString &xmlname)
 

Detailed Description

pqSGWritersMenuManager is responsible for managing the menu for "Writers".

pqSGPluginManager calls createMenu() when the plugin is initialized, then pqSGWritersMenuManager creates and setups up the co-processing writers menu. If another plugin is loaded after this one is then it rechecks to see if any writers were added with the CoProcessing hint in the XML file and if they were then the writers get added to the Writers menu. See Resources/servermanager.xml for an example of how to do that.

Definition at line 51 of file pqSGWritersMenuManager.h.

Constructor & Destructor Documentation

◆ pqSGWritersMenuManager()

pqSGWritersMenuManager::pqSGWritersMenuManager ( const char *  writersMenuName,
const char *  objectMenuName,
QObject *  parent = 0 
)

◆ ~pqSGWritersMenuManager()

pqSGWritersMenuManager::~pqSGWritersMenuManager ( )

Member Function Documentation

◆ createMenu

void pqSGWritersMenuManager::createMenu ( )
slot

Creates a new writers menu and adds the writers to it.

The name of the Qt menu object will be ObjectMenuName and the the name of GUI menu will be WritersMenuName.

◆ updateEnableState

void pqSGWritersMenuManager::updateEnableState ( )
protectedslot

Updates the enable state for the writers menu.

◆ onActionTriggered

void pqSGWritersMenuManager::onActionTriggered ( QAction *  )
protectedslot

Called when user requests to create a writer.

◆ createWriter()

void pqSGWritersMenuManager::createWriter ( const QString &  xmlgroup,
const QString &  xmlname 
)
protected

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