32 #ifndef pqPropertyLinks_h 33 #define pqPropertyLinks_h 38 #include "pqCoreModule.h" 69 typedef QObject Superclass;
92 bool addPropertyLink(QObject* qobject,
const char* qproperty,
const char* qsignal,
95 return this->addPropertyLink<pqPropertyLinksConnection>(
96 qobject, qproperty, qsignal, smproxy, smproperty, smindex);
99 template <
class ConnectionType>
100 bool addPropertyLink(QObject* qobject,
const char* qproperty,
const char* qsignal,
102 ConnectionType* notused = NULL);
107 bool removePropertyLink(QObject* qobject,
const char* qproperty,
const char* qsignal,
138 void setUseUncheckedProperties(
bool val);
146 void qtWidgetChanged();
147 void smPropertyChanged();
154 void onQtPropertyModified();
155 void onSMPropertyModified();
164 pqInternals* Internals;
165 bool UseUncheckedProperties;
166 bool AutoUpdateVTKObjects;
170 template <
class ConnectionType>
174 if (!qobject || !qproperty || !qsignal || !smproxy || !smproperty)
176 qCritical() <<
"Invalid parameters to pqPropertyLinks::addPropertyLink";
177 qDebug() <<
"(" << qobject <<
", " << qproperty <<
", " << qsignal <<
") <==> (" 178 << (smproxy ? smproxy->
GetXMLName() :
"(none)") <<
"," 179 << (smproperty ? smproperty->
GetXMLLabel() :
"(none)") << smindex <<
")";
183 smproperty, smindex, this->useUncheckedProperties(),
this);
184 return this->addNewConnection(connection);
bool useUncheckedProperties() const
superclass for all SM properties
virtual char * GetXMLLabel()
The label assigned by the xml parser.
pqPropertyLinks is used to connect vtkSMProperty and subclasses to properties on QObject instances...
bool autoUpdateVTKObjects() const
proxy for a VTK object(s) on a server
void setAutoUpdateVTKObjects(bool val)
set whether UpdateVTKObjects is called automatically when needed
void removeAllPropertyLinks()
Remove all links.
pqPropertyLinksConnection is used by pqPropertyLinks to keep a QObject and vtkSMProperty linked toget...
bool addPropertyLink(QObject *qobject, const char *qproperty, const char *qsignal, vtkSMProxy *smproxy, vtkSMProperty *smproperty, int smindex=-1)
Setup a link between a Qt property and vtkSMProperty on a vtkSMProxy instance.
virtual char * GetXMLName()
Assigned by the XML parser.