Changeset 1696 in ntrip


Ignore:
Timestamp:
Mar 4, 2009, 9:52:56 AM (15 years ago)
Author:
weber
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bnswindow.cpp

    r1693 r1696  
    346346  tab_eph->setLayout(layout_eph);
    347347
     348  connect(_ephHostLineEdit, SIGNAL(textChanged(const QString &)),
     349          this, SLOT(bnsText(const QString &)));
     350  if (_ephHostLineEdit->text().isEmpty()) {
     351    _ephPortLineEdit->setStyleSheet("background-color: lightGray");
     352    _ephEchoLineEdit->setStyleSheet("background-color: lightGray");
     353    _ephPortLineEdit->setEnabled(false);
     354    _ephEchoLineEdit->setEnabled(false);
     355  }
     356
    348357  // Clocks & Orbits Tab
    349358  // -------------------
     
    364373
    365374  tab_co->setLayout(layout_co);
     375
     376  connect(_clkPortLineEdit, SIGNAL(textChanged(const QString &)),
     377          this, SLOT(bnsText(const QString &)));
     378  if (_clkPortLineEdit->text().isEmpty()) {
     379    _inpEchoLineEdit->setStyleSheet("background-color: lightGray");
     380    _inpEchoLineEdit->setEnabled(false);
     381  }
    366382
    367383  // Broadcast Corrections I Tab
     
    821837
    822838  // Enable/disable Proxy Options
    823   // -----
     839  // ----------------------------
    824840  if (tabs->currentIndex() == 0) {
    825841    if (!isEmpty) {
     
    829845      _proxyPortLineEdit->setStyleSheet("background-color: lightGray");
    830846      _proxyPortLineEdit->setEnabled(false);
     847    }
     848  }
     849
     850  // Enable/disable RINEX Ephemeris Options
     851  // --------------------------------------
     852  if (tabs->currentIndex() == 2) {
     853    if (!isEmpty) {
     854    _ephPortLineEdit->setStyleSheet("background-color: white");
     855    _ephEchoLineEdit->setStyleSheet("background-color: white");
     856    _ephEchoLineEdit->setEnabled(true);
     857    } else {
     858    _ephPortLineEdit->setStyleSheet("background-color: lightGray");
     859    _ephEchoLineEdit->setStyleSheet("background-color: lightGray");
     860    _ephEchoLineEdit->setEnabled(false);
     861    }
     862  }
     863
     864  // Enable/disable Clocks & Orbits Options
     865  // --------------------------------------
     866  if (tabs->currentIndex() == 3) {
     867    if (!isEmpty) {
     868    _inpEchoLineEdit->setStyleSheet("background-color: white");
     869    _inpEchoLineEdit->setEnabled(true);
     870    } else {
     871    _inpEchoLineEdit->setStyleSheet("background-color: lightGray");
     872    _inpEchoLineEdit->setEnabled(false);
    831873    }
    832874  }
Note: See TracChangeset for help on using the changeset viewer.