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-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 
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

Document ID: Generated on Wed Jun 5 18:45:18 EDT 2019 from SVN revision 198968
Copyright © 2019 VT MAK. All Rights Reserved (www.mak.com)