![]() |
VR-Forces 4.0.4 Class Documentation
|
Contains makVrv::DtConnectionSelectorWidget class. More...

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 | |
| DtDe & | myDe |
| DtConnectionSelectorWidgetLogic * | myLogic |
| Pointer to our logic handler. | |
| QToolButton * | myConnectButton |
| QToolButton * | myConnectMenu |
| ActionMap | myActionMap |
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
typedef std::map<std::string, QAction*> makVrv::DtConnectionSelectorWidget::ActionMap [protected] |
| makVrv::DtConnectionSelectorWidget::DtConnectionSelectorWidget | ( | DtDe & | de, |
| QWidget * | parent = 0, |
||
| const Qt::WindowFlags & | flags = 0 |
||
| ) |
CTOR.
| virtual makVrv::DtConnectionSelectorWidget::~DtConnectionSelectorWidget | ( | ) | [virtual] |
virtual DTOR
| 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.
DtDe& makVrv::DtConnectionSelectorWidget::myDe [protected] |
Pointer to our logic handler.