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 
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 Q_SLOTS:
37  void showWarningOnChange();
38 
39 private: // NOLINT(readability-redundant-access-specifiers)
40  Q_DISABLE_COPY(pqStringVectorPropertyWidget);
41 
42  bool widgetHintHasAttributeEqualTo(const std::string& attribute, const std::string& value);
43 
44  vtkPVXMLElement* WidgetHint = nullptr;
45  vtkPVXMLElement* WarnOnChangeHint = nullptr;
46  bool WarningTriggered = false;
47 };
48 
49 #endif // pqStringVectorPropertyWidget_h
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
#define PQCOMPONENTS_EXPORT
property representing a vector of strings
superclass for all SM properties
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
value
This is used by vtkPVXMLParser to represent an XML document starting at the root element.