Qt Virtual Chart Table (QVCT)
CTrackContainerDetailView.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_CTRACKCONTAINERDETAILVIEW_HPP
20 #define QVCT_CTRACKCONTAINERDETAILVIEW_HPP
21 
22 // QT
23 #include <QLabel>
24 #include <QPushButton>
25 #include <QWidget>
26 
27 // QVCT
29 class CTrackContainer;
30 class COverlayText;
31 class COverlayUrl;
32 
33 
35 
41 {
42  Q_OBJECT
43 
44  //------------------------------------------------------------------------------
45  // FIELDS
46  //------------------------------------------------------------------------------
47 
48 private:
66  QPushButton* pqPushButtonVisible;
68  QPushButton* pqPushButtonCenter;
70  QPushButton* pqPushButtonEdit;
72  QPushButton* pqPushButtonSave;
74  QPushButton* pqPushButtonDelete;
76  QPushButton* pqPushButtonAddPoint;
77 
78 
79  //------------------------------------------------------------------------------
80  // CONSTRUCTORS / DESTRUCTOR
81  //------------------------------------------------------------------------------
82 
83 public:
84  CTrackContainerDetailView( QWidget* _pqParent = 0 );
86 
87 private:
89  void constructLayout();
90 
91 
92  //------------------------------------------------------------------------------
93  // METHODS: COverlayObjectDetailView (implement/override)
94  //------------------------------------------------------------------------------
95 
96 public:
97  virtual void refreshContent();
98  virtual void resetContent();
99 private:
100  virtual void enableContent();
101  virtual void disableContent();
102 
103 
104  //------------------------------------------------------------------------------
105  // METHODS
106  //------------------------------------------------------------------------------
107 
108  // SLOTS
109 private slots:
111  void slotToggleVisible();
113  void slotPositionCenter();
115  void slotEdit();
117  void slotSave();
119  void slotDelete();
120 
121 };
122 
123 #endif // QVCT_CTRACKCONTAINERDETAILVIEW_HPP
[UI] Generic overlay object's detail view
[UI] Overlay-specific text label
[UI] Overlay-specific URL label
Definition: COverlayUrl.hpp:36
[UI] Track container's detail view
virtual void disableContent()
Disables the content (controls) of the underlying widget.
COverlayText * poTextDescription
[UI:Label] Description
virtual void refreshContent()
Refreshes the content of the underlying widget.
COverlayText * poTextType
[UI:Label] Type
virtual void enableContent()
Enables the content (controls) of the underlying widget.
COverlayText * poTextContent
[UI:Label] Content (items summary)
void slotSave()
[UI:Slot] Slot to save this container to file
COverlayUrl * poUrl
[UI:Label] URL
void slotEdit()
[UI:Slot] Slot to display edit view
QPushButton * pqPushButtonVisible
[UI:Button] Visibility status
void constructLayout()
Constructs the layout of the user-interface.
COverlayText * poTextName
[UI:Label] Name
COverlayText * poTextLengthRL
[UI:Label] Length (rhumb-line)
QPushButton * pqPushButtonCenter
[UI:Button] Center (on chart)
QPushButton * pqPushButtonAddPoint
[UI:Button] Add new waypoint
virtual void resetContent()
Resets (clears) the content of the underlying widget.
void slotDelete()
[UI:Slot] Slot to delete (this container)
COverlayText * poTextComment
[UI:Label] Comment
QPushButton * pqPushButtonSave
[UI:Button] Save
COverlayText * poTextTimeElapsed
[UI:Label] Elapsed time
QPushButton * pqPushButtonEdit
[UI:Button] Edit
void slotToggleVisible()
[UI:Slot] Slot to modify the visibility status
QPushButton * pqPushButtonDelete
[UI:Button] Delete
void slotPositionCenter()
[UI:Slot] Slot to center chart (on container's items position)
CTrackContainerDetailView(QWidget *_pqParent=0)
[UI] Track overlay container