Changeset 6765 in ntrip


Ignore:
Timestamp:
Apr 4, 2015, 2:49:48 PM (7 years ago)
Author:
weber
Message:

Documentation completed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncwindow.cpp

    r6764 r6765  
    8585#endif
    8686
    87   const static QPalette paletteWhite(QColor(255, 255, 255));
    88   const static QPalette paletteGray(QColor(230, 230, 230));
    89 
    9087  _caster    = 0;
    9188  _casterEph = 0;
     
    463460  if (iRow > 0) {
    464461    enableWidget(true, _cmbMethodComboBox);
    465     _cmbMaxresLineEdit->setStyleSheet("background-color: paletteWhite");
    466     _cmbSamplSpinBox->setStyleSheet("background-color: paletteWhite");
     462    _cmbMaxresLineEdit->setStyleSheet("background-color: white");
     463    _cmbSamplSpinBox->setStyleSheet("background-color: white");
    467464    _cmbMaxresLineEdit->setEnabled(true);
    468465    _cmbSamplSpinBox->setEnabled(true);
     
    471468  else {
    472469    enableWidget(false, _cmbMethodComboBox);
    473     _cmbMaxresLineEdit->setStyleSheet("background-color: paletteGray");
    474     _cmbSamplSpinBox->setStyleSheet("background-color: paletteGray");
     470    _cmbMaxresLineEdit->setStyleSheet("background-color: lightGray");
     471    _cmbSamplSpinBox->setStyleSheet("background-color: lightGray");
    475472    _cmbMaxresLineEdit->setEnabled(false);
    476473    _cmbSamplSpinBox->setEnabled(false);
     
    21302127////////////////////////////////////////////////////////////////////////////
    21312128void bncWindow::enableWidget(bool enable, QWidget* widget) {
     2129
    21322130  const static QPalette paletteWhite(QColor(255, 255, 255));
    21332131  const static QPalette paletteGray(QColor(230, 230, 230));
     
    21432141
    21442142//  Bnc Text
    2145 ////////////////////////////////////////////////////////////////////////////
    2146 void bncWindow::slotBncTextChanged(){
     2143//////////////////////////////////////////////////////////////////////////// 
     2144void bncWindow::slotBncTextChanged(){ // weber
    21472145
    21482146  const static QPalette paletteWhite(QColor(255, 255, 255));
     
    22542252  if (sender() == 0 || sender() == _uploadEphHostLineEdit) {
    22552253    if (!_uploadEphHostLineEdit->text().isEmpty()) {
    2256       _uploadEphPortLineEdit->setStyleSheet("background-color: paletteWhite");
    2257       _uploadEphMountpointLineEdit->setStyleSheet("background-color: paletteWhite");
    2258       _uploadEphPasswordLineEdit->setStyleSheet("background-color: paletteWhite");
    2259       _uploadEphSampleSpinBox->setStyleSheet("background-color: paletteWhite");
     2254      _uploadEphPortLineEdit->setStyleSheet("background-color: white");
     2255      _uploadEphMountpointLineEdit->setStyleSheet("background-color: white");
     2256      _uploadEphPasswordLineEdit->setStyleSheet("background-color: white");
     2257      _uploadEphSampleSpinBox->setStyleSheet("background-color: white");
    22602258      _uploadEphPortLineEdit->setEnabled(true);
    22612259      _uploadEphMountpointLineEdit->setEnabled(true);
     
    22642262    }
    22652263    else {
    2266       _uploadEphPortLineEdit->setStyleSheet("background-color: paletteGray");
    2267       _uploadEphMountpointLineEdit->setStyleSheet("background-color: paletteGray");
    2268       _uploadEphPasswordLineEdit->setStyleSheet("background-color: paletteGray");
    2269       _uploadEphSampleSpinBox->setStyleSheet("background-color: paletteGray");
     2264      _uploadEphPortLineEdit->setStyleSheet("background-color: lightGray");
     2265      _uploadEphMountpointLineEdit->setStyleSheet("background-color: lightGray");
     2266      _uploadEphPasswordLineEdit->setStyleSheet("background-color: lightGray");
     2267      _uploadEphSampleSpinBox->setStyleSheet("background-color: lightGray");
    22702268      _uploadEphPortLineEdit->setEnabled(false);
    22712269      _uploadEphMountpointLineEdit->setEnabled(false);
     
    22812279    if (iRow > 0) {
    22822280      enableWidget(true, _cmbMethodComboBox);
    2283       _cmbMaxresLineEdit->setStyleSheet("background-color: paletteWhite");
    2284       _cmbSamplSpinBox->setStyleSheet("background-color: paletteWhite");
     2281      _cmbMaxresLineEdit->setStyleSheet("background-color: white");
     2282      _cmbSamplSpinBox->setStyleSheet("background-color: white");
    22852283      _cmbMaxresLineEdit->setEnabled(true);
    22862284      _cmbSamplSpinBox->setEnabled(true);
     
    22892287    else {
    22902288      enableWidget(false, _cmbMethodComboBox);
    2291       _cmbMaxresLineEdit->setStyleSheet("background-color: paletteGray");
    2292       _cmbSamplSpinBox->setStyleSheet("background-color: paletteGray");
     2289      _cmbMaxresLineEdit->setStyleSheet("background-color: lightGray");
     2290      _cmbSamplSpinBox->setStyleSheet("background-color: lightGray");
    22932291      _cmbMaxresLineEdit->setEnabled(false);
    22942292      _cmbSamplSpinBox->setEnabled(false);
     
    23422340
    23432341  enableStartStop();
    2344 }
     2342} // weber
    23452343
    23462344//
     
    23572355////////////////////////////////////////////////////////////////////////////
    23582356void bncWindow::slotDelCmbRow() {
     2357
    23592358  int nRows = _cmbTable->rowCount();
    23602359  bool flg[nRows];
Note: See TracChangeset for help on using the changeset viewer.