VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Private Member Functions
makVrv::DtConnectionSelectorWidget Class Reference

Contains makVrv::DtConnectionSelectorWidget class. More...

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

Public Types

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

Public Member Functions

 DtConnectionSelectorWidget (DtDe &de, QWidget *parent=0, const Qt::WindowFlags &flags=0)
 CTOR. More...
 
virtual ~DtConnectionSelectorWidget ()
 virtual DTOR More...
 
- Public Member Functions inherited from makVrv::DtToolbarWidget
 DtToolbarWidget (QWidget *p=0, Qt::WindowFlags f=0)
 CTOR The parent widget should be a QToolBar so that we can connect to its toolButtonStyleChanged(Qt::ToolButtonStyle) signal. More...
 
virtual ~DtToolbarWidget ()
 DTOR. More...
 
void setToolButtonChecked (bool checked)
 Set/Get whether or not the tool button is checked. More...
 
bool isToolButtonChecked () const
 
void setToolButtonStyle (Qt::ToolButtonStyle style)
 Set/Get the current toolbutton style If myToolButton is uninitialized, the getter defaults to returning Qt::ToolButtonFollowStyle. More...
 
Qt::ToolButtonStyle toolButtonStyle () const
 
- Public Member Functions inherited from makVrv::DtConnectionSelectorWidgetInterface
virtual ~DtConnectionSelectorWidgetInterface ()
 Virtual DTOR. More...
 

Protected Slots

virtual void onConnect ()
 Calls setConnect with button state. More...
 
virtual void onDriverToggled (bool)
 Called when driver is selected from the menu. More...
 
virtual void on_toolButtonClicked (bool checked)
 Slot when this widget's toolbutton has been clicked. More...
 
- Protected Slots inherited from makVrv::DtToolbarWidget
virtual void on_toolButtonStyleChanged (Qt::ToolButtonStyle val)
 Updates widget to match the new ToolButtonStyle. More...
 
virtual void on_toolButtonClicked (bool checked)=0
 Slot when this widget's toolbutton has been clicked. More...
 
virtual void on_aboutToShow ()
 Slot for when the menu for this widget is about to be shown The slot is only used if this toolbar widget is configured to have a menu. More...
 

Protected Member Functions

virtual void setupGui ()
 Sets up the gui of the widget. Called from the constructor. More...
 
virtual void setConnect (bool)
 Sends signal_connect if button is pressed, disconnect if not. More...
 
virtual void addDriver (const std::string &name, bool connected, bool onDriverSelectionList)
 Adds a new driver. More...
 
virtual void removeDriver (const std::string &name)
 Removes named driver. More...
 
virtual void setDriverConnected (const std::string &name, bool connected)
 Sets whether or not driver has been started. More...
 
virtual void setConnected (bool)
 Sets whether or not connected. Will only change button state. More...
 
virtual void setDriverOnSelectionList (const std::string &name, bool)
 Sets whether or not the driver should be selected on the selection list. More...
 
virtual void setCanConnect (bool)
 Sets wheter or not the connect button is enabled/disabled. More...
 
virtual bool isConnected () const
 Returns true if button is in connect state (pushed in) More...
 
- Protected Member Functions inherited from makVrv::DtToolbarWidget
virtual void configureToolButton (const QString &text, const QString &tooltip, const QString &iconPath, bool checkable=false, bool hasMenu=false, QToolButton::ToolButtonPopupMode menuMode=QToolButton::DelayedPopup)
 Configure the QToolButton for this toolbar widget. More...
 
virtual void setWidgetsVisible (bool visible)
 Called whenever the ToolButtonStyle has changed. More...
 

Protected Attributes

DtDemyDe
 
DtConnectionSelectorWidgetLogicmyLogic
 Pointer to our logic handler. More...
 
QToolButtonmyConnectMenu
 
ActionMap myActionMap
 
- Protected Attributes inherited from makVrv::DtToolbarWidget
QToolButtonmyToolButton
 
QHBoxLayout * myWidgetLayout
 

Private Member Functions

 DtConnectionSelectorWidget ()
 Default CTOR. More...
 
 DtConnectionSelectorWidget (const DtConnectionSelectorWidget &)
 Copy CTOR. More...
 
DtConnectionSelectorWidgetoperator= (const DtConnectionSelectorWidget &)
 Copy operator. More...
 

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
 

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

Constructor & Destructor Documentation

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

CTOR.

virtual makVrv::DtConnectionSelectorWidget::~DtConnectionSelectorWidget ( )
virtual

virtual DTOR

makVrv::DtConnectionSelectorWidget::DtConnectionSelectorWidget ( )
private

Default CTOR.

Note
Not implemented ( force use of initializer ).
makVrv::DtConnectionSelectorWidget::DtConnectionSelectorWidget ( const DtConnectionSelectorWidget )
private

Copy CTOR.

Note
Not implemented ( prevents copies ).

Member Function Documentation

DtConnectionSelectorWidget& makVrv::DtConnectionSelectorWidget::operator= ( const DtConnectionSelectorWidget )
private

Copy operator.

Note
Not implemented ( prevents copies ).
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.

virtual void makVrv::DtConnectionSelectorWidget::on_toolButtonClicked ( bool  checked)
protectedvirtualslot

Slot when this widget's toolbutton has been clicked.

Parameters
checkedWhether or not the QToolButton is checked or not This slot will connect/disconnect according to the check state

Member Data Documentation

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

Pointer to our logic handler.

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 Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)