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

Reaction to allow editing of scalar bar properties using a pqProxyWidgetDialog. More...

#include <pqEditScalarBarReaction.h>

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

Public Slots

void setScalarBarVisibilityReaction (pqScalarBarVisibilityReaction *reaction)
 Set Scalar Bar Visibility Reaction. More...
 
bool editScalarBar ()
 Show the editor dialog for editing scalar bar properties. More...
 
void setRepresentation (pqDataRepresentation *, int selectedPropertiesType)
 Set the active representation. More...
 
void setRepresentation (pqDataRepresentation *repr)
 Set the active representation. More...
 

Public Member Functions

 pqEditScalarBarReaction (QAction *parent=nullptr, bool track_active_objects=true)
 
 ~pqEditScalarBarReaction () override
 
- Public Member Functions inherited from pqReaction
 pqReaction (QAction *parent, Qt::ConnectionType type=Qt::AutoConnection)
 Constructor. More...
 
 ~pqReaction () override
 
QAction * parentAction () const
 Provides access to the parent action. More...
 

Protected Slots

void updateEnableState () override
 Updates the enabled state. More...
 
void onTriggered () override
 Called when the action is triggered. More...
 
- Protected Slots inherited from pqReaction
virtual void onTriggered ()
 Called when the action is triggered. More...
 
virtual void updateEnableState ()
 
virtual void updateMasterEnableState (bool)
 

Additional Inherited Members

- Protected Attributes inherited from pqReaction
bool IsMaster
 

Detailed Description

Reaction to allow editing of scalar bar properties using a pqProxyWidgetDialog.

Reaction allows editing of scalar bar properties using a pqProxyWidgetDialog. Internally, it uses pqScalarBarVisibilityReaction to track the visibility state for the scalar to enable/disable the parent action.

Definition at line 24 of file pqEditScalarBarReaction.h.

Constructor & Destructor Documentation

◆ pqEditScalarBarReaction()

pqEditScalarBarReaction::pqEditScalarBarReaction ( QAction *  parent = nullptr,
bool  track_active_objects = true 
)

◆ ~pqEditScalarBarReaction()

pqEditScalarBarReaction::~pqEditScalarBarReaction ( )
override

Member Function Documentation

◆ setRepresentation [1/2]

void pqEditScalarBarReaction::setRepresentation ( pqDataRepresentation ,
int  selectedPropertiesType 
)
slot

Set the active representation.

This should only be used when track_active_objects is false. If used when track_active_objects is true, the representation will get replaced whenever the active representation changes.

◆ setRepresentation [2/2]

void pqEditScalarBarReaction::setRepresentation ( pqDataRepresentation repr)
inlineslot

Set the active representation.

This should only be used when track_active_objects is false. If used when track_active_objects is true, the representation will get replaced whenever the active representation changes.

Definition at line 42 of file pqEditScalarBarReaction.h.

◆ setScalarBarVisibilityReaction

void pqEditScalarBarReaction::setScalarBarVisibilityReaction ( pqScalarBarVisibilityReaction reaction)
slot

Set Scalar Bar Visibility Reaction.

◆ editScalarBar

bool pqEditScalarBarReaction::editScalarBar ( )
slot

Show the editor dialog for editing scalar bar properties.

◆ updateEnableState

void pqEditScalarBarReaction::updateEnableState ( )
overrideprotectedslot

Updates the enabled state.

Applications need not explicitly call this.

◆ onTriggered

void pqEditScalarBarReaction::onTriggered ( )
overrideprotectedslot

Called when the action is triggered.


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