pqColorButtonEventPlayer.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 pqColorButtonEventPlayer_h
5 #define pqColorButtonEventPlayer_h
6 
7 #include "pqWidgetEventPlayer.h"
8 #include "pqWidgetsModule.h" // needed for EXPORT macro.
9 
13 class PQWIDGETS_EXPORT pqColorButtonEventPlayer : public pqWidgetEventPlayer
14 {
15  Q_OBJECT
16  typedef pqWidgetEventPlayer Superclass;
17 
18 public:
19  pqColorButtonEventPlayer(QObject* parent = nullptr);
20  ~pqColorButtonEventPlayer() override;
21 
22  using Superclass::playEvent;
23  bool playEvent(
24  QObject* object, const QString& command, const QString& arguments, bool& error) override;
25 
26  static const QString& EVENT_NAME();
27 
28 private:
29  Q_DISABLE_COPY(pqColorButtonEventPlayer)
30 };
31 
32 #endif
#define PQWIDGETS_EXPORT
pqColorButtonEventPlayer is the player for pqColorChooserButton.