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