Qt Virtual Chart Table (QVCT)
CDeviceCreateView.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_CDEVICECREATEVIEW_HPP
20 #define QVCT_CDEVICECREATEVIEW_HPP
21 
22 // QT
23 #include <QComboBox>
24 #include <QDialog>
25 #include <QLineEdit>
26 
27 // QVCT
28 class CDevice;
29 
30 
32 
37 class CDeviceCreateView: public QDialog
38 {
39  Q_OBJECT
40 
41  //------------------------------------------------------------------------------
42  // FIELDS
43  //------------------------------------------------------------------------------
44 
45 private:
49  QLineEdit* pqLineEditName;
51  QComboBox* pqComboBoxDriver;
52 
53 
54  //------------------------------------------------------------------------------
55  // CONSTRUCTORS / DESTRUCTOR
56  //------------------------------------------------------------------------------
57 
58 public:
60  CDeviceCreateView( CDevice** _ppoDevice );
61  virtual ~CDeviceCreateView() {};
62 
63 private:
65  void constructLayout();
66 
67 
68  //------------------------------------------------------------------------------
69  // METHODS: QDialog (override)
70  //------------------------------------------------------------------------------
71 
72 public slots:
74  virtual void accept();
75 
76 };
77 
78 #endif // QVCT_CDEVICECREATEVIEW_HPP
[UI] Generic overlay object's pick (select) view
QLineEdit * pqLineEditName
[UI:LineEdit] Device name
CDeviceCreateView(CDevice **_ppoDevice)
CDevice ** ppoDevice
[out] Created device
QComboBox * pqComboBoxDriver
[UI:ComboBox] Device driver
void constructLayout()
Constructs the layout of the user-interface.
virtual void accept()
[override] QDialog::accept()
Generic navigation device (GPS, speedometer, compass, etc.)
Definition: CDevice.hpp:43