Qt Virtual Chart Table (QVCT)
CVesselContainerEditView.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_CVESSELCONTAINEREDITVIEW_HPP
20 #define QVCT_CVESSELCONTAINEREDITVIEW_HPP
21 
22 // QT
23 #include <QLineEdit>
24 #include <QTextEdit>
25 #include <QWidget>
26 
27 // QVCT
29 class CVesselContainer;
30 
31 
33 
39 {
40 
41  //------------------------------------------------------------------------------
42  // FIELDS
43  //------------------------------------------------------------------------------
44 
45 private:
47  QLineEdit* pqLineEditName;
49  QLineEdit* pqLineEditType;
53  QTextEdit* pqTextEditComment;
55  QLineEdit* pqLineEditUrl;
56 
57 
58  //------------------------------------------------------------------------------
59  // CONSTRUCTORS / DESTRUCTOR
60  //------------------------------------------------------------------------------
61 
62 public:
63  CVesselContainerEditView( CVesselContainer* _poVesselContainer );
65 
66 private:
68  void constructLayout();
69 
70 
71  //------------------------------------------------------------------------------
72  // METHODS: QDialog (override)
73  //------------------------------------------------------------------------------
74 
75 public slots:
76  virtual void accept();
77 
78 };
79 
80 #endif // QVCT_CVESSELCONTAINEREDITVIEW_HPP
[UI] Generic overlay object's edit view
[UI] Vessel container's edit view
QLineEdit * pqLineEditUrl
[UI:LineEdit] URL
QTextEdit * pqTextEditComment
[UI:TextEdit] Comment
void constructLayout()
Constructs the layout of the user-interface.
CVesselContainerEditView(CVesselContainer *_poVesselContainer)
QTextEdit * pqTextEditDescription
[UI:TextEdit] Description
QLineEdit * pqLineEditType
[UI:LineEdit] Type
QLineEdit * pqLineEditName
[UI:LineEdit] Name
[UI] Vessel overlay container / flotilla