OSB_GUI::SelectCp Class Reference

Inheritance diagram for OSB_GUI::SelectCp:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Popup widget to select a connection point.

Definition at line 132 of file cputils.h.

Signals

Public Member Functions

Wrappers to the connection point listview:

Private Member Functions

Private Attributes


Constructor & Destructor Documentation

OSB_GUI::SelectCp::SelectCp ( QWidget parent,
const char *  name = "selectCp_",
WFlags  flags = 0 
) [explicit]

Constructor with Qt arguments.

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


Member Function Documentation

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

Handle close events: signals sigClosed().

OSB_LIB::Id<OSB_LIB::ConnectionPt> OSB_GUI::SelectCp::cpId (  )  const

Object id of selected CP, it might not be set.

const std::string OSB_GUI::SelectCp::cpName (  )  const

Get name of connection point.

void OSB_GUI::SelectCp::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::SelectCp::populate (  ) 

Populate the listview.

Uses OSB_LIB::CpTree from the tariff catalogue to populate the listview with the root connection points.

void OSB_GUI::SelectCp::popup (  ) 

Show the widget as popup.

Note:
The widget must have been created with the flag Qt::WType_Popup.

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

Handle changes in size.

Sets the width of lv_ to own width.

bool OSB_GUI::SelectCp::result (  )  const

Get the popup result.

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

void OSB_GUI::SelectCp::setCpId ( const OSB_LIB::Id< OSB_LIB::ConnectionPt > &  cpId  ) 

Set the selected CP.

Parameters:
cpId Connection point to select. If not set, the selection is cleared.

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

Signal sent if widget is closed.

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


Member Data Documentation

LvCpSelect* OSB_GUI::SelectCp::lv_ [private]

The connection point list view.

Definition at line 208 of file cputils.h.

bool OSB_GUI::SelectCp::result_ [private]

Result indicator.

Definition at line 210 of file cputils.h.


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