Public Member Functions | Protected Slots | Protected Attributes | List of all members
pqRenameProxyReaction Class Reference

Reaction for renaming a proxy. More...

#include <pqRenameProxyReaction.h>

Inheritance diagram for pqRenameProxyReaction:
Inheritance graph
[legend]
Collaboration diagram for pqRenameProxyReaction:
Collaboration graph
[legend]

Public Member Functions

 pqRenameProxyReaction (QAction *renameAction, pqProxy *proxy, QWidget *parentWidget=nullptr)
 Use this overload to add a handler to rename a specific proxy. More...
 
 pqRenameProxyReaction (QAction *renameAction, QWidget *parentWidget=nullptr)
 Use this overload to add a handler to rename the active source proxy. More...
 

Protected Slots

void onTriggered () override
 Called when the action is triggered. More...
 
void updateEnableState () override
 

Protected Attributes

pqProxyProxy
 
QPointer< QWidget > ParentWidget
 

Detailed Description

Reaction for renaming a proxy.

Definition at line 18 of file pqRenameProxyReaction.h.

Constructor & Destructor Documentation

◆ pqRenameProxyReaction() [1/2]

pqRenameProxyReaction::pqRenameProxyReaction ( QAction *  renameAction,
pqProxy proxy,
QWidget *  parentWidget = nullptr 
)

Use this overload to add a handler to rename a specific proxy.

parentWidget is used as the parent for the dialog box popped up to request new name input. If nullptr, pqCoreUtilities::mainWidget() is used.

◆ pqRenameProxyReaction() [2/2]

pqRenameProxyReaction::pqRenameProxyReaction ( QAction *  renameAction,
QWidget *  parentWidget = nullptr 
)

Use this overload to add a handler to rename the active source proxy.

parentWidget is used as the parent for the dialog box popped up to request new name input. If nullptr, pqCoreUtilities::mainWidget() is used.

Member Function Documentation

◆ onTriggered

void pqRenameProxyReaction::onTriggered ( )
overrideprotectedslot

Called when the action is triggered.

◆ updateEnableState

void pqRenameProxyReaction::updateEnableState ( )
overrideprotectedslot

Member Data Documentation

◆ Proxy

pqProxy* pqRenameProxyReaction::Proxy
protected

Definition at line 48 of file pqRenameProxyReaction.h.

◆ ParentWidget

QPointer<QWidget> pqRenameProxyReaction::ParentWidget
protected

Definition at line 49 of file pqRenameProxyReaction.h.


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