Qt Virtual Chart Table (QVCT)
CVesselOverlayListView.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_CVESSELOVERLAYLISTVIEW_HPP
20 #define QVCT_CVESSELOVERLAYLISTVIEW_HPP
21 
22 // QT
23 #include <QPushButton>
24 #include <QStackedWidget>
25 #include <QWidget>
26 
27 // QVCT
28 class CVesselOverlay;
29 
30 
32 
37 class CVesselOverlayListView: public QWidget
38 {
39  Q_OBJECT
40 
41 
42  //------------------------------------------------------------------------------
43  // FIELDS
44  //------------------------------------------------------------------------------
45 
46 private:
49 
51  QPushButton* pqPushButtonAdd;
53  QPushButton* pqPushButtonLoad;
55  QPushButton* pqPushButtonUp;
57  QPushButton* pqPushButtonDown;
59  QPushButton* pqPushButtonActions;
60 
61 
62  //------------------------------------------------------------------------------
63  // CONSTRUCTORS / DESTRUCTOR
64  //------------------------------------------------------------------------------
65 
66 public:
67  CVesselOverlayListView( QWidget* _pqParent = 0 );
69 
70 private:
72  void constructLayout();
73 
74 
75  //------------------------------------------------------------------------------
76  // METHODS
77  //------------------------------------------------------------------------------
78 
79  // SLOTS
80 private slots:
82  void slotAdd();
84  void slotLoad();
86  void slotUp();
88  void slotDown();
90  void slotActions();
91 
92 };
93 
94 #endif // QVCT_CVESSELOVERLAYLISTVIEW_HPP
[UI] Vessel overlay's list view
void slotActions()
[UI:Slot] Slot to show additional actions
void constructLayout()
Constructs the layout of the user-interface.
QPushButton * pqPushButtonLoad
[UI:Button] Load
void slotDown()
[UI:Slot] Slot to move overlay's content down
void slotLoad()
[UI:Slot] Slot to load overlay's content from file
void slotAdd()
[UI:Slot] Slot to add a new container
QPushButton * pqPushButtonActions
[UI:Button] Actions
QPushButton * pqPushButtonAdd
[UI:Button] Add
QPushButton * pqPushButtonUp
[UI:Button] Up
QPushButton * pqPushButtonDown
[UI:Button] Down
void slotUp()
[UI:Slot] Slot to move overlay's content up
CVesselOverlayListView(QWidget *_pqParent=0)
CVesselOverlay * poVesselOverlay
Vessel overlay.
[UI] Vessel overlay container