Signals | Public Member Functions | List of all members
pqMainWindowEventManager Class Reference

pqMainWindowEventManager is a manager for marshalling a main window's events to pqReactions. More...

#include <pqMainWindowEventManager.h>

Inherits QObject.

Signals

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...
 

Public Member Functions

 pqMainWindowEventManager (QObject *p=0)
 
 ~pqMainWindowEventManager () override
 
void closeEvent (QCloseEvent *)
 notify when a close event has been sent to the main window. More...
 
void showEvent (QShowEvent *)
 notify when a show event has been sent to the main window. More...
 
void dragEnterEvent (QDragEnterEvent *)
 notify when a drag enter event has been sent to the main window. More...
 
void dropEvent (QDropEvent *)
 notify when a drop event has been sent to the main window. More...
 

Detailed Description

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 57 of file pqMainWindowEventManager.h.

Constructor & Destructor Documentation

◆ pqMainWindowEventManager()

pqMainWindowEventManager::pqMainWindowEventManager ( QObject *  p = 0)

◆ ~pqMainWindowEventManager()

pqMainWindowEventManager::~pqMainWindowEventManager ( )
override

Member Function Documentation

◆ 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.

◆ 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: