Qt Virtual Chart Table (QVCT)
CLandmarkContainerDetailView.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_CLANDMARKCONTAINERDETAILVIEW_HPP
20 #define QVCT_CLANDMARKCONTAINERDETAILVIEW_HPP
21 
22 // QT
23 #include <QLabel>
24 #include <QPushButton>
25 #include <QWidget>
26 
27 // QVCT
29 class CLandmarkContainer;
30 class COverlayText;
31 
32 
34 
40 {
41  Q_OBJECT
42 
43  //------------------------------------------------------------------------------
44  // FIELDS
45  //------------------------------------------------------------------------------
46 
47 private:
53  QPushButton* pqPushButtonVisible;
55  QPushButton* pqPushButtonCenter;
57  QPushButton* pqPushButtonEdit;
59  QPushButton* pqPushButtonSave;
61  QPushButton* pqPushButtonDelete;
63  QPushButton* pqPushButtonAddPoint;
64 
65 
66  //------------------------------------------------------------------------------
67  // CONSTRUCTORS / DESTRUCTOR
68  //------------------------------------------------------------------------------
69 
70 public:
71  CLandmarkContainerDetailView( QWidget* _pqParent = 0 );
73 
74 private:
76  void constructLayout();
77 
78 
79  //------------------------------------------------------------------------------
80  // METHODS: COverlayObjectDetailView (implement/override)
81  //------------------------------------------------------------------------------
82 
83 public:
84  virtual void refreshContent();
85  virtual void resetContent();
86 
87 private:
88  virtual void enableContent();
89  virtual void disableContent();
90 
91 
92  //------------------------------------------------------------------------------
93  // METHODS
94  //------------------------------------------------------------------------------
95 
96  // SLOTS
97 private slots:
99  void slotToggleVisible();
101  void slotPositionCenter();
103  void slotEdit();
105  void slotSave();
107  void slotDelete();
109  void slotAddPoint();
110 
111 };
112 
113 #endif // QVCT_CLANDMARKCONTAINERDETAILVIEW_HPP
[UI] Landmark container's detail view
void slotSave()
[UI:Slot] Slot to save this container to file
QPushButton * pqPushButtonCenter
[UI:Button] Center (on chart)
QPushButton * pqPushButtonDelete
[UI:Button] Delete
void slotEdit()
[UI:Slot] Slot to display edit view
QPushButton * pqPushButtonVisible
[UI:Button] Visibility status
void slotAddPoint()
[UI:Slot] Slot to add new (landmark) point
void slotDelete()
[UI:Slot] Slot to delete (this container)
COverlayText * poTextName
[UI:Label] Name
QPushButton * pqPushButtonEdit
[UI:Button] Edit
void constructLayout()
Constructs the layout of the user-interface.
QPushButton * pqPushButtonSave
[UI:Button] Save
CLandmarkContainerDetailView(QWidget *_pqParent=0)
void slotToggleVisible()
[UI:Slot] Slot to modify the visibility status
COverlayText * poTextContent
[UI:Label] Content (items summary)
virtual void enableContent()
Enables the content (controls) of the underlying widget.
void slotPositionCenter()
[UI:Slot] Slot to center chart (on container's items position)
QPushButton * pqPushButtonAddPoint
[UI:Button] Add new (landmark) point
virtual void resetContent()
Resets (clears) the content of the underlying widget.
virtual void disableContent()
Disables the content (controls) of the underlying widget.
virtual void refreshContent()
Refreshes the content of the underlying widget.
[UI] Landmark overlay container
[UI] Generic overlay object's detail view
[UI] Overlay-specific text label