4 #ifndef pqProxyWidget_h 5 #define pqProxyWidget_h 7 #include "pqComponentsModule.h" 33 typedef QWidget Superclass;
37 std::initializer_list<QString> defaultLabels, std::initializer_list<QString> advancedLabels,
38 bool showHeadersFooters =
true, QWidget* parent =
nullptr,
39 Qt::WindowFlags flags = Qt::WindowFlags{});
42 std::initializer_list<QString> advancedLabels, QWidget* parent =
nullptr,
43 Qt::WindowFlags flags = Qt::WindowFlags{});
46 QWidget* parent =
nullptr, Qt::WindowFlags flags = Qt::WindowFlags{});
52 ~pqProxyWidget()
override;
64 void setApplyChangesImmediately(
bool value);
81 static QWidget* newGroupLabelWidget(
82 const QString& label, QWidget* parentWidget,
const QList<QWidget*>& buttons);
83 static QWidget* newGroupLabelWidget(
const QString& label, QWidget* parentWidget,
84 pqLabel** titleLabel =
nullptr, QToolButton** collapseButton =
nullptr);
92 static bool useDocumentationForLabels(
vtkSMProxy* proxy);
106 static QString documentationText(
146 void changeAvailable();
152 void changeFinished();
158 void restartRequired();
167 bool filterWidgets(
bool show_advanced =
false,
const QString& filterText = QString());
173 void showLinkedInteractiveWidget(
int portIndex,
bool show,
bool changeFocus);
178 virtual void apply()
const;
200 virtual bool restoreDefaults();
205 void saveAsDefaults()
const;
214 void showEvent(QShowEvent* event)
override;
215 void hideEvent(QHideEvent* event)
override;
217 void applyInternal()
const;
224 virtual void onChangeFinished();
230 void createWidgets(
const QStringList& properties = QStringList());
235 void createPropertyWidgets(
const QStringList& properties = QStringList());
240 void create3DWidgets();
246 bool shouldPreservePropertyValues()
const;
253 bool resetProperty(
vtkSMProperty* prop,
double settingsPriority,
bool warn);
265 Q_DISABLE_COPY(pqProxyWidget);
267 QSet<QString> DefaultVisibilityLabels;
268 QSet<QString> AdvancedVisibilityLabels;
269 bool ApplyChangesImmediately;
270 bool UseDocumentationForLabels;
271 bool ShowHeadersFooters =
false;
273 pqInternals* Internals;
pqLabel is a subclass of QLabel that emits a clicked() signal when the label text is clicked...
superclass for all SM properties
This is a PQ abstraction of a generic view module.
proxy for a VTK object(s) on a server