Qt Virtual Chart Table (QVCT)
CRouteOverlayListView.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_CROUTEOVERLAYLISTVIEW_HPP
20 #define QVCT_CROUTEOVERLAYLISTVIEW_HPP
21 
22 // QT
23 #include <QPushButton>
24 #include <QStackedWidget>
25 #include <QWidget>
26 
27 // QVCT
28 class CRouteOverlay;
29 
30 
32 
37 class CRouteOverlayListView: 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  CRouteOverlayListView( QWidget* _pqParent = 0 );
68  virtual ~CRouteOverlayListView() {};
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_CROUTEOVERLAYLISTVIEW_HPP
[UI] Route overlay's list view
void slotUp()
[UI:Slot] Slot to move overlay's content up
QPushButton * pqPushButtonLoad
[UI:Button] Load
void slotDown()
[UI:Slot] Slot to move overlay's content down
QPushButton * pqPushButtonActions
[UI:Button] Actions
void slotActions()
[UI:Slot] Slot to show additional actions
QPushButton * pqPushButtonDown
[UI:Button] Down
QPushButton * pqPushButtonAdd
[UI:Button] Add
void slotAdd()
[UI:Slot] Slot to add a new container
QPushButton * pqPushButtonUp
[UI:Button] Up
void constructLayout()
Constructs the layout of the user-interface.
void slotLoad()
[UI:Slot] Slot to load overlay's content from file
CRouteOverlayListView(QWidget *_pqParent=0)
CRouteOverlay * poRouteOverlay
Route overlay.
[UI] Route overlay container