VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtConnectionListWidget.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2011 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvVrlQt/vrvVrlQt.h>
14 
15 #include <QtWidgets/QWidget>
16 
17 class QTreeWidget;
18 class QTreeWidgetItem;
19 class QPushButton;
20 class QComboBox;
21 
22 namespace makVrv
23 {
24 
25  class DtConnectionListLogic;
26 
30  : public QWidget, public DtConnectionListInterface
31  { Q_OBJECT;
32  public:
33 
35  DtConnectionListWidget( DtDe& de, QWidget* parent );
36 
38  virtual ~DtConnectionListWidget();
39 
41  void activate();
42 
44  void deactivate();
45 
48 
49  virtual void addDriver( const std::string& driverName,
51  virtual void removeDriver( const std::string& driverName );
52 
53  virtual void setCurrentDriver( const std::string& name );
54  virtual void setDriverState( const std::string& driverName,
56  virtual void setAutoConnectDriver( const std::string& driverName );
57  virtual void setCurrentDriverState(
59 
61 
62  protected slots:
63 
64  virtual void on_myConnections_itemSelectionChanged();
65  virtual void on_myConnectButton_clicked();
66  virtual void on_myAutoConnectButton_clicked();
67  virtual void on_myAutoConnectComboBox_currentIndexChanged(
68  const QString & text );
69 
70 
71  protected:
72 
73  void setupGui();
74 
75  void setItemState( QTreeWidgetItem* item,
77 
78  void setItemAutoConnect( QTreeWidgetItem* item, bool isAutoConnect );
79 
80  protected:
81 
84 
89 
90  };
91 }
DtDe & myDe
Definition: DtConnectionListWidget.h:82
QTreeWidget * myConnections
Definition: DtConnectionListWidget.h:85
#define DT_DLL_VRVVRLQT
Definition: vrvVrlQt.h:19
DtConnectionListLogic * myLogic
Definition: DtConnectionListWidget.h:83
QPushButton * myConnectButton
Definition: DtConnectionListWidget.h:86
Contains DLL export macros.
DriverState
Definition: DtConnectionListInterface.h:28
The logic for creating a connection list. Only connections which return &#39;true&#39; from the isUserControl...
Definition: DtConnectionListLogic.h:25
Contains makVrv::DtConnectionListInterface class.
The interface to the connection list.
Definition: DtConnectionListInterface.h:20
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
Connection list widget.
Definition: DtConnectionListWidget.h:29
QComboBox * myAutoConnectComboBox
Definition: DtConnectionListWidget.h:88
QPushButton * myAutoConnectButton
Definition: DtConnectionListWidget.h:87

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)