VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | 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]

Public Member Functions

 DtConnectionSelectorWidget (DtDe &de, QWidget *parent=0, const Qt::WindowFlags &flags=0)
 CTOR.
virtual ~DtConnectionSelectorWidget ()
 virtual DTOR
- Public Member Functions inherited from makVrv::DtConnectionSelectorWidgetInterface
virtual ~DtConnectionSelectorWidgetInterface ()
 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

Additional Inherited Members

- Public Attributes inherited from makVrv::DtConnectionSelectorWidgetInterface
boost::signal< void()> signal_connect
boost::signal< void()> signal_disconnect
boost::signal< void(std::string,
bool)> 
signal_driverOnSelectionListChanged

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 makVrv::DtConnectionSelectorWidget::~DtConnectionSelectorWidget ( )
virtual

virtual DTOR

Member Function Documentation

virtual void makVrv::DtConnectionSelectorWidget::setupGui ( )
protectedvirtual

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

virtual void makVrv::DtConnectionSelectorWidget::setConnect ( bool  )
protectedvirtual

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 
)
protectedvirtual

Adds a new driver.

Implements makVrv::DtConnectionSelectorWidgetInterface.

virtual void makVrv::DtConnectionSelectorWidget::removeDriver ( const std::string &  name)
protectedvirtual

Removes named driver.

Implements makVrv::DtConnectionSelectorWidgetInterface.

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

Sets whether or not driver has been started.

Implements makVrv::DtConnectionSelectorWidgetInterface.

virtual void makVrv::DtConnectionSelectorWidget::setConnected ( bool  )
protectedvirtual

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

Implements makVrv::DtConnectionSelectorWidgetInterface.

virtual void makVrv::DtConnectionSelectorWidget::setDriverOnSelectionList ( const std::string &  name,
bool   
)
protectedvirtual

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

Implements makVrv::DtConnectionSelectorWidgetInterface.

virtual void makVrv::DtConnectionSelectorWidget::setCanConnect ( bool  )
protectedvirtual

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

Implements makVrv::DtConnectionSelectorWidgetInterface.

virtual bool makVrv::DtConnectionSelectorWidget::isConnected ( ) const
protectedvirtual

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

Implements makVrv::DtConnectionSelectorWidgetInterface.

virtual void makVrv::DtConnectionSelectorWidget::onConnect ( )
protectedvirtualslot

Calls setConnect with button state.

virtual void makVrv::DtConnectionSelectorWidget::onDriverToggled ( bool  )
protectedvirtualslot

Called when driver is selected from the menu.

Member Data Documentation

DtDe& makVrv::DtConnectionSelectorWidget::myDe
protected
DtConnectionSelectorWidgetLogic* makVrv::DtConnectionSelectorWidget::myLogic
protected

Pointer to our logic handler.

QToolButton* makVrv::DtConnectionSelectorWidget::myConnectButton
protected
QToolButton* makVrv::DtConnectionSelectorWidget::myConnectMenu
protected
ActionMap makVrv::DtConnectionSelectorWidget::myActionMap
protected

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)