pqFileListPropertyWidget.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 #ifndef pqFileListPropertyWidget_h
5 #define pqFileListPropertyWidget_h
6 
7 #include "pqApplicationComponentsModule.h" // for exports
8 #include "pqPropertyWidget.h"
9 
10 #include <memory> // for std::unique_ptr
11 
44 {
45  Q_OBJECT
47  Q_PROPERTY(QStringList fileNames READ fileNames WRITE setFileNames NOTIFY fileNamesChanged);
48 
49 public:
50  explicit pqFileListPropertyWidget(
51  vtkSMProxy* smproxy, vtkSMProperty* smproperty, QWidget* parent = nullptr);
52  ~pqFileListPropertyWidget() override;
53 
55 
58  const QStringList& fileNames() const;
59  void setFileNames(const QStringList& filenames);
61 
62 Q_SIGNALS:
66  void fileNamesChanged();
67 
68 private:
69  Q_DISABLE_COPY(pqFileListPropertyWidget);
70  class pqInternals;
71  std::unique_ptr<pqInternals> Internals;
72  mutable QStringList FileNamesCache;
73 };
74 
75 #endif
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
#define PQAPPLICATIONCOMPONENTS_EXPORT
superclass for all SM properties
list widget for file selection
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140