pqMainWindowEventManager.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 pqMainWindowEventManager_h
6 #define pqMainWindowEventManager_h
7 
8 #include "pqCoreModule.h"
9 #include <QObject>
10 
11 class QCloseEvent;
12 class QDragEnterEvent;
13 class QShowEvent;
14 class QDropEvent;
15 
30 {
31  Q_OBJECT
32  typedef QObject Superclass;
33 
34 public:
35  pqMainWindowEventManager(QObject* p = nullptr);
36  ~pqMainWindowEventManager() override;
37 
41  void closeEvent(QCloseEvent*);
42 
46  void showEvent(QShowEvent*);
47 
51  void dragEnterEvent(QDragEnterEvent*);
52 
56  void dropEvent(QDropEvent*);
57 
58  bool closing() { return this->Closing; }
59 
60 Q_SIGNALS:
64  void close(QCloseEvent*);
65 
69  void show(QShowEvent*);
70 
74  void dragEnter(QDragEnterEvent*);
75 
79  void drop(QDropEvent*);
80 
81 private:
82  bool Closing = false;
83 };
84 
85 #endif
pqMainWindowEventManager is a manager for marshalling a main window&#39;s events to pqReactions.
#define PQCORE_EXPORT
Definition: pqCoreModule.h:15