Qt Virtual Chart Table (QVCT)
CRoutePointDetailView.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_CROUTEITEMDETAILVIEW_HPP
20 #define QVCT_CROUTEITEMDETAILVIEW_HPP
21 
22 // QT
23 #include <QLabel>
24 #include <QPushButton>
25 #include <QWidget>
26 
27 // QVCT
29 class CRoutePoint;
30 class COverlayText;
31 class COverlayUrl;
32 
33 
35 
41 {
42  Q_OBJECT
43 
44  //------------------------------------------------------------------------------
45  // FIELDS
46  //------------------------------------------------------------------------------
47 
48 private:
64  QLabel* pqLabelSymbol;
68  QPushButton* pqPushButtonVisible;
70  QPushButton* pqPushButtonCenter;
72  QPushButton* pqPushButtonEdit;
74  QPushButton* pqPushButtonMove;
76  QPushButton* pqPushButtonDelete;
79 
80 
81  //------------------------------------------------------------------------------
82  // CONSTRUCTORS / DESTRUCTOR
83  //------------------------------------------------------------------------------
84 
85 public:
86  CRoutePointDetailView( QWidget* _pqParent = 0 );
87  virtual ~CRoutePointDetailView() {};
88 
89 private:
91  void constructLayout();
92 
93 
94  //------------------------------------------------------------------------------
95  // METHODS: COverlayObjectDetailView (implement/override)
96  //------------------------------------------------------------------------------
97 
98 public:
99  virtual void refreshContent();
100  virtual void resetContent();
101 
102 private:
103  virtual void enableContent();
104  virtual void disableContent();
105 
106 
107  //------------------------------------------------------------------------------
108  // METHODS
109  //------------------------------------------------------------------------------
110 
111  // SLOTS
112 private slots:
114  void slotToggleVisible();
116  void slotPositionCenter();
118  void slotEdit();
120  void slotMove( bool _bEnable );
122  void slotDelete();
124  void slotAddLandmark();
125 
126 };
127 
128 #endif // QVCT_CROUTEITEMDETAILVIEW_HPP
[UI] Generic overlay object's detail view
[UI] Overlay-specific text label
[UI] Overlay-specific URL label
Definition: COverlayUrl.hpp:36
[UI] Route item's detail view
COverlayText * poTextLatitude
[UI:Label] Latitude
void slotAddLandmark()
[UI:Slot] Slot to add new landmark
virtual void disableContent()
Disables the content (controls) of the underlying widget.
QLabel * pqLabelSymbol
[UI:Label] Symbol
COverlayText * poTextElevation
[UI:Label] Elevation
CRoutePointDetailView(QWidget *_pqParent=0)
void constructLayout()
Constructs the layout of the user-interface.
QPushButton * pqPushButtonDelete
[UI:Button] Delete
QPushButton * pqPushButtonVisible
[UI:Button] Visibility status
COverlayText * poTextComment
[UI:Label] Comment
void slotDelete()
[UI:Slot] Slot to delete (this item/point)
void slotToggleVisible()
[UI:Slot] Slot to modify the visibility status
COverlayUrl * poUrl
[UI:Label] URL
QPushButton * pqPushButtonMove
[UI:Button] Move (change position)
COverlayText * poTextName
[UI:Label] Name
void slotEdit()
[UI:Slot] Slot to display edit view
void slotPositionCenter()
[UI:Slot] Slot to center chart (on item's position)
virtual void refreshContent()
Refreshes the content of the underlying widget.
virtual void resetContent()
Resets (clears) the content of the underlying widget.
COverlayText * poTextType
[UI:Label] Type
COverlayText * poTextDescription
[UI:Label] Description
QPushButton * pqPushButtonEdit
[UI:Button] Edit
COverlayText * poTextLongitude
[UI:Label] Longitude
QPushButton * pqPushButtonAddLandmark
[UI:Button] Add new landmark
virtual void enableContent()
Enables the content (controls) of the underlying widget.
QPushButton * pqPushButtonCenter
[UI:Button] Center (on chart)
void slotMove(bool _bEnable)
[UI:Slot] Slot to enable/disable move (position change)
[UI] Route overlay point (item) / waypoint
Definition: CRoutePoint.hpp:40