- Timestamp:
- Mar 4, 2009, 9:52:56 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bnswindow.cpp
r1693 r1696 346 346 tab_eph->setLayout(layout_eph); 347 347 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 348 357 // Clocks & Orbits Tab 349 358 // ------------------- … … 364 373 365 374 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 } 366 382 367 383 // Broadcast Corrections I Tab … … 821 837 822 838 // Enable/disable Proxy Options 823 // ----- 839 // ---------------------------- 824 840 if (tabs->currentIndex() == 0) { 825 841 if (!isEmpty) { … … 829 845 _proxyPortLineEdit->setStyleSheet("background-color: lightGray"); 830 846 _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); 831 873 } 832 874 }
Note:
See TracChangeset
for help on using the changeset viewer.