source: ntrip/trunk/GnssCenter/monitor/dlgconf.cpp@ 5463

Last change on this file since 5463 was 5463, checked in by mervart, 11 years ago
File size: 1.5 KB
Line 
1
2/* -------------------------------------------------------------------------
3 * RTNet DlgConf
4 * -------------------------------------------------------------------------
5 *
6 * Class: t_dlgConf
7 *
8 * Purpose: Set configuration
9 *
10 * Author: L. Mervart
11 *
12 * Created: 15-Sep-2013
13 *
14 * Changes:
15 *
16 * -----------------------------------------------------------------------*/
17
18#include "dlgconf.h"
19#include "settings.h"
20#include "const.h"
21
22using namespace std;
23using namespace GnssCenter;
24
25// Constructor
26/////////////////////////////////////////////////////////////////////////////
27t_dlgConf::t_dlgConf(QWidget* parent) : QDialog(parent) {
28
29 _hostLineEdit = new QLineEdit;
30 _portLineEdit = new QLineEdit;
31
32
33 QFormLayout* formLayout = new QFormLayout;
34 formLayout->addRow("Host:", _hostLineEdit);
35 formLayout->addRow("Port:", _portLineEdit);
36
37 QPushButton* cancelButton = new QPushButton("Cancel", this);
38 QPushButton* okButton = new QPushButton("OK", this);
39 QHBoxLayout* buttonLayout = new QHBoxLayout;
40 buttonLayout->addWidget(cancelButton);
41 buttonLayout->addWidget(okButton);
42
43 QVBoxLayout* mainLayout = new QVBoxLayout;
44 mainLayout->addLayout(formLayout);
45 mainLayout->addLayout(buttonLayout);
46 setLayout(mainLayout);
47
48 t_settings settings(pluginName);
49 settings.setValue("host", "rtnet.rtcm-ntrip.org");
50 settings.setValue("port", 7777);
51 settings.sync();
52
53}
54
55// Destructor
56/////////////////////////////////////////////////////////////////////////////
57t_dlgConf::~t_dlgConf() {
58}
59
Note: See TracBrowser for help on using the repository browser.