pqFileDialogEventTranslator.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 
5 #ifndef pqFileDialogEventTranslator_h
6 #define pqFileDialogEventTranslator_h
7 
8 #include "pqCoreModule.h"
9 #include <QPointer>
10 #include <pqWidgetEventTranslator.h>
11 
12 class pqFileDialog;
13 
20 class PQCORE_EXPORT pqFileDialogEventTranslator : public pqWidgetEventTranslator
21 {
22  Q_OBJECT
23  typedef pqWidgetEventTranslator Superclass;
24 
25 public:
26  pqFileDialogEventTranslator(QObject* p = nullptr);
27 
28  using Superclass::translateEvent;
29  bool translateEvent(QObject* Object, QEvent* Event, bool& Error) override;
30 
31 private:
34 
35  QPointer<pqFileDialog> CurrentObject;
36 
37 private Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
38  void onFilesSelected(const QString&);
39  void onCancelled();
40 };
41 
42 #endif // !pqFileDialogEventTranslator_h
Translates low-level Qt events into high-level ParaView events that can be recorded as test cases...
Provides a standard file dialog "front-end" for the pqFileDialogModel "back-end", i...
Definition: pqFileDialog.h:61
#define PQCORE_EXPORT
Definition: pqCoreModule.h:15