VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtConnectionSelectorWidget.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 
10 
14 
15 class QToolButton;
16 class QAction;
17 
18 namespace makVrv
19 {
20  class DtConnectionSelectorWidgetLogic;
21  class DtDe;
22 
28  public DtToolbarWidget
30  {
31  Q_OBJECT
32 
33  public:
34  typedef std::map<std::string, QAction*> ActionMap;
35 
36  public:
38  DtConnectionSelectorWidget( DtDe& de, QWidget* parent = 0, const Qt::WindowFlags& flags = 0 );
39 
41  virtual ~DtConnectionSelectorWidget();
42 
43  private:
47 
51 
55 
56  protected:
58  virtual void setupGui();
59 
62  virtual void setConnect(bool);
63 
65  virtual void addDriver(const std::string& name, bool connected, bool onDriverSelectionList);
66 
68  virtual void removeDriver(const std::string& name);
69 
71  virtual void setDriverConnected(const std::string& name, bool connected);
72 
74  virtual void setConnected(bool);
75 
77  virtual void setDriverOnSelectionList(const std::string& name, bool);
78 
80  virtual void setCanConnect(bool);
81 
83  virtual bool isConnected() const;
84 
85  protected slots:
87  virtual void onConnect();
88 
90  virtual void onDriverToggled(bool);
91 
95  virtual void on_toolButtonClicked(bool checked);
96 
97  protected:
101 
103 
105  };
106 
110  {
111  public:
112 
114 
116 
117  virtual QWidget* create( makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags);
118  };
119 }
DtConnectionSelectorWidgetLogic * myLogic
Pointer to our logic handler.
Definition: DtConnectionSelectorWidget.h:100
Builder for the connection selector widget.
Definition: DtConnectionSelectorWidget.h:109
Definition: DtConnectionSelectorWidgetInterface.h:18
Contains makVrv::DtWidgetBuilder class.
Logic to DtConnectionSelectorWidget.
Definition: DtConnectionSelectorWidgetLogic.h:25
ActionMap myActionMap
Definition: DtConnectionSelectorWidget.h:104
#define DT_DLL_VRVVRLQT
Definition: vrvVrlQt.h:19
Contains makVrv::DtConnectionSelectorWidget class.
Definition: DtConnectionSelectorWidget.h:27
std::map< std::string, QAction * > ActionMap
Definition: DtConnectionSelectorWidget.h:34
Contains makVrv::DtConnectionSelectorWidgetInterface class.
DtDe & myDe
Definition: DtConnectionSelectorWidget.h:98
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
A wrapper class for toolbar widgets.
Definition: DtToolbarWidget.h:39
QToolButton * myConnectMenu
Definition: DtConnectionSelectorWidget.h:102
This class is the generic builder base class for building a widget.
Definition: DtWidgetBuilder.h:22

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)