VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvVrlQt
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
>
15
#include <
vrvVrlQt/DtConnectionSelectorWidgetInterface.h
>
16
#include <
vrvCoreQt/DtWidgetBuilder.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
32
class
DT_DLL_VRVVRLQT
DtConnectionSelectorWidget
:
33
public
QWidget
34
,
public
DtConnectionSelectorWidgetInterface
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
:
83
DtDe
&
myDe
;
85
DtConnectionSelectorWidgetLogic
*
myLogic
;
86
87
QToolButton
*
myConnectButton
;
88
QToolButton
*
myConnectMenu
;
89
90
typedef
std::map<std::string, QAction*>
ActionMap
;
91
ActionMap
myActionMap
;
92
};
93
96
class
DT_DLL_VRVVRLQT
DtConnectionSelectorWidgetBuilder
:
public
DtWidgetBuilder
97
{
98
public
:
99
100
DtConnectionSelectorWidgetBuilder
();
101
102
virtual
~
DtConnectionSelectorWidgetBuilder
();
103
104
virtual
QWidget
* create(
makVrv::DtDe
& de,
QWidget
* parent,
const
Qt::WindowFlags& flags);
105
};
106
}
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)