pqTraceReaction.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 pqTraceReaction_h
5 #define pqTraceReaction_h
6 
7 #include "pqReaction.h"
8 
9 #include <QPointer> // for QPointer.
10 
12 
19 {
20  Q_OBJECT
21  typedef pqReaction Superclass;
22 
23 public:
24  pqTraceReaction(QAction* parent, QString start_trace_label = "Start Trace",
25  QString stop_trace_label = "Stop Trace");
26  ~pqTraceReaction() override;
27 
31  void start();
32 
36  void stop();
37 
38 protected:
42  void onTriggered() override;
43 
44 protected Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
45  virtual void updateTrace();
46 
47 private:
48  Q_DISABLE_COPY(pqTraceReaction)
49  QString StartTraceLabel;
50  QString StopTraceLabel;
51 
52  void editTrace(const QString& txt, bool incremental);
53 };
54 
55 #endif
Reaction for application python start/stop trace.
#define PQAPPLICATIONCOMPONENTS_EXPORT
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