MAK Data Logger API Documentation for HLA
 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 #include <QtGui/QColor>
15 #include <QtGui/QIcon>
16 #include <QtGui/QWidget>
17 
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 
49  void setListening(bool listen);
50 
52  bool isListening() const;
53 
55  void setListenOnIdle(bool listen);
56 
58  bool listenOnIdle() const;
59 
60 
61  signals:
62  void displayConnectionInfo();
63  void toggleConnection();
64 
65  public slots:
66 
68  void postModelUpdate(DtLgrGuiModel&);
69 
70  protected:
71  virtual void paintEvent( QPaintEvent * );
72  virtual void contextMenuEvent(QContextMenuEvent*);
73  virtual void mouseDoubleClickEvent(QMouseEvent*);
74 
75  virtual void drawIcons();
76  virtual void drawLight();
77 
79  bool myActivity;
82 
84 
86  QIcon myListenIcon;
87 
90  QColor myActiveColor;
91  };
92 }
93 
94 #endif

Document ID: Generated on Thu Apr 7 20:50:59 EDT 2016 from SVN revision 163818
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)