Qt Virtual Chart Table (QVCT)
CVesselContainerDeviceDetailView.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_CVESSELCONTAINERDEVICEDETAILVIEW_HPP
20 #define QVCT_CVESSELCONTAINERDEVICEDETAILVIEW_HPP
21 
22 // QT
23 #include <QLabel>
24 #include <QPushButton>
25 #include <QWidget>
26 
27 // QVCT
30 class COverlayText;
31 class COverlayUrl;
32 
33 
35 
41 {
42  Q_OBJECT
43 
44  //------------------------------------------------------------------------------
45  // FIELDS
46  //------------------------------------------------------------------------------
47 
48 private:
54  QPushButton* pqPushButtonEdit;
56  QPushButton* pqPushButtonDelete;
58  QPushButton* pqPushButtonConnect;
59 
62 
63  //------------------------------------------------------------------------------
64  // CONSTRUCTORS / DESTRUCTOR
65  //------------------------------------------------------------------------------
66 
67 public:
68  CVesselContainerDeviceDetailView( QWidget* _pqParent = 0 );
70 
71 private:
73  void constructLayout();
74 
75 
76  //------------------------------------------------------------------------------
77  // METHODS: COverlayObjectDetailView (implement/override)
78  //------------------------------------------------------------------------------
79 
80 public:
81  virtual void refreshContent();
82  virtual void resetContent();
83 
84 private:
85  virtual void enableContent();
86  virtual void disableContent();
87 
88 
89  //------------------------------------------------------------------------------
90  // METHODS
91  //------------------------------------------------------------------------------
92 
93  // SLOTS
94 private slots:
96  void slotRefreshContent();
98  void slotEdit();
100  void slotDelete();
102  void slotConnect( bool );
103 
104 };
105 
106 #endif // QVCT_CVESSELCONTAINERDEVICEDETAILVIEW_HPP
[UI] Generic overlay object's detail view
[UI] Overlay-specific text label
[UI] Overlay-specific URL label
Definition: COverlayUrl.hpp:36
void slotRefreshContent()
[UI:Slot] Slot to refresh the view content
virtual void resetContent()
Resets (clears) the content of the underlying widget.
QPushButton * pqPushButtonConnect
[UI:Button] Connect (device)
bool bIgnoreUpdate
Flag that disables checkable buttons update.
void slotEdit()
[UI:Slot] Slot to display edit view
virtual void disableContent()
Disables the content (controls) of the underlying widget.
void slotDelete()
[UI:Slot] Slot to delete (this container/container)
virtual void enableContent()
Enables the content (controls) of the underlying widget.
virtual void refreshContent()
Refreshes the content of the underlying widget.
void constructLayout()
Constructs the layout of the user-interface.
COverlayText * poTextTTL
[UI:Label] (Vessels) Time-To-Live
QPushButton * pqPushButtonDelete
[UI:Button] Delete
void slotConnect(bool)
[UI:Slot] Slot to connect (to the actual device)