MAK Data Logger API Documentation for DIS
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
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/lgrGui.h
>
13
14
15
#include <QColor>
16
#include <QIcon>
17
#include <QWidget>
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
void
setConnected(
bool
connected);
41
43
bool
activity()
const
;
44
46
void
setActivity(
bool
active);
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 Tue Aug 1 09:00:26 EDT 2017 from SVN revision 179128
Copyright © 2017 VT MÄK. All Rights Reserved (
www.mak.com
)