OSB_GUI::SelectSe Class Reference

Inheritance diagram for OSB_GUI::SelectSe:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Pop-up widget to select a service element.

Definition at line 151 of file serviceutils.h.

Signals

Public Member Functions

Wrappers to the service element listview:

Private Member Functions

Private Attributes


Constructor & Destructor Documentation

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

Constructor with Qt arguments.

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


Member Function Documentation

void OSB_GUI::SelectSe::closeEvent ( QCloseEvent *  event  )  [private]

Handle close events: signals sigClosed().

bool OSB_GUI::SelectSe::keyClosed (  )  const

Flag if the widget from keyPressEvent().

void OSB_GUI::SelectSe::keyPressEvent ( QKeyEvent *  event  )  [private]

Handle pressed keys.

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

void OSB_GUI::SelectSe::populate (  ) 

Populate the listview.

void OSB_GUI::SelectSe::popup ( QWidget served,
const OSB_LIB::ServiceElement::Oid seId 
)

Show the widget as pop-up.

Parameters:
served Widget requesting the pop-up.
seId Service element to select initially.

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

The widget served during previous popup().

void OSB_GUI::SelectSe::resetPrevServed (  ) 

Reset prevServed_ to 0.

void OSB_GUI::SelectSe::resizeEvent ( QResizeEvent *  event  )  [private]

Handle changes in size.

Sets the width of lv_ to own width.

bool OSB_GUI::SelectSe::result (  )  const

Get the popup result.

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

const OSB_LIB::ServiceElement OSB_GUI::SelectSe::se (  )  const

Get the service element.

Returns:
The selected service element, its object id is not set if nothing was selected.

void OSB_GUI::SelectSe::setSeId ( const OSB_LIB::ServiceElement::Oid seId  ) 

Set the selected service element.

Parameters:
seId Service element to select.
Todo:
ToDo: If not set, the selection is cleared.

void OSB_GUI::SelectSe::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::SelectSe::keyClosed_ [private]

Flag if the widget 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 246 of file serviceutils.h.

LvServiceTree* OSB_GUI::SelectSe::lv_ [private]

The service element listview.

Definition at line 248 of file serviceutils.h.

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

The widget served during previous popup().

Definition at line 237 of file serviceutils.h.

bool OSB_GUI::SelectSe::result_ [private]

Result indicator.

Definition at line 235 of file serviceutils.h.

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

The widget served during popup().

Definition at line 250 of file serviceutils.h.


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