OSB_GUI::LeCombo Class Reference

Inheritance diagram for OSB_GUI::LeCombo:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Line edit displaying a (shared) combo box if it has the focus.

If this line edit receives the focus it displays a combobox and hides the combobox if it loses the focus. This behaviour allows to share one single combobox amongst several line edits.

The widget should behave as normal line edit if it have no combobox assiged.

Definition at line 71 of file levaluecombo.h.

Public Member Functions

Protected Slots

Protected Member Functions

Private Slots

Private Member Functions

Private Attributes


Constructor & Destructor Documentation

OSB_GUI::LeCombo::LeCombo ( QWidget parent,
const char *  name = "leCombo_",
FocusOutCombo combo = 0 
) [explicit]

Constructor with Qt arguments and combobox to use.

virtual OSB_GUI::LeCombo::~LeCombo (  )  [virtual]

Empty virtual destructor.


Member Function Documentation

virtual void OSB_GUI::LeCombo::comboActivated ( int  index  )  [protected, virtual, slot]

Handle activation signals from the combobox.

Parameters:
index Position of the activated item in the combobox.
Remember: this slot is connected only if combo_ is currently a child of the widget.

Reimplemented in OSB_GUI::LeValueCombo< Value >.

void OSB_GUI::LeCombo::comboFocusOut ( QFocusEvent *  e  )  [private, slot]

Handle focus-out events from the combobox.

void OSB_GUI::LeCombo::focusInEvent ( QFocusEvent *  e  )  [private]

Handle focus-in events.

Sets combo_ as its own child, connects to its signals sigFocusOut() and activated() and calls setComboItem().

See also:
FocusOutCombo
Note:
This function has no effect if combo_ is 0.

virtual QSize OSB_GUI::LeCombo::minimumSizeHint (  )  const [private, virtual]

Minimum size: returns sizeHint().

void OSB_GUI::LeCombo::resizeEvent ( QResizeEvent *  e  )  [private]

Handle resize events.

Resizes combo_ if the widget is currently its parent.

void OSB_GUI::LeCombo::setCombo ( FocusOutCombo combo  ) 

Set the combo to use.

Referenced by OSB_GUI::LeValueCombo< Value >::setCombo().

virtual void OSB_GUI::LeCombo::setComboItem (  )  const [protected, virtual]

Set the current item of the combo box.

Called when the line edits gets the focus. The default implementation selects the item with the same text as the line edit; or, if no matching entry can be found, leaves the combobox unchanged.

Reimplemented in OSB_GUI::LeValueCombo< Value >.

virtual QSize OSB_GUI::LeCombo::sizeHint (  )  const [private, virtual]

Size hint: maximum of own and combobox size.


Member Data Documentation

FocusOutCombo* OSB_GUI::LeCombo::combo_ [private]

The combobox to use.

Reimplemented in OSB_GUI::LeValueCombo< Value >.

Definition at line 134 of file levaluecombo.h.

QWidget* OSB_GUI::LeCombo::nextFocus_ [private]

Widget that should receive the forward keyboard focus.

Definition at line 138 of file levaluecombo.h.

QWidget* OSB_GUI::LeCombo::prevFocus_ [private]

Widget that should receive the backward keyboard focus.

Definition at line 136 of file levaluecombo.h.


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