pqSaveDataReaction.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 pqSaveDataReaction_h
5 #define pqSaveDataReaction_h
6 
7 #include "pqReaction.h"
8 
9 class pqPipelineSource;
11 
17 {
18  Q_OBJECT
19  typedef pqReaction Superclass;
20 
21 public:
25  pqSaveDataReaction(QAction* parent);
26 
34  static bool saveActiveData(const QString& files);
35  static bool saveActiveData();
36 
37 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
41  void updateEnableState() override;
45  void dataUpdated(pqPipelineSource* source);
46 
47 protected:
52 
53 private:
54  Q_DISABLE_COPY(pqSaveDataReaction)
55 
56  static QString defaultExtension(vtkPVDataInformation* info);
57  static void setDefaultExtension(vtkPVDataInformation* info, const QString& ext);
58 };
59 
60 #endif
provides meta data about a vtkDataObject subclass.
virtual void updateEnableState()
Definition: pqReaction.h:48
info
#define PQAPPLICATIONCOMPONENTS_EXPORT
This is a superclass just to make it easier to collect all such reactions.
Definition: pqReaction.h:25
Reaction to save data files.
source
PQ representation for a vtkSMProxy that can be involved in a pipeline.
static bool saveActiveData()
void onTriggered() override
Called when the action is triggered.