OSB_GUI::Popup Class Reference

Inheritance diagram for OSB_GUI::Popup:

Inheritance graph
[legend]
Collaboration diagram for OSB_GUI::Popup:

Collaboration graph
[legend]
List of all members.

Detailed Description

General purpose pop-up widget.

Definition at line 61 of file osbpopup.h.

Signals

Public Member Functions

Protected Member Functions

Private Attributes


Constructor & Destructor Documentation

OSB_GUI::Popup::Popup ( QWidget parent,
const char *  name,
WFlags  flags = Qt::WType_Popup 
) [explicit]

Constructor with Qt arguments.

Note:
flags must contain Qt::WType_Popup for popup() to work.

virtual OSB_GUI::Popup::~Popup (  )  [pure virtual]

Empty virtual destructor.


Member Function Documentation

virtual void OSB_GUI::Popup::closeEvent ( QCloseEvent *  event  )  [protected, virtual]

Handle close events: signals sigClosed().

bool OSB_GUI::Popup::keyClosed (  )  const

Flag if the widget from keyPressEvent().

virtual void OSB_GUI::Popup::keyPressEvent ( QKeyEvent *  event  )  [protected, virtual]

Handle pressed keys.

Closes the widget for Tab or Shift-Tab or Esc.
For the latter result_ is set to false.

void OSB_GUI::Popup::popup ( QWidget served,
const QPoint &  pos 
)

Show the widget as pop-up.

Parameters:
served Widget requesting the pop-up.
pos Popup position (upper left).

void OSB_GUI::Popup::popup ( QWidget served  ) 

Show the widget as pop-up.

Parameters:
served Widget requesting the pop-up.

QWidget* OSB_GUI::Popup::prevServed (  )  const

The widget served during previous popup().

void OSB_GUI::Popup::resetPrevServed (  ) 

Reset prevServed_ to 0.

bool OSB_GUI::Popup::result (  )  const

Get the popup result.

Returns:
false if the escape key was pressed, else true.

void OSB_GUI::Popup::sigClosed ( bool  result  )  [signal]

Signal sent if widget is closed.

Parameters:
result false if the popup was escaped, else true.


Member Data Documentation

bool OSB_GUI::Popup::keyClosed_ [private]

Flag if closed from keyPressEvent().

If false the widget was closed by a mouse event. However the class does not handle mouse events, so there is a chance that other reasons exist, but AFAIKS these should not be relevant.

Definition at line 139 of file osbpopup.h.

QWidget* OSB_GUI::Popup::prevServed_ [private]

The widget served during previous popup().

Definition at line 130 of file osbpopup.h.

bool OSB_GUI::Popup::result_ [private]

Result indicator.

Definition at line 126 of file osbpopup.h.

QWidget* OSB_GUI::Popup::served_ [private]

The widget served during popup().

Definition at line 128 of file osbpopup.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:18:57 2006 for OSB Library by  doxygen 1.4.7