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

The logic for the HumbleDialogWidget. This class does not have knowledge about how the widget was implemented, but communicates with the widget through an interface. The interface allows the widget or logic to be independently re-factored without affecting the other.

Examples

Public Member Functions

 HumbleDialogLogic (HumbleDialogWidgetInterface &iFace)
 
virtual ~HumbleDialogLogic ()
 
void slot_processText (const std::string &text)
 

Private Attributes

HumbleDialogWidgetInterface & myInterface
 
makVrv::DtSignalConnectionManager myConnections
 

Constructor & Destructor Documentation

HumbleDialogLogic::HumbleDialogLogic ( HumbleDialogWidgetInterface &  iFace)

Initializing CTOR.

At construction time, this logic is connected to the boost::signals of the widget-interface to receive updates when the widget changes. A reference to the widget-interface is saved to call back to the widget and disconnect during destruction.

virtual HumbleDialogLogic::~HumbleDialogLogic ( )
virtual

Virtual DTOR.

Disconnect from the boost::signals of the widget-interface.

Member Function Documentation

void HumbleDialogLogic::slot_processText ( const std::string &  text)

Called when the user presses Return or Enter in the widget. When signaled the given text is simply printed to the console, then this logic-object clears the text-box in the widget by calling setText on the widget-interface.

Member Data Documentation

HumbleDialogWidgetInterface& HumbleDialogLogic::myInterface
private
makVrv::DtSignalConnectionManager HumbleDialogLogic::myConnections
private

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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)