pqLoadPaletteReaction.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 pqLoadPaletteReaction_h
5 #define pqLoadPaletteReaction_h
6 
7 #include "pqReaction.h"
8 #include <QPointer>
9 
10 class QMenu;
11 
19 {
20  Q_OBJECT
21  typedef pqReaction Superclass;
22 
23 public:
24  pqLoadPaletteReaction(QAction* parent = nullptr);
25  ~pqLoadPaletteReaction() override;
26 
27 protected:
28  void updateEnableState() override;
29 
30 private Q_SLOTS:
31  void populateMenu();
32  void actionTriggered(QAction* actn);
33 
34 private: // NOLINT(readability-redundant-access-specifiers)
35  Q_DISABLE_COPY(pqLoadPaletteReaction)
36  QPointer<QMenu> Menu;
37 };
38 
39 #endif
virtual void updateEnableState()
Definition: pqReaction.h:48
#define PQAPPLICATIONCOMPONENTS_EXPORT
This is a superclass just to make it easier to collect all such reactions.
Definition: pqReaction.h:25
pqLoadPaletteReaction is used to setup an action that allows the user to load a palette.