Public Slots | Public Member Functions | Static Public Member Functions | Protected Slots | List of all members
pqSourcesMenuReaction Class Reference

Reaction to handle creation of sources from the sources menu. More...

#include <pqSourcesMenuReaction.h>

Inherits QObject.

Public Slots

virtual void updateEnableState ()
 Updates the enabled state. More...
 
void updateEnableState (bool)
 

Public Member Functions

 pqSourcesMenuReaction (pqProxyGroupMenuManager *menuManager)
 

Static Public Member Functions

static pqPipelineSourcecreateSource (const QString &group, const QString &name)
 
static bool warnOnCreate (const QString &group, const QString &name, pqServer *server=nullptr)
 Method used to prompt user before creating a proxy. More...
 

Protected Slots

virtual void onTriggered (const QString &group, const QString &name)
 Called when the action is triggered. More...
 

Detailed Description

Reaction to handle creation of sources from the sources menu.

Definition at line 17 of file pqSourcesMenuReaction.h.

Constructor & Destructor Documentation

◆ pqSourcesMenuReaction()

pqSourcesMenuReaction::pqSourcesMenuReaction ( pqProxyGroupMenuManager menuManager)

Member Function Documentation

◆ createSource()

static pqPipelineSource* pqSourcesMenuReaction::createSource ( const QString &  group,
const QString &  name 
)
static

◆ warnOnCreate()

static bool pqSourcesMenuReaction::warnOnCreate ( const QString &  group,
const QString &  name,
pqServer server = nullptr 
)
static

Method used to prompt user before creating a proxy.

If the proxy hints has "WarnOnCreate" hint, then the user will be prompted according to the contents on the hint. Returns false if the user rejects the confirmation, true otherwise.

If server is null, then the active server is used.

◆ updateEnableState [1/2]

virtual void pqSourcesMenuReaction::updateEnableState ( )
virtualslot

Updates the enabled state.

Applications need not explicitly call this.

◆ updateEnableState [2/2]

void pqSourcesMenuReaction::updateEnableState ( bool  )
slot

◆ onTriggered

virtual void pqSourcesMenuReaction::onTriggered ( const QString &  group,
const QString &  name 
)
inlineprotectedvirtualslot

Called when the action is triggered.

Definition at line 48 of file pqSourcesMenuReaction.h.


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