Qt Virtual Chart Table (QVCT)
CVesselContainerDetailView.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_CVESSELCONTAINERDETAILVIEW_HPP
20 #define QVCT_CVESSELCONTAINERDETAILVIEW_HPP
21 
22 // QT
23 #include <QLabel>
24 #include <QPushButton>
25 #include <QWidget>
26 
27 // QVCT
29 class CVesselContainer;
30 class COverlayText;
31 class COverlayUrl;
32 
33 
35 
41 {
42  Q_OBJECT
43 
44  //------------------------------------------------------------------------------
45  // FIELDS
46  //------------------------------------------------------------------------------
47 
48 private:
62  QPushButton* pqPushButtonVisible;
64  QPushButton* pqPushButtonCenter;
66  QPushButton* pqPushButtonEdit;
68  QPushButton* pqPushButtonSave;
70  QPushButton* pqPushButtonDelete;
72  QPushButton* pqPushButtonSetDevice;
74  QPushButton* pqPushButtonAddPoint;
75 
76 
77  //------------------------------------------------------------------------------
78  // CONSTRUCTORS / DESTRUCTOR
79  //------------------------------------------------------------------------------
80 
81 public:
82  CVesselContainerDetailView( QWidget* _pqParent = 0 );
84 
85 private:
87  void constructLayout();
88 
89 
90  //------------------------------------------------------------------------------
91  // METHODS: COverlayObjectDetailView (implement/override)
92  //------------------------------------------------------------------------------
93 
94 public:
95  virtual void refreshContent();
96  virtual void resetContent();
97 
98 private:
99  virtual void enableContent();
100  virtual void disableContent();
101 
102 
103  //------------------------------------------------------------------------------
104  // METHODS
105  //------------------------------------------------------------------------------
106 
107  // SLOTS
108 private slots:
110  void slotToggleVisible();
112  void slotPositionCenter();
114  void slotEdit();
116  void slotSave();
118  void slotDelete();
120  void slotSetDevice();
122  void slotAddPoint();
123 
124 };
125 
126 #endif // QVCT_CVESSELCONTAINERDETAILVIEW_HPP
[UI] Generic overlay object's detail view
[UI] Overlay-specific text label
[UI] Overlay-specific URL label
Definition: COverlayUrl.hpp:36
[UI] Vessel container's detail view
QPushButton * pqPushButtonSetDevice
[UI:Button] Set device (dynamic flotilla)
virtual void disableContent()
Disables the content (controls) of the underlying widget.
void slotPositionCenter()
[UI:Slot] Slot to center chart (on container's items position)
COverlayText * poTextComment
[UI:Label] Comment
virtual void resetContent()
Resets (clears) the content of the underlying widget.
void slotToggleVisible()
[UI:Slot] Slot to modify the visibility status
virtual void refreshContent()
Refreshes the content of the underlying widget.
COverlayText * poTextType
[UI:Label] Type
void slotSave()
[UI:Slot] Slot to save this container to file
void slotAddPoint()
[UI:Slot] Slot to add new (vessel) point
QPushButton * pqPushButtonAddPoint
[UI:Button] Add new vessel
void slotDelete()
[UI:Slot] Slot to delete (this container)
QPushButton * pqPushButtonSave
[UI:Button] Save
virtual void enableContent()
Enables the content (controls) of the underlying widget.
void constructLayout()
Constructs the layout of the user-interface.
CVesselContainerDetailView(QWidget *_pqParent=0)
QPushButton * pqPushButtonVisible
[UI:Button] Visibility status
QPushButton * pqPushButtonDelete
[UI:Button] Delete
void slotSetDevice()
[UI:Slot] Slot to set device (dynamic flotilla)
COverlayText * poTextContent
[UI:Label] Content (items summary)
QPushButton * pqPushButtonEdit
[UI:Button] Edit
COverlayText * poTextName
[UI:Label] Name
COverlayText * poTextDescription
[UI:Label] Description
COverlayUrl * poUrl
[UI:Label] URL
void slotEdit()
[UI:Slot] Slot to display edit view
QPushButton * pqPushButtonCenter
[UI:Button] Center (on chart)
[UI] Vessel overlay container / flotilla