MAK Data Logger API Documentation for DIS
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
libsrc
lgrGui
connectionLight.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
******************************************************************************/
5
8
9
#ifndef connectionLight_H_
10
#define connectionLight_H_
11
12
#include "
lgrGui.h
"
13
14
#include <QtGui/QColor>
15
#include <QtGui/QIcon>
16
#include <QtGui/QWidget>
17
18
19
namespace
MAKLogger
20
{
21
class
DtLgrGuiModel;
22
28
class
DT_DLL_LGRGUI
DtConnectionLight
:
public
QWidget
29
{
30
Q_OBJECT
31
32
public
:
33
DtConnectionLight
(
DtLgrGuiModel
& model,
bool
drawIcons,
QWidget
* parent);
34
virtual
~
DtConnectionLight
();
35
37
bool
connected()
const
;
38
40
bool
activity()
const
;
41
43
void
setActivity(
bool
active);
44
46
void
setConnected(
bool
connected);
47
48
signals:
49
void
displayConnectionInfo();
50
void
toggleConnection();
51
52
public
slots:
53
55
void
postModelUpdate(
DtLgrGuiModel
&);
56
57
protected
:
58
virtual
void
paintEvent( QPaintEvent * );
59
virtual
void
contextMenuEvent(QContextMenuEvent*);
60
virtual
void
mouseDoubleClickEvent(QMouseEvent*);
61
62
virtual
void
drawIcons();
63
virtual
void
drawLight();
64
65
bool
myConnected
;
66
bool
myActivity
;
67
68
bool
myDrawIcons
;
69
70
QIcon
myConnectionIcon
;
71
72
QColor
myDisconnectedColor
;
73
QColor
myConnectedColor
;
74
QColor
myActiveColor
;
75
};
76
}
77
78
#endif
Document ID: Generated on Mon Jan 19 08:20:14 EST 2015 from SVN revision 149581
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)