VR-Vantage 3.1 API Documentation
 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. More...

Public Member Functions

 HumbleDialogLogic (HumbleDialogWidgetInterface &iFace)
 Initializing CTOR.
virtual ~HumbleDialogLogic ()
 Virtual DTOR.
void slot_processText (const std::string &text)
 Called when the user presses Return or Enter in the widget.

Private Attributes

HumbleDialogWidgetInterfacemyInterface
makVrv::DtSignalConnectionManager myConnections

Detailed Description

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

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:


Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)