pqEditScalarBarReaction.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 pqEditScalarBarReaction_h
5 #define pqEditScalarBarReaction_h
6 
7 #include "pqReaction.h"
8 #include <QPointer>
9 
12 
24 {
25  Q_OBJECT
26  typedef pqReaction Superclass;
27 
28 public:
29  pqEditScalarBarReaction(QAction* parent = nullptr, bool track_active_objects = true);
30  ~pqEditScalarBarReaction() override;
31 
32 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
39  void setRepresentation(pqDataRepresentation*);
40 
44  bool editScalarBar();
45 
46 protected Q_SLOTS:
51  void updateEnableState() override;
52 
56  void onTriggered() override;
57 
58 private:
59  Q_DISABLE_COPY(pqEditScalarBarReaction)
60  QPointer<pqScalarBarVisibilityReaction> SBVReaction;
61 };
62 
63 #endif
pqDataRepresentation is the superclass for a display for a pqPipelineSource i.e.
Reaction to allow editing of scalar bar properties using a pqProxyWidgetDialog.
virtual void updateEnableState()
Definition: pqReaction.h:48
#define PQAPPLICATIONCOMPONENTS_EXPORT
Reaction to toggle scalar bar visibility.
This is a superclass just to make it easier to collect all such reactions.
Definition: pqReaction.h:25
virtual void onTriggered()
Called when the action is triggered.
Definition: pqReaction.h:46