VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Types | Protected Slots | Protected Member Functions | Protected Attributes
makVrv::DtConnectionSelectorWidget Class Reference

Contains makVrv::DtConnectionSelectorWidget class. More...

Inheritance diagram for makVrv::DtConnectionSelectorWidget:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtConnectionSelectorWidget (DtDe &de, QWidget *parent=0, const Qt::WindowFlags &flags=0)
 CTOR.
virtual ~DtConnectionSelectorWidget ()
 virtual DTOR

Protected Types

typedef std::map< std::string,
QAction * > 
ActionMap

Protected Slots

virtual void onConnect ()
 Calls setConnect with button state.
virtual void onDriverToggled (bool)
 Called when driver is selected from the menu.

Protected Member Functions

virtual void setupGui ()
 Sets up the gui of the widget. Called from the constructor.
virtual void setConnect (bool)
 Sends signal_connect if button is pressed, disconnect if not.
virtual void addDriver (const std::string &name, bool connected, bool onDriverSelectionList)
 Adds a new driver.
virtual void removeDriver (const std::string &name)
 Removes named driver.
virtual void setDriverConnected (const std::string &name, bool connected)
 Sets whether or not driver has been started.
virtual void setConnected (bool)
 Sets whether or not connected. Will only change button state.
virtual void setDriverOnSelectionList (const std::string &name, bool)
 Sets whether or not the driver should be selected on the selection list.
virtual void setCanConnect (bool)
 Sets wheter or not the connect button is enabled/disabled.
virtual bool isConnected () const
 Returns true if button is in connect state (pushed in)

Protected Attributes

DtDemyDe
DtConnectionSelectorWidgetLogicmyLogic
 Pointer to our logic handler.
QToolButtonmyConnectButton
QToolButtonmyConnectMenu
ActionMap myActionMap

Detailed Description

Contains makVrv::DtConnectionSelectorWidget class.

A class that allows for the selection of connections to connect to and the ability to connect/disconnect from those connections


Member Typedef Documentation

typedef std::map<std::string, QAction*> makVrv::DtConnectionSelectorWidget::ActionMap [protected]

Constructor & Destructor Documentation

makVrv::DtConnectionSelectorWidget::DtConnectionSelectorWidget ( DtDe de,
QWidget parent = 0,
const Qt::WindowFlags &  flags = 0 
)

CTOR.

virtual DTOR


Member Function Documentation

virtual void makVrv::DtConnectionSelectorWidget::setupGui ( ) [protected, virtual]

Sets up the gui of the widget. Called from the constructor.

virtual void makVrv::DtConnectionSelectorWidget::setConnect ( bool  ) [protected, virtual]

Sends signal_connect if button is pressed, disconnect if not.

Will also change icon given the state

Implements makVrv::DtConnectionSelectorWidgetInterface.

virtual void makVrv::DtConnectionSelectorWidget::addDriver ( const std::string &  name,
bool  connected,
bool  onDriverSelectionList 
) [protected, virtual]

Adds a new driver.

Implements makVrv::DtConnectionSelectorWidgetInterface.

virtual void makVrv::DtConnectionSelectorWidget::removeDriver ( const std::string &  name) [protected, virtual]

Removes named driver.

Implements makVrv::DtConnectionSelectorWidgetInterface.

virtual void makVrv::DtConnectionSelectorWidget::setDriverConnected ( const std::string &  name,
bool  connected 
) [protected, virtual]

Sets whether or not driver has been started.

Implements makVrv::DtConnectionSelectorWidgetInterface.

virtual void makVrv::DtConnectionSelectorWidget::setConnected ( bool  ) [protected, virtual]

Sets whether or not connected. Will only change button state.

Implements makVrv::DtConnectionSelectorWidgetInterface.

virtual void makVrv::DtConnectionSelectorWidget::setDriverOnSelectionList ( const std::string &  name,
bool   
) [protected, virtual]

Sets whether or not the driver should be selected on the selection list.

Implements makVrv::DtConnectionSelectorWidgetInterface.

virtual void makVrv::DtConnectionSelectorWidget::setCanConnect ( bool  ) [protected, virtual]

Sets wheter or not the connect button is enabled/disabled.

Implements makVrv::DtConnectionSelectorWidgetInterface.

virtual bool makVrv::DtConnectionSelectorWidget::isConnected ( ) const [protected, virtual]

Returns true if button is in connect state (pushed in)

Implements makVrv::DtConnectionSelectorWidgetInterface.

virtual void makVrv::DtConnectionSelectorWidget::onConnect ( ) [protected, virtual, slot]

Calls setConnect with button state.

virtual void makVrv::DtConnectionSelectorWidget::onDriverToggled ( bool  ) [protected, virtual, slot]

Called when driver is selected from the menu.


Member Data Documentation

Pointer to our logic handler.


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)