Changeset 1795 in ntrip


Ignore:
Timestamp:
Apr 17, 2009, 9:54:29 AM (15 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNS
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bnssettings.cpp

    r1772 r1795  
    6262    setValue("outFile_3",   "");
    6363
     64    setValue("outHostEph",    "");
     65    setValue("outPortEph",    "");
     66    setValue("mountpoint_Eph","");
     67    setValue("passwordEph",   "");
     68
    6469    setValue("trafo_dx",    "0.0541");
    6570    setValue("trafo_dy",    "0.0502");
  • trunk/BNS/bnswindow.cpp

    r1771 r1795  
    223223  _beClocks3CheckBox  = new QCheckBox();
    224224  _beClocks3CheckBox->setCheckState(Qt::CheckState(settings.value("beClocks3").toInt()));
     225
     226  // Broadcast Ephemerides
     227  // ---------------------
     228  _outHost_Eph_LineEdit    = new QLineEdit(settings.value("outHostEph").toString());
     229  _outPort_Eph_LineEdit    = new QLineEdit(settings.value("outPortEph").toString());
     230  _password_Eph_LineEdit   = new QLineEdit(settings.value("passwordEph").toString());
     231  _password_Eph_LineEdit->setEchoMode(QLineEdit::Password);
     232  _mountpoint_Eph_LineEdit = new QLineEdit(settings.value("mountpoint_Eph").toString());
    225233
    226234  // RINEX Clocks Options
     
    562570  }
    563571
     572  // Broadcast Ephemerides
     573  // ---------------------
     574  QWidget* tab_casEph = new QWidget();
     575  tabs->addTab(tab_casEph, "Broadcast Ephemerides");
     576
     577  QGridLayout* layout_casEph = new QGridLayout;
     578
     579  layout_casEph->setColumnMinimumWidth(0, 9*ww);
     580  _outPort_Eph_LineEdit->setMaximumWidth(9*ww);
     581  _password_Eph_LineEdit->setMaximumWidth(9*ww);
     582  _mountpoint_Eph_LineEdit->setMaximumWidth(12*ww);
     583
     584  layout_casEph->addWidget(new QLabel("Host"),               0, 0);
     585  layout_casEph->addWidget(_outHost_Eph_LineEdit,              0, 1, 1, 3);
     586  layout_casEph->addWidget(new QLabel("  Port"),             0, 4, Qt::AlignRight);
     587  layout_casEph->addWidget(_outPort_Eph_LineEdit,              0, 5, 1, 10);
     588  layout_casEph->addWidget(new QLabel("Mountpoint"),         1, 0);
     589  layout_casEph->addWidget(_mountpoint_Eph_LineEdit,           1, 1);
     590  layout_casEph->addWidget(new QLabel("Password"),           1, 2, Qt::AlignRight);
     591  layout_casEph->addWidget(_password_Eph_LineEdit,             1, 3);
     592  layout_casEph->addWidget(new QLabel("Concatenated Broadcast Ephemerides"), 2, 0, 1, 50);
     593
     594  tab_casEph->setLayout(layout_casEph);
     595  connect(_outHost_Eph_LineEdit, SIGNAL(textChanged(const QString &)),
     596          this, SLOT(bnsText(const QString &)));
     597  if (_outHost_Eph_LineEdit->text().isEmpty()) {
     598    _outPort_Eph_LineEdit->setStyleSheet("background-color: lightGray");
     599    _mountpoint_Eph_LineEdit->setStyleSheet("background-color: lightGray");
     600    _password_Eph_LineEdit->setStyleSheet("background-color: lightGray");
     601    _outPort_Eph_LineEdit->setEnabled(false);
     602    _mountpoint_Eph_LineEdit->setEnabled(false);
     603    _password_Eph_LineEdit->setEnabled(false);
     604  }
     605
    564606  // RINEX Clocks Tab
    565607  // ----------------
     
    818860  settings.setValue("outFile_3",   _outFile_3_LineEdit->text());
    819861  settings.setValue("beClocks3",   _beClocks2CheckBox->checkState());
     862
     863  settings.setValue("outHostEph",    _outHost_Eph_LineEdit->text());
     864  settings.setValue("outPortEph",    _outPort_Eph_LineEdit->text());
     865  settings.setValue("mountpoint_Eph",_mountpoint_Eph_LineEdit->text());
     866  settings.setValue("passwordEph",   _password_Eph_LineEdit->text());
     867
    820868  settings.setValue("rnxPath",     _rnxPathLineEdit->text());
    821869  settings.setValue("rnxIntr",     _rnxIntrComboBox->currentText());
     
    10811129  }
    10821130
     1131  // Enable/disable Broadcast Ephemerides
     1132  // ------------------------------------k-----------
     1133  if (tabs->currentIndex() == 7) {
     1134    if (!isEmpty) {
     1135      _outPort_Eph_LineEdit->setStyleSheet("background-color: white");
     1136      _mountpoint_Eph_LineEdit->setStyleSheet("background-color: white");
     1137      _password_Eph_LineEdit->setStyleSheet("background-color: white");
     1138      _outPort_Eph_LineEdit->setEnabled(true);
     1139      _mountpoint_Eph_LineEdit->setEnabled(true);
     1140      _password_Eph_LineEdit->setEnabled(true);
     1141    } else {
     1142      _outPort_Eph_LineEdit->setStyleSheet("background-color: lightGray");
     1143      _mountpoint_Eph_LineEdit->setStyleSheet("background-color: lightGray");
     1144      _password_Eph_LineEdit->setStyleSheet("background-color: lightGray");
     1145      _outPort_Eph_LineEdit->setEnabled(false);
     1146      _mountpoint_Eph_LineEdit->setEnabled(false);
     1147      _password_Eph_LineEdit->setEnabled(false);
     1148    }
     1149  }
     1150
    10831151  // Enable/disable RINEX Clocks Options
    10841152  // -----------------------------------
    1085   if (tabs->currentIndex() == 7) {
     1153  if (tabs->currentIndex() == 8) {
    10861154    if (!isEmpty) {
    10871155      _rnxIntrComboBox->setStyleSheet("background-color: white");
     
    10991167  // Enable/disable SP3 Orbits Options
    11001168  // ---------------------------------
    1101   if (tabs->currentIndex() == 8) {
     1169  if (tabs->currentIndex() == 9) {
    11021170    if (!isEmpty) {
    11031171      _sp3IntrComboBox->setStyleSheet("background-color: white");
  • trunk/BNS/bnswindow.h

    r1771 r1795  
    113113  QCheckBox* _beClocks3CheckBox;
    114114
     115  QLineEdit* _outHost_Eph_LineEdit;
     116  QLineEdit* _outPort_Eph_LineEdit;
     117  QLineEdit* _mountpoint_Eph_LineEdit;
     118  QLineEdit* _password_Eph_LineEdit;
     119
    115120  QLineEdit* _rnxPathLineEdit;
    116121  QComboBox* _rnxIntrComboBox;
Note: See TracChangeset for help on using the changeset viewer.