![]() |
VR-Forces 5.0.2 Developer's Guide
|
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.

Public Types | |
| typedef std::map< std::string, QAction * > | ActionMap |
Public Member Functions | |
| DtConnectionSelectorWidget (DtDe &de, QWidget *parent=0, const Qt::WindowFlags &flags=0) | |
| virtual | ~DtConnectionSelectorWidget () |
Public Member Functions inherited from makVrv::DtToolbarWidget | |
| DtToolbarWidget (DtDe &de, QWidget *p=0, Qt::WindowFlags f=0) | |
| virtual | ~DtToolbarWidget () |
| void | setToolButtonChecked (bool checked) |
| bool | isToolButtonChecked () const |
| void | setToolButtonStyle (Qt::ToolButtonStyle style) |
| Qt::ToolButtonStyle | toolButtonStyle () const |
Public Member Functions inherited from makVrv::DtConnectionSelectorWidgetInterface | |
| virtual | ~DtConnectionSelectorWidgetInterface () |
Protected Slots | |
| virtual void | onConnect () |
| virtual void | onDriverToggled (bool) |
| virtual void | on_toolButtonClicked (bool checked) |
| virtual void | slot_refreshApplicationIcons () |
Protected Slots inherited from makVrv::DtToolbarWidget | |
| virtual void | on_toolButtonStyleChanged (Qt::ToolButtonStyle val) |
| virtual void | on_toolButtonClicked (bool checked)=0 |
| virtual void | on_aboutToShow () |
Protected Member Functions | |
| virtual void | setupGui () |
| virtual void | setConnect (bool) |
| virtual void | addDriver (const std::string &name, bool connected, bool onDriverSelectionList) |
| virtual void | removeDriver (const std::string &name) |
| virtual void | setDriverConnected (const std::string &name, bool connected) |
| virtual void | setConnected (bool) |
| virtual void | setDriverOnSelectionList (const std::string &name, bool) |
| virtual void | setCanConnect (bool) |
| virtual bool | isConnected () const |
Protected Member Functions inherited from makVrv::DtToolbarWidget | |
| virtual void | configureToolButton (const QString &text, const QString &tooltip, const QString &iconFilename, bool checkable=false, bool hasMenu=false, QToolButton::ToolButtonPopupMode menuMode=QToolButton::DelayedPopup, const QString &checkedIconFilePath=QString("")) |
| virtual void | configureThemedToolButton (const QString &text, const QString &tooltip, const QString &iconFilename, bool checkable=false, bool hasMenu=false, QToolButton::ToolButtonPopupMode menuMode=QToolButton::DelayedPopup, const QString &checkedIconFileName=QString("")) |
| virtual void | setWidgetsVisible (bool visible) |
Protected Attributes | |
| DtSignalConnectionManager | myConnections |
| DtConnectionSelectorWidgetLogic * | myLogic |
| QToolButton * | myConnectMenu |
| ActionMap | myActionMap |
Protected Attributes inherited from makVrv::DtToolbarWidget | |
| DtDe & | myDe |
| QToolButton * | myToolButton |
| QHBoxLayout * | myWidgetLayout |
Private Member Functions | |
| DtConnectionSelectorWidget () | |
| DtConnectionSelectorWidget (const DtConnectionSelectorWidget &) | |
| DtConnectionSelectorWidget & | operator= (const DtConnectionSelectorWidget &) |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtConnectionSelectorWidgetInterface | |
| boost::signalslib::signal< void()> | signal_connect |
| boost::signalslib::signal< void()> | signal_disconnect |
| boost::signalslib::signal < void(std::string, bool)> | signal_driverOnSelectionListChanged |
| typedef std::map<std::string, QAction*> makVrv::DtConnectionSelectorWidget::ActionMap |
| makVrv::DtConnectionSelectorWidget::DtConnectionSelectorWidget | ( | DtDe & | de, |
| QWidget * | parent = 0, |
||
| const Qt::WindowFlags & | flags = 0 |
||
| ) |
CTOR.
|
virtual |
virtual DTOR
|
private |
Default CTOR.
|
private |
Copy CTOR.
|
private |
Copy operator.
|
protectedvirtual |
Sets up the gui of the widget. Called from the constructor.
|
protectedvirtual |
Sends signal_connect if button is pressed, disconnect if not. Will also change icon given the state.
Implements makVrv::DtConnectionSelectorWidgetInterface.
|
protectedvirtual |
Adds a new driver.
Implements makVrv::DtConnectionSelectorWidgetInterface.
|
protectedvirtual |
Removes named driver.
Implements makVrv::DtConnectionSelectorWidgetInterface.
|
protectedvirtual |
Sets whether or not driver has been started.
Implements makVrv::DtConnectionSelectorWidgetInterface.
|
protectedvirtual |
Sets whether or not connected. Will only change button state.
Implements makVrv::DtConnectionSelectorWidgetInterface.
|
protectedvirtual |
Sets whether or not the driver should be selected on the selection list.
Implements makVrv::DtConnectionSelectorWidgetInterface.
|
protectedvirtual |
Sets wheter or not the connect button is enabled/disabled.
Implements makVrv::DtConnectionSelectorWidgetInterface.
|
protectedvirtual |
Returns true if button is in connect state (pushed in)
Implements makVrv::DtConnectionSelectorWidgetInterface.
|
protectedvirtualslot |
Calls setConnect with button state.
|
protectedvirtualslot |
Called when driver is selected from the menu.
|
protectedvirtualslot |
Slot when this widget's toolbutton has been clicked.
| checked | Whether or not the QToolButton is checked or not This slot will connect/disconnect according to the check state |
|
protectedvirtualslot |
Slot indicating this widget's icons should be updated.
|
protected |
|
protected |
Pointer to our logic handler.
|
protected |
|
protected |