Rev | Line | |
---|
[5454] | 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"
|
---|
[5456] | 20 | #include "const.h"
|
---|
[5454] | 21 |
|
---|
| 22 | using namespace std;
|
---|
| 23 | using namespace GnssCenter;
|
---|
| 24 |
|
---|
| 25 | // Constructor
|
---|
| 26 | /////////////////////////////////////////////////////////////////////////////
|
---|
[5455] | 27 | t_dlgConf::t_dlgConf(QWidget* parent) : QDialog(parent) {
|
---|
[5456] | 28 |
|
---|
[5461] | 29 | _hostLineEdit = new QLineEdit;
|
---|
| 30 | _portLineEdit = new QLineEdit;
|
---|
| 31 |
|
---|
| 32 | QFormLayout* formLayout = new QFormLayout;
|
---|
| 33 | formLayout->addRow("Host:", _hostLineEdit);
|
---|
| 34 | formLayout->addRow("Port:", _portLineEdit);
|
---|
| 35 |
|
---|
| 36 | setLayout(formLayout);
|
---|
| 37 |
|
---|
[5456] | 38 | t_settings settings(pluginName);
|
---|
| 39 | settings.setValue("host", "rtnet.rtcm-ntrip.org");
|
---|
| 40 | settings.setValue("port", 7777);
|
---|
| 41 | settings.sync();
|
---|
| 42 |
|
---|
[5454] | 43 | }
|
---|
| 44 |
|
---|
| 45 | // Destructor
|
---|
| 46 | /////////////////////////////////////////////////////////////////////////////
|
---|
| 47 | t_dlgConf::~t_dlgConf() {
|
---|
| 48 | }
|
---|
| 49 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.