Qt Virtual Chart Table (QVCT)
COverlayDetailView.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 
20 #ifndef QVCT_COVERLAYDETAILVIEW_HPP
21 #define QVCT_COVERLAYDETAILVIEW_HPP
22 
23 // QT
24 #include <QDockWidget>
25 #include <QStackedWidget>
26 #include <QWidget>
27 
28 // QVCT
29 #include "overlays/COverlay.hpp"
30 
31 
33 
38 class COverlayDetailView: public QDockWidget
39 {
40  Q_OBJECT
41 
42  //------------------------------------------------------------------------------
43  // CONSTANTS / STATIC
44  //------------------------------------------------------------------------------
45 
46 public:
47  enum EView {
58  VESSEL_POINT = 10,
60  DEVICE = 12
61  };
62 
63 
64  //------------------------------------------------------------------------------
65  // FIELDS
66  //------------------------------------------------------------------------------
67 
68 private:
70 
71  QStackedWidget* pqStackedWidget;
72 
73 
74  //------------------------------------------------------------------------------
75  // CONSTRUCTORS / DESTRUCTOR
76  //------------------------------------------------------------------------------
77 
78 public:
79  COverlayDetailView( QWidget* _pqParent = 0 );
80  virtual ~COverlayDetailView() {};
81 
82 private:
84  void constructLayout();
85 
86 
87  //------------------------------------------------------------------------------
88  // METHODS
89  //------------------------------------------------------------------------------
90 
91 public:
93  void switchView( EView eView );
94 
95 };
96 
97 #endif // QVCT_COVERLAYDETAILVIEW_HPP
[UI] Overlays detail view (dock widget)
COverlayDetailView(QWidget *_pqParent=0)
void switchView(EView eView)
Displays the requested container/item details (switching to the appropriate widget)
QStackedWidget * pqStackedWidget
Stacked widget to present all viewable overlays.
void constructLayout()
Constructs the layout of the user-interface.
@ LANDMARK_CONTAINER
Landmark container.
@ POINTER_POINT
Pointer point.
@ TRACK_SUBCONTAINER
Track sub-container (segment)
@ LANDMARK_POINT
Landmark point.
@ VESSEL_CONTAINER_DEVICE
Vessel container's device.
@ VESSEL_CONTAINER
Vessel container.
@ VESSEL_POINT
Vessel point.
@ ROUTE_CONTAINER
Route container.
@ TRACK_CONTAINER
Track container.
@ VESSEL_POINT_DEVICE
Vessel point's device.