MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
connectionLight.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2024 MAK Technologies, Inc
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 
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 
66  bool myActivity;
67 
69 
71 
74  QColor myActiveColor;
75  };
76 }
77 
78 #endif
bool myActivity
Definition: connectionLight.h:66
QColor myConnectedColor
Definition: connectionLight.h:73
The logger GUI&#39;s model.
Definition: lgrGuiModel.h:56
bool myConnected
Definition: connectionLight.h:65
#define DT_DLL_LGRGUI
Definition: lgrGui.h:19
bool myDrawIcons
Definition: connectionLight.h:68
Defines INPORT/EXPORT macros for lgrGui library.
QColor myActiveColor
Definition: connectionLight.h:74
QIcon myConnectionIcon
Definition: connectionLight.h:70
QColor myDisconnectedColor
Definition: connectionLight.h:72
Connection light widget which will show connectivity state via difference colors. ...
Definition: connectionLight.h:28

Document ID: Generated on Fri May 31 15:45:35 EDT 2024 from SVN revision 266500
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)