Gui::CustomMessageEvent Class Reference

The CustomMessageEvent class is used to send messages as events in the methods Error(), Warning() and Message() of the StatusBarObserver class to the main window to display them on the status bar instead of printing them directly to the status bar. More...

List of all members.

Public Types

enum  Type { Msg, Wrn, Err, Log }

Public Member Functions

 CustomMessageEvent (Type t, const QString &s)
const QString & message () const
Type type () const
 ~CustomMessageEvent ()

Detailed Description

The CustomMessageEvent class is used to send messages as events in the methods Error(), Warning() and Message() of the StatusBarObserver class to the main window to display them on the status bar instead of printing them directly to the status bar.

This makes the usage of StatusBarObserver thread-safe.

Author:
Werner Mayer

Definition at line 1491 of file MainWindow.cpp.


Member Enumeration Documentation

Enumerator:
Msg 
Wrn 
Err 
Log 

Definition at line 1494 of file MainWindow.cpp.


Constructor & Destructor Documentation

Gui::CustomMessageEvent::CustomMessageEvent ( Type  t,
const QString &  s 
) [inline]

Definition at line 1495 of file MainWindow.cpp.

Gui::CustomMessageEvent::~CustomMessageEvent (  )  [inline]

Definition at line 1498 of file MainWindow.cpp.


Member Function Documentation

const QString& Gui::CustomMessageEvent::message (  )  const [inline]

Definition at line 1502 of file MainWindow.cpp.

References draftTools::msg().

Referenced by Gui::MainWindow::customEvent().

Type Gui::CustomMessageEvent::type (  )  const [inline]

Definition at line 1500 of file MainWindow.cpp.

Referenced by Gui::MainWindow::customEvent().


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

Generated on Wed Nov 23 19:01:59 2011 for FreeCAD by  doxygen 1.6.1