Changeset 6748 in ntrip


Ignore:
Timestamp:
Mar 29, 2015, 10:20:19 PM (10 years ago)
Author:
weber
Message:

Documentation completed

File:
1 edited

Legend:

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

    r6743 r6748  
    9898  connect(_dataSource, SIGNAL(currentIndexChanged(const QString&)), this, SLOT(slotEnableWidgets()));
    9999
     100  connect(_snxtroFile, SIGNAL(textChanged(const QString &)),
     101         this, SLOT(slotPPPTextChanged()));
     102
    100103  slotEnableWidgets();
    101104
     
    352355  }
    353356
     357  if ( _snxtroFile->text() != "" && !allDisabled) {
     358    _snxtroSampl->setEnabled(true);   
     359  }
     360  else {
     361    _snxtroSampl->setEnabled(false);   
     362  }
     363
    354364  _dataSource->setEnabled(true);
    355365
     
    396406}
    397407
     408//  PPP Text
     409////////////////////////////////////////////////////////////////////////////
     410void t_pppWidgets::slotPPPTextChanged(){
     411
     412  const static QPalette paletteWhite(QColor(255, 255, 255));
     413  const static QPalette paletteGray(QColor(230, 230, 230));
     414
     415  // SNX TRO file sampling
     416  // ---------------------
     417  if (sender() == 0 || sender() == _snxtroFile) {
     418    if ( _snxtroFile->text() != "" ) { 
     419      _snxtroSampl->setEnabled(true);   
     420      _snxtroSampl->setPalette(paletteWhite);
     421    }
     422    else {
     423    _snxtroSampl->setEnabled(false);   
     424    _snxtroSampl->setPalette(paletteGray);
     425    }
     426  }
     427}
Note: See TracChangeset for help on using the changeset viewer.