![]() |
VR-Forces 4.0.4 Class Documentation
|
The main widget for the HumbleDialogPage. More...

Public Slots | |
| void | slot_onReturnPressed () |
| Called when the user presses the Return or Enter key while changing text in the QLineEdit widget. | |
Public Member Functions | |
| HumbleDialogWidget (QWidget *parent=0, Qt::WindowFlags f=Qt::Widget) | |
| CTOR. | |
| virtual | ~HumbleDialogWidget () |
| Virtual DTOR. | |
| virtual void | setText (const std::string &text) |
| Sets the text in the QLineEdit widget. | |
Private Attributes | |
| QLineEdit * | myTextBox |
The main widget for the HumbleDialogPage.
This class does not contain any application logic, but instead delegates the logic to another object (a logic-object) through signals emitted via the interface of this class. The interface allows the widget or logic to be independently re-factored without affecting the other. This widget contains a single QLineEdit widget and a QLabel. When the user writes text into the QLineEdit and then presses the Return or Enter key, a boost signal_processText signal is emitted passing the text to the logic-object.
| HumbleDialogWidget::HumbleDialogWidget | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = Qt::Widget |
||
| ) |
CTOR.
| virtual HumbleDialogWidget::~HumbleDialogWidget | ( | ) | [virtual] |
Virtual DTOR.
| virtual void HumbleDialogWidget::setText | ( | const std::string & | text | ) | [virtual] |
Sets the text in the QLineEdit widget.
Calling this function does not cause any signals to be emitted.
Implements HumbleDialogWidgetInterface.
| void HumbleDialogWidget::slot_onReturnPressed | ( | ) | [slot] |
QLineEdit* HumbleDialogWidget::myTextBox [private] |