Qt Virtual Chart Table (QVCT)
CTrackSubContainerDetailView.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_CTRACKSUBCONTAINERDETAILVIEW_HPP
20 #define QVCT_CTRACKSUBCONTAINERDETAILVIEW_HPP
21 
22 // QT
23 #include <QLabel>
24 #include <QPushButton>
25 #include <QWidget>
26 
27 // QVCT
29 class CTrackSubContainer;
30 class COverlayText;
31 class COverlayUrl;
32 
33 
35 
41 {
42  Q_OBJECT
43 
44  //------------------------------------------------------------------------------
45  // FIELDS
46  //------------------------------------------------------------------------------
47 
48 private:
58  QPushButton* pqPushButtonVisible;
60  QPushButton* pqPushButtonCenter;
62  QPushButton* pqPushButtonDelete;
63 
64 
65  //------------------------------------------------------------------------------
66  // CONSTRUCTORS / DESTRUCTOR
67  //------------------------------------------------------------------------------
68 
69 public:
70  CTrackSubContainerDetailView( QWidget* _pqParent = 0 );
72 
73 private:
75  void constructLayout();
76 
77 
78  //------------------------------------------------------------------------------
79  // METHODS: COverlayObjectDetailView (implement/override)
80  //------------------------------------------------------------------------------
81 
82 public:
83  virtual void refreshContent();
84  virtual void resetContent();
85 
86 private:
87  virtual void enableContent();
88  virtual void disableContent();
89 
90 
91  //------------------------------------------------------------------------------
92  // METHODS
93  //------------------------------------------------------------------------------
94 
95  // SLOTS
96 private slots:
98  void slotToggleVisible();
100  void slotPositionCenter();
102  void slotDelete();
103 
104 };
105 
106 #endif // QVCT_CTRACKSUBCONTAINERDETAILVIEW_HPP
[UI] Generic overlay object's detail view
[UI] Overlay-specific text label
[UI] Overlay-specific URL label
Definition: COverlayUrl.hpp:36
[UI] Track sub-container's detail view
virtual void disableContent()
Disables the content (controls) of the underlying widget.
QPushButton * pqPushButtonDelete
[UI:Button] Delete
COverlayText * poTextLengthRL
[UI:Label] Length (rhumb-line)
QPushButton * pqPushButtonCenter
[UI:Button] Center (on chart)
COverlayText * poTextContent
[UI:Label] Content (items summary)
void slotPositionCenter()
[UI:Slot] Slot to center chart (on sub-container's items position)
QPushButton * pqPushButtonVisible
[UI:Button] Visibility status
COverlayText * poTextTimeElapsed
[UI:Label] Elapsed time
void slotDelete()
[UI:Slot] Slot to delete (this sub-container)
virtual void enableContent()
Enables the content (controls) of the underlying widget.
virtual void refreshContent()
Refreshes the content of the underlying widget.
void slotToggleVisible()
[UI:Slot] Slot to modify the visibility status
void constructLayout()
Constructs the layout of the user-interface.
CTrackSubContainerDetailView(QWidget *_pqParent=0)
COverlayText * poTextName
[UI:Label] Name
virtual void resetContent()
Resets (clears) the content of the underlying widget.
[UI] Track overlay sub-container