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

Manages links between Qt properties and unchecked proxy properties This is useful if more than one QWidget exposes a single proxy property In which case the server manager will not keep the widgets synchronized Also provides a mechanims for accepting or rejecting changes for unchecked properties. More...

#include <pqPropertyManager.h>

Inherits QObject.

Collaboration diagram for pqPropertyManager:
Collaboration graph
[legend]

Public Slots

void accept ()
 accept property changes by pushing them all down to the server manager More...
 
void reject ()
 reject property changes and revert all QObject properties More...
 
void propertyChanged ()
 Called whenever a property changes from the GUI side. More...
 

Signals

void modified ()
 Signal emitted when there are possible properties to send down to the server manager. More...
 
void aboutToAccept ()
 Signal emitted when the user has accepted changes. More...
 
void accepted ()
 
void rejected ()
 Signal emitted when the user has rejected changes. More...
 

Public Member Functions

 pqPropertyManager (QObject *p=0)
 constructor More...
 
 ~pqPropertyManager () override
 destructor More...
 
void registerLink (QObject *qObject, const char *qProperty, const char *signal, vtkSMProxy *Proxy, vtkSMProperty *Property, int Index=-1)
 register a QObject property to link with the server manager More...
 
void unregisterLink (QObject *qObject, const char *qProperty, const char *signal, vtkSMProxy *Proxy, vtkSMProperty *Property, int Index=-1)
 unregister a QObject property to link with the server manager More...
 
bool isModified () const
 returns whether there are modified properties to send to the server manager More...
 
void removeAllLinks ()
 

Protected Attributes

pqPropertyLinksLinks
 
bool Modified
 

Detailed Description

Manages links between Qt properties and unchecked proxy properties This is useful if more than one QWidget exposes a single proxy property In which case the server manager will not keep the widgets synchronized Also provides a mechanims for accepting or rejecting changes for unchecked properties.

Definition at line 52 of file pqPropertyManager.h.

Constructor & Destructor Documentation

◆ pqPropertyManager()

pqPropertyManager::pqPropertyManager ( QObject *  p = 0)

constructor

◆ ~pqPropertyManager()

pqPropertyManager::~pqPropertyManager ( )
override

destructor

Member Function Documentation

◆ registerLink()

void pqPropertyManager::registerLink ( QObject *  qObject,
const char *  qProperty,
const char *  signal,
vtkSMProxy Proxy,
vtkSMProperty Property,
int  Index = -1 
)

register a QObject property to link with the server manager

◆ unregisterLink()

void pqPropertyManager::unregisterLink ( QObject *  qObject,
const char *  qProperty,
const char *  signal,
vtkSMProxy Proxy,
vtkSMProperty Property,
int  Index = -1 
)

unregister a QObject property to link with the server manager

◆ isModified()

bool pqPropertyManager::isModified ( ) const

returns whether there are modified properties to send to the server manager

◆ removeAllLinks()

void pqPropertyManager::removeAllLinks ( )

◆ modified

void pqPropertyManager::modified ( )
signal

Signal emitted when there are possible properties to send down to the server manager.

◆ aboutToAccept

void pqPropertyManager::aboutToAccept ( )
signal

Signal emitted when the user has accepted changes.

◆ accepted

void pqPropertyManager::accepted ( )
signal

◆ rejected

void pqPropertyManager::rejected ( )
signal

Signal emitted when the user has rejected changes.

◆ accept

void pqPropertyManager::accept ( )
slot

accept property changes by pushing them all down to the server manager

◆ reject

void pqPropertyManager::reject ( )
slot

reject property changes and revert all QObject properties

◆ propertyChanged

void pqPropertyManager::propertyChanged ( )
slot

Called whenever a property changes from the GUI side.

Member Data Documentation

◆ Links

pqPropertyLinks* pqPropertyManager::Links
protected

Definition at line 120 of file pqPropertyManager.h.

◆ Modified

bool pqPropertyManager::Modified
protected

Definition at line 121 of file pqPropertyManager.h.


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