Definition at line 216 of file cputils.h.
OSB_GUI::LeConnectionPt::LeConnectionPt | ( | QWidget * | parent, | |
const char * | name = "leCp_" | |||
) | [explicit] |
Constructor with Qt arguments.
Set editable_ to true.
void OSB_GUI::LeConnectionPt::clear | ( | ) |
Clear the connection point.
const OSB_LIB::Id<OSB_LIB::ConnectionPt>& OSB_GUI::LeConnectionPt::cpId | ( | ) | const |
Get the selected connection point.
bool OSB_GUI::LeConnectionPt::editable | ( | ) | const |
Flag if the connection point can be changed.
void OSB_GUI::LeConnectionPt::focusInEvent | ( | QFocusEvent * | event | ) | [private] |
Select the whole text when receiving the focus.
void OSB_GUI::LeConnectionPt::keyPressEvent | ( | QKeyEvent * | event | ) | [private] |
Call selectCp() if a key is pressed.
void OSB_GUI::LeConnectionPt::mousePressEvent | ( | QMouseEvent * | event | ) | [private] |
Call selectCp() if the left mouse button is pressed.
void OSB_GUI::LeConnectionPt::resizeEvent | ( | QResizeEvent * | event | ) | [private] |
Handle changes in size.
Sets the width of selectCp_ to own width.
void OSB_GUI::LeConnectionPt::selectCp | ( | ) | [private, slot] |
Popup the CP selection.
void OSB_GUI::LeConnectionPt::selectCpClosed | ( | bool | result | ) | [private, slot] |
Get connection point from CP selection.
void OSB_GUI::LeConnectionPt::setEditable | ( | bool | on | ) |
Set if connection point can be changed or not.
void OSB_GUI::LeConnectionPt::setText | ( | const OSB_LIB::ConnectionPt & | cp | ) |
Set the connection point.
bool OSB_GUI::LeConnectionPt::editable_ [private] |
SelectCp* OSB_GUI::LeConnectionPt::selectCp_ [private] |