pqShaderReplacementsComboBox.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 pqShaderReplacementsComboBox_h
5 #define pqShaderReplacementsComboBox_h
6 
7 #include "pqComponentsModule.h"
8 #include <QComboBox>
9 
15 {
16  Q_OBJECT
17  typedef QComboBox Superclass;
18 
19 public:
20  pqShaderReplacementsComboBox(QWidget* parent = nullptr);
21  ~pqShaderReplacementsComboBox() override = default;
22 
27  int getPathIndex(const QString& presetPath) const;
28 
32  void setPath(const QString& presetPath);
33 
38  void populate();
39 
43  static const char* ShaderReplacementPathsSettings;
44 
45 protected:
46  void showPopup() override;
47 
48 private:
49  Q_DISABLE_COPY(pqShaderReplacementsComboBox)
50 };
51 
52 #endif
#define PQCOMPONENTS_EXPORT
static const char * ShaderReplacementPathsSettings
Setting name of the variable that stores the paths of the presets.
This is a ComboBox that is used on the display tab to select available ShaderReplacements presets pat...