VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Slots | Public Member Functions | Private Attributes
HumbleDialogWidget Class Reference

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.

Examples
Inheritance diagram for HumbleDialogWidget:
Inheritance graph
[legend]

Public Slots

void slot_onReturnPressed ()
 

Public Member Functions

 HumbleDialogWidget (QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
 
virtual ~HumbleDialogWidget ()
 
virtual void setText (const std::string &text)
 

Private Attributes

QLineEditmyTextBox
 

Additional Inherited Members

- Public Attributes inherited from HumbleDialogWidgetInterface
makVrv::vrvSignalsLib::signal
< void(const std::string &text)> 
signal_processText
 

Constructor & Destructor Documentation

HumbleDialogWidget::HumbleDialogWidget ( QWidget *  parent = 0,
Qt::WindowFlags  f = Qt::Widget 
)

CTOR.

virtual HumbleDialogWidget::~HumbleDialogWidget ( )
virtual

Virtual DTOR.

Member Function Documentation

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

Called when the user presses the Return or Enter key while changing text in the QLineEdit widget. This slot is connected to the Qt signal of the QLineEdit widget. When called, this slot sends a boost signal_processText signal passing the current text.

Member Data Documentation

QLineEdit* HumbleDialogWidget::myTextBox
private

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)