Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SALOME_EventFilter Class Reference

#include <SALOME_EventFilter.h>

Inheritance diagram for SALOME_EventFilter:
Inheritance graph

Static Public Member Functions

static void Init ()
 
static void Destroy ()
 

Protected Member Functions

 SALOME_EventFilter ()
 
virtual ~SALOME_EventFilter ()
 

Private Member Functions

virtual bool eventFilter (QObject *o, QEvent *e)
 
void processEvent (SALOME_Event *)
 

Static Private Attributes

static SALOME_EventFiltermyFilter = NULL
 

Detailed Description

Event filter class for QApplication object that handles custom events posted by SALOME_Event objects. It assumes that such custom events are alwys posted, not sent. This event filter can be installed by any application that intends to use SALOME_Event mechanism asynchronously. This class replaced SalomeApp_EventFilter.

Constructor & Destructor Documentation

SALOME_EventFilter::SALOME_EventFilter ( )
protected

Constructor.

SALOME_EventFilter::~SALOME_EventFilter ( )
protectedvirtual

Destructor.

Member Function Documentation

void SALOME_EventFilter::Destroy ( )
static

Destroy filter.

References myFilter.

bool SALOME_EventFilter::eventFilter ( QObject o,
QEvent e 
)
privatevirtual

global event filter for qapplication

Custom event filter

References processEvent(), and SALOME_EVENT.

void SALOME_EventFilter::Init ( )
static

Create new instance of SALOME_EventFilter

References myFilter, and SALOME_EventFilter().

void SALOME_EventFilter::processEvent ( SALOME_Event theEvent)
private

Process event.

References SALOME_Event::ExecutePostedEvent().

Member Data Documentation

SALOME_EventFilter * SALOME_EventFilter::myFilter = NULL
staticprivate

The documentation for this class was generated from the following files: