VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtConnectionSelectorWidget.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtConnectionSelectorWidget.h,v $ $Revision: 1.22 $ $State: Exp $
7 ******************************************************************************/
8 
11 
12 #pragma once
13 
14 #include <vrvVrlQt/vrvVrlQt.h>
17 
18 #include <QtGui/QWidget>
19 
20 class QToolButton;
21 class QAction;
22 
23 namespace makVrv
24 {
25  class DtConnectionSelectorWidgetLogic;
26  class DtDe;
27 
33  public QWidget
35  {
36  Q_OBJECT
37 
38  public:
40  DtConnectionSelectorWidget( DtDe& de, QWidget* parent = 0, const Qt::WindowFlags& flags = 0 );
41 
43  virtual ~DtConnectionSelectorWidget();
44 
45  protected:
47  virtual void setupGui();
48 
49  protected:
52  virtual void setConnect(bool);
53 
55  virtual void addDriver(const std::string& name, bool connected, bool onDriverSelectionList);
56 
58  virtual void removeDriver(const std::string& name);
59 
61  virtual void setDriverConnected(const std::string& name, bool connected);
62 
64  virtual void setConnected(bool);
65 
67  virtual void setDriverOnSelectionList(const std::string& name, bool);
68 
70  virtual void setCanConnect(bool);
71 
73  virtual bool isConnected() const;
74 
75  protected slots:
77  virtual void onConnect();
78 
80  virtual void onDriverToggled(bool);
81 
82  protected:
86 
89 
90  typedef std::map<std::string, QAction*> ActionMap;
92  };
93 
97  {
98  public:
99 
101 
103 
104  virtual QWidget* create( makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags);
105  };
106 }

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)