pqBackgroundEditorWidget.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
3 
4 #ifndef pqBackgroundEditorWidget_h
5 #define pqBackgroundEditorWidget_h
6 
9 
10 class vtkSMProxy;
11 class vtkSMPropertyGroup;
12 
14 {
15 public:
17  QWidget* parentObject = nullptr, bool forEnvironment = false);
18  ~pqBackgroundEditorWidget() override;
19 
20  bool gradientBackground() const;
21  void setGradientBackground(bool gradientBackground);
22  bool imageBackground() const;
23  void setImageBackground(bool imageBackground);
24  bool skyboxBackground() const;
25  void setSkyboxBackground(bool skyboxBackground);
26  bool environmentLighting() const;
27  void setEnvironmentLighting(bool envLighting);
28 
29 Q_SIGNALS:
30  void gradientBackgroundChanged();
31  void imageBackgroundChanged();
32  void skyboxBackgroundChanged();
33  void environmentLightingChanged();
34 
35 protected Q_SLOTS:
36  void currentIndexChangedBackgroundType(int type);
37  void clickedRestoreDefaultColor();
38  void clickedRestoreDefaultColor2();
39 
40 private:
42 
43  void changeColor(const char* propertyName);
44  void fireGradientAndImageChanged(int oldType, int newType);
45 
46  Q_OBJECT
47  Q_PROPERTY(bool gradientBackground READ gradientBackground WRITE setGradientBackground)
48  Q_PROPERTY(bool imageBackground READ imageBackground WRITE setImageBackground)
49  Q_PROPERTY(bool skyboxBackground READ skyboxBackground WRITE setSkyboxBackground)
50  Q_PROPERTY(bool environmentLighting READ environmentLighting WRITE setEnvironmentLighting)
51 
52  class pqInternal;
53  pqInternal* Internal;
54 };
55 
56 #endif
type
pqPropertyGroupWidget is a (custom) widget created for a PropertyGroup.
#define PQAPPLICATIONCOMPONENTS_EXPORT
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140