VR-Forces Development_Version 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 
16 
17 
18 class QToolButton;
19 class QAction;
20 
21 namespace makVrv
22 {
23  class DtConnectionSelectorWidgetLogic;
24  class DtDe;
25 
31  public QWidget
33  {
34  Q_OBJECT
35 
36  public:
38  DtConnectionSelectorWidget( DtDe& de, QWidget* parent = 0, const Qt::WindowFlags& flags = 0 );
39 
41  virtual ~DtConnectionSelectorWidget();
42 
43  protected:
45  virtual void setupGui();
46 
47  protected:
50  virtual void setConnect(bool);
51 
53  virtual void addDriver(const std::string& name, bool connected, bool onDriverSelectionList);
54 
56  virtual void removeDriver(const std::string& name);
57 
59  virtual void setDriverConnected(const std::string& name, bool connected);
60 
62  virtual void setConnected(bool);
63 
65  virtual void setDriverOnSelectionList(const std::string& name, bool);
66 
68  virtual void setCanConnect(bool);
69 
71  virtual bool isConnected() const;
72 
73  protected slots:
75  virtual void onConnect();
76 
78  virtual void onDriverToggled(bool);
79 
80  protected:
84 
87 
88  typedef std::map<std::string, QAction*> ActionMap;
90  };
91 
95  {
96  public:
97 
99 
101 
102  virtual QWidget* create( makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags);
103  };
104 }

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)