32 #ifndef _pqPropertyWidget_h 33 #define _pqPropertyWidget_h 35 #include "pqComponentsModule.h" 40 #include <QScopedPointer> 55 typedef QWidget Superclass;
68 virtual void select() {this->Selected =
true;}
69 virtual void deselect() {this->Selected =
false;}
78 {Q_UNUSED(showing_advanced_properties);}
81 vtkSMProxy* proxy()
const;
82 vtkSMProperty* property()
const;
83 using Superclass::property;
87 virtual char* panelVisibility()
const;
88 virtual void setPanelVisibility(
const char* vis);
90 bool showLabel()
const;
106 return QString(object->GetXMLName());
110 const QList<QPointer<pqPropertyWidgetDecorator> >&
decorators()
const 112 return this->Decorators;
117 using Superclass::setProperty;
120 static QString getTooltip(vtkSMProperty* property);
124 void viewChanged(
pqView *view);
128 void changeAvailable();
132 void changeFinished();
136 void restartRequired();
140 virtual void setView(
pqView*);
143 void addPropertyLink(QObject *qobject,
144 const char *qproperty,
146 vtkSMProperty *smproperty,
148 void addPropertyLink(QObject *qobject,
149 const char *qproperty,
152 vtkSMProperty *smproperty,
154 void removePropertyLink(QObject *qobject,
155 const char *qproperty,
157 vtkSMProperty *smproperty,
159 void removePropertyLink(QObject *qobject,
160 const char *qproperty,
163 vtkSMProperty *smproperty,
165 void setShowLabel(
bool show);
174 { this->ChangeAvailableAsChangeFinished = status; }
183 {
return this->Links; }
186 void setProperty(vtkSMProperty *property);
195 void onChangeAvailable();
199 vtkSMProperty *Property;
200 QPointer<pqView> View;
201 QList<QPointer<pqPropertyWidgetDecorator> > Decorators;
205 bool ChangeAvailableAsChangeFinished;
208 const QScopedPointer<pqTimer> Timer;
213 void editingFinished();
216 #define PV_DEBUG_PANELS() pqDebug("PV_DEBUG_PANELS") 218 #endif // _pqPropertyWidget_h
This is a PQ abstraction of a generic view module.
pqPropertyLinks is used to connect vtkSMProperty and subclasses to properties on QObject instances...