pqMainWindowEventManager is a manager for marshalling a main window's events to pqReactions.
More...
#include <pqMainWindowEventManager.h>
Inherits QObject.
|
void | close (QCloseEvent *) |
| notification when a close event has been sent to the main window. More...
|
|
void | show (QShowEvent *) |
| notification when a show event has been sent to the main window. More...
|
|
void | dragEnter (QDragEnterEvent *) |
| notification when a drag enter event has been sent to the main window. More...
|
|
void | drop (QDropEvent *) |
| notification when a drop event has been sent to the main window. More...
|
|
pqMainWindowEventManager is a manager for marshalling a main window's events to pqReactions.
ParaView and ParaView-derived applications have their own main window class that inherits from QMainWindow. The standard Qt approach to intercepting signals to the main window (e.g. "close application") is to reimplement QMainWindow's event methods (e.g. closeEvent(QCloseEvent*)). This polymorphic solution is not available to ParaView-derived applications comprised of plugins, however. To facilitate a plugin's ability to influence the behavior of ParaView's main window, pqMainWindowEventManager is a registered manager that emits signals when the main window receives events.
Definition at line 29 of file pqMainWindowEventManager.h.
◆ pqMainWindowEventManager()
pqMainWindowEventManager::pqMainWindowEventManager |
( |
QObject * |
p = nullptr | ) |
|
◆ ~pqMainWindowEventManager()
pqMainWindowEventManager::~pqMainWindowEventManager |
( |
| ) |
|
|
override |
◆ closeEvent()
void pqMainWindowEventManager::closeEvent |
( |
QCloseEvent * |
| ) |
|
notify when a close event has been sent to the main window.
◆ showEvent()
void pqMainWindowEventManager::showEvent |
( |
QShowEvent * |
| ) |
|
notify when a show event has been sent to the main window.
◆ dragEnterEvent()
void pqMainWindowEventManager::dragEnterEvent |
( |
QDragEnterEvent * |
| ) |
|
notify when a drag enter event has been sent to the main window.
◆ dropEvent()
void pqMainWindowEventManager::dropEvent |
( |
QDropEvent * |
| ) |
|
notify when a drop event has been sent to the main window.
◆ closing()
bool pqMainWindowEventManager::closing |
( |
| ) |
|
|
inline |
◆ close
void pqMainWindowEventManager::close |
( |
QCloseEvent * |
| ) |
|
|
signal |
notification when a close event has been sent to the main window.
◆ show
void pqMainWindowEventManager::show |
( |
QShowEvent * |
| ) |
|
|
signal |
notification when a show event has been sent to the main window.
◆ dragEnter
void pqMainWindowEventManager::dragEnter |
( |
QDragEnterEvent * |
| ) |
|
|
signal |
notification when a drag enter event has been sent to the main window.
◆ drop
void pqMainWindowEventManager::drop |
( |
QDropEvent * |
| ) |
|
|
signal |
notification when a drop event has been sent to the main window.
The documentation for this class was generated from the following file: