Changeset 813 in ntrip for trunk


Ignore:
Timestamp:
Apr 9, 2008, 3:07:08 PM (17 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bnswindow.cpp

    r787 r813  
    120120  _clkPortLineEdit->setMaximumWidth(9*ww);
    121121
     122  _logFileLineEdit    = new QLineEdit(settings.value("logFile").toString());
     123  _outHostLineEdit    = new QLineEdit(settings.value("outHost").toString());
     124  _outPortLineEdit    = new QLineEdit(settings.value("outPort").toString());
     125  _mountpointLineEdit = new QLineEdit(settings.value("mountpoint").toString());
     126  _passwordLineEdit   = new QLineEdit(settings.value("password").toString());
     127  _outFileLineEdit    = new QLineEdit(settings.value("outFile").toString());
     128
    122129  // TabWidget
    123130  // ---------
    124   QTabWidget* tabs = new QTabWidget();
     131  QWidget* tabs = new QWidget();
     132  QHBoxLayout* layout1 = new QHBoxLayout;
     133
    125134  QWidget* tab_inp = new QWidget();
    126135  QWidget* tab_out = new QWidget();
    127   tabs->addTab(tab_inp,  tr("INPUT"));
    128   tabs->addTab(tab_out,  tr("OUTPUT"));
     136  layout1->addWidget(tab_inp);
     137  layout1->addSpacing(10);
     138  layout1->addWidget(tab_out);
     139
     140  tabs->setLayout(layout1);
    129141
    130142  // Input-Tab
    131143  // ---------
    132144  QGridLayout* iLayout = new QGridLayout;
    133   iLayout->addWidget(new QLabel("Port (Ephemeris)"), 0, 0, Qt::AlignLeft);
    134   iLayout->addWidget(_ephPortLineEdit, 0, 1);
    135   iLayout->addWidget(new QLabel("Port (Clocks)"), 1, 0, Qt::AlignLeft);
    136   iLayout->addWidget(_clkPortLineEdit, 1, 1);
     145  iLayout->addWidget(new QLabel("Input Ports"), 0, 0, Qt::AlignLeft);
     146  iLayout->addWidget(new QLabel("Ephemeris"), 1, 0, Qt::AlignLeft);
     147  iLayout->addWidget(_ephPortLineEdit, 1, 1);
     148  iLayout->addWidget(new QLabel("Clocks"), 2, 0, Qt::AlignLeft);
     149  iLayout->addWidget(_clkPortLineEdit, 2, 1);
     150  iLayout->addWidget(new QLabel(""), 3, 0, Qt::AlignLeft);
     151  iLayout->addWidget(new QLabel(""), 4, 0, Qt::AlignLeft);
     152  iLayout->addWidget(new QLabel(""), 5, 0, Qt::AlignLeft);
    137153  tab_inp->setLayout(iLayout);
     154
     155  // Output-Tab
     156  // ----------
     157  QGridLayout* oLayout = new QGridLayout;
     158  oLayout->addWidget(new QLabel("Log File"), 0, 0, Qt::AlignLeft);
     159  oLayout->addWidget(_logFileLineEdit, 0, 1);
     160  oLayout->addWidget(new QLabel("Output (Host)"), 1, 0, Qt::AlignLeft);
     161  oLayout->addWidget(_outHostLineEdit, 1, 1);
     162  oLayout->addWidget(new QLabel("Output (Port)"), 2, 0, Qt::AlignLeft);
     163  oLayout->addWidget(_outPortLineEdit, 2, 1);
     164  oLayout->addWidget(new QLabel("Mountpoint"),    3, 0, Qt::AlignLeft);
     165  oLayout->addWidget(_mountpointLineEdit, 3, 1);
     166  oLayout->addWidget(new QLabel("Password"),      4, 0, Qt::AlignLeft);
     167  oLayout->addWidget(_passwordLineEdit, 4, 1);
     168  oLayout->addWidget(new QLabel("Output (File)"), 5, 0, Qt::AlignLeft);
     169  oLayout->addWidget(_outFileLineEdit, 5, 1);
     170  tab_out->setLayout(oLayout);
    138171
    139172  // Log
     
    243276void bnsWindow::slotSaveOptions() {
    244277  QSettings settings;
    245   settings.setValue("ephPort",     _ephPortLineEdit->text());
    246   settings.setValue("clkPort",     _clkPortLineEdit->text());
     278  settings.setValue("ephPort",    _ephPortLineEdit->text());
     279  settings.setValue("clkPort",    _clkPortLineEdit->text());
     280  settings.setValue("logFile",    _logFileLineEdit->text());
     281  settings.setValue("outHost",    _outHostLineEdit->text());
     282  settings.setValue("outPort",    _outPortLineEdit->text());
     283  settings.setValue("mountpoint", _mountpointLineEdit->text());
     284  settings.setValue("password",   _passwordLineEdit->text());
     285  settings.setValue("outFile",    _outFileLineEdit->text());
    247286}
    248287
Note: See TracChangeset for help on using the changeset viewer.