4 #ifndef pqProxyWidget_h
5 #define pqProxyWidget_h
7 #include "pqComponentsModule.h"
34 typedef QWidget Superclass;
38 std::initializer_list<QString> defaultLabels, std::initializer_list<QString> advancedLabels,
39 bool showHeadersFooters =
true, QWidget* parent =
nullptr,
40 Qt::WindowFlags flags = Qt::WindowFlags{});
43 std::initializer_list<QString> advancedLabels, QWidget* parent =
nullptr,
44 Qt::WindowFlags flags = Qt::WindowFlags{});
47 QWidget* parent =
nullptr, Qt::WindowFlags flags = Qt::WindowFlags{});
65 void setApplyChangesImmediately(
bool value);
81 static QWidget* newGroupLabelWidget(
const QString& label, QWidget* parentWidget,
82 const QList<QWidget*>& buttons = QList<QWidget*>());
89 static bool useDocumentationForLabels(
vtkSMProxy* proxy);
103 static QString documentationText(
104 vtkSMProperty* property, DocumentationType type = USE_DESCRIPTION);
110 static QString documentationText(
vtkSMProxy* property, DocumentationType type = USE_DESCRIPTION);
117 static DocumentationType showProxyDocumentationInPanel(
vtkSMProxy* proxy);
143 void changeAvailable();
149 void changeFinished();
155 void restartRequired();
164 bool filterWidgets(
bool show_advanced =
false,
const QString& filterText = QString());
170 void showLinkedInteractiveWidget(
int portIndex,
bool show,
bool changeFocus);
197 virtual bool restoreDefaults();
202 void saveAsDefaults();
211 void showEvent(QShowEvent* event)
override;
212 void hideEvent(QHideEvent* event)
override;
219 void onChangeFinished();
225 void createWidgets(
const QStringList& properties = QStringList());
230 void createPropertyWidgets(
const QStringList& properties = QStringList());
235 void create3DWidgets();
239 QSet<QString> DefaultVisibilityLabels;
240 QSet<QString> AdvancedVisibilityLabels;
241 bool ApplyChangesImmediately;
242 bool UseDocumentationForLabels;
243 bool ShowHeadersFooters =
false;
245 pqInternals* Internals;