Qt Virtual Chart Table (QVCT)
CDeviceDetailView.hpp
Go to the documentation of this file.
1 // INDENTING (emacs/vi): -*- mode:c++; tab-width:2; c-basic-offset:2; intent-tabs-mode:nil; -*- ex: set tabstop=2 expandtab:
2 
3 /*
4  * Qt Virtual Chart Table (QVCT)
5  * Copyright (C) 2012 Cedric Dufour <http://cedric.dufour.name>
6  * Author: Cedric Dufour <http://cedric.dufour.name>
7  *
8  * The Qt Virtual Chart Table (QVCT) is free software:
9  * you can redistribute it and/or modify it under the terms of the GNU General
10  * Public License as published by the Free Software Foundation, Version 3.
11  *
12  * The Qt Virtual Chart Table (QVCT) is distributed in the hope
13  * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
14  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15  *
16  * See the GNU General Public License for more details.
17  */
18 
19 #ifndef QVCT_CDEVICEDETAILVIEW_HPP
20 #define QVCT_CDEVICEDETAILVIEW_HPP
21 
22 // QT
23 #include <QLabel>
24 #include <QPushButton>
25 #include <QWidget>
26 
27 // QVCT
29 #include "devices/CDevice.hpp"
30 class COverlayText;
31 
32 
34 
40 {
41  Q_OBJECT
42 
43  //------------------------------------------------------------------------------
44  // FIELDS
45  //------------------------------------------------------------------------------
46 
47 private:
53  QLabel* pqLabelActivity;
55  QPushButton* pqPushButtonEdit;
57  QPushButton* pqPushButtonDelete;
59  QPushButton* pqPushButtonStop;
61  QPushButton* pqPushButtonPause;
63  QPushButton* pqPushButtonStart;
64 
67 
68 
69  //------------------------------------------------------------------------------
70  // CONSTRUCTORS / DESTRUCTOR
71  //------------------------------------------------------------------------------
72 
73 public:
74  CDeviceDetailView( QWidget* _pqParent = 0 );
75  virtual ~CDeviceDetailView() {};
76 
77 private:
79  void constructLayout();
80 
81 
82  //------------------------------------------------------------------------------
83  // METHODS: COverlayObjectDetailView (implement/override)
84  //------------------------------------------------------------------------------
85 
86 public:
87  virtual void refreshContent();
88  virtual void resetContent();
89 
90 private:
91  virtual void enableContent();
92  virtual void disableContent();
93 
94 
95  //------------------------------------------------------------------------------
96  // METHODS
97  //------------------------------------------------------------------------------
98 
99  // SLOTS
100 private slots:
102  void slotOperatingMode( CDevice::EOperatingMode _eOperatingMode );
104  void slotActivity();
106  void slotEdit();
108  void slotDelete();
110  void slotStop();
112  void slotPause();
114  void slotStart();
115 
116 };
117 
118 #endif // QVCT_CDEVICEDETAILVIEW_HPP
[UI] device's detail view
bool bIgnoreUpdate
Flag that disables checkable buttons update.
void slotPause()
[UI:Slot] Slot to pause the device
void slotEdit()
[UI:Slot] Slot to edit the device configuration
void slotActivity()
[Slot] Slot to handle activity signal emitted by device
QPushButton * pqPushButtonStart
[UI:Button] Start
void slotOperatingMode(CDevice::EOperatingMode _eOperatingMode)
[Slot] Slot to handle operating mode changes
virtual void resetContent()
Resets (clears) the content of the underlying widget.
CDeviceDetailView(QWidget *_pqParent=0)
virtual void enableContent()
Enables the content (controls) of the underlying widget.
QPushButton * pqPushButtonDelete
[UI:Button] Delete
void slotStart()
[UI:Slot] Start to start the device
QPushButton * pqPushButtonEdit
[UI:Button] Edit
virtual void disableContent()
Disables the content (controls) of the underlying widget.
QLabel * pqLabelActivity
[UI:Label] Activity
void slotDelete()
[UI:Slot] Slot to delete the device
void constructLayout()
Constructs the layout of the user-interface.
QPushButton * pqPushButtonPause
[UI:Button] Pause
void slotStop()
[UI:Slot] Slot to stop the device
COverlayText * poTextName
[UI:Label] Name
virtual void refreshContent()
Refreshes the content of the underlying widget.
QPushButton * pqPushButtonStop
[UI:Button] Stop
COverlayText * poTextDriver
[UI:Label] Driver
EOperatingMode
Device operating mode (stop, start, pause)
Definition: CDevice.hpp:58
[UI] Generic overlay object's detail view
[UI] Overlay-specific text label