pqStringVectorPropertyWidget.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 
5 #ifndef pqStringVectorPropertyWidget_h
6 #define pqStringVectorPropertyWidget_h
7 
8 #include "pqPropertyLinks.h"
9 #include "pqPropertyWidget.h"
10 
12 class PQCOMPONENTS_EXPORT pqStringVectorPropertyWidget : public pqPropertyWidget
13 {
14  Q_OBJECT
15 public:
17  vtkSMProperty* property, vtkSMProxy* proxy, QWidget* parent = nullptr);
18  ~pqStringVectorPropertyWidget() override;
19 
24  static pqPropertyWidget* createWidget(
25  vtkSMStringVectorProperty* smproperty, vtkSMProxy* smproxy, QWidget* parent = nullptr);
26 
30  static void processFileChooserHints(vtkPVXMLElement* hints, bool& directoryMode, bool& anyFile,
31  QString& filter, bool& browseLocalFileSystem);
32 
33 private:
34  Q_DISABLE_COPY(pqStringVectorPropertyWidget);
35 
36  bool widgetHintHasAttributeEqualTo(const std::string& attribute, const std::string& value);
37 
38  vtkPVXMLElement* WidgetHint = nullptr;
39 };
40 
41 #endif // pqStringVectorPropertyWidget_h
pqStringVectorPropertyWidget
Definition: pqStringVectorPropertyWidget.h:12
value
value
pqPropertyWidget
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
Definition: pqPropertyWidget.h:25
vtkSMProperty
superclass for all SM properties
Definition: vtkSMProperty.h:144
vtkSMProxy
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
pqPropertyWidget.h
vtkPVXMLElement
Definition: vtkPVXMLElement.h:23
vtkSMStringVectorProperty
property representing a vector of strings
Definition: vtkSMStringVectorProperty.h:29