Changeset 1771 in ntrip for trunk/BNS/bnswindow.cpp


Ignore:
Timestamp:
Mar 24, 2009, 10:02:33 AM (15 years ago)
Author:
weber
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bnswindow.cpp

    r1728 r1771  
    2121#include "bnshlpdlg.h"
    2222#include "bnssettings.h"
     23#include "bnscustomtrafo.h"
    2324
    2425using namespace std;
     
    178179  _refSys_1_ComboBox = new QComboBox;
    179180  _refSys_1_ComboBox->setEditable(false);
    180   _refSys_1_ComboBox->addItems(QString("IGS05,ETRF2000").split(","));
     181  _refSys_1_ComboBox->addItems(QString("IGS05,ETRF2000,Custom").split(","));
    181182  int ii = _refSys_1_ComboBox->findText(settings.value("refSys_1").toString());
    182183  if (ii != -1) {
     
    196197  _refSys_2_ComboBox = new QComboBox;
    197198  _refSys_2_ComboBox->setEditable(false);
    198   _refSys_2_ComboBox->addItems(QString("IGS05,ETRF2000").split(","));
     199  _refSys_2_ComboBox->addItems(QString("IGS05,ETRF2000,Custom").split(","));
    199200  ii = _refSys_2_ComboBox->findText(settings.value("refSys_2").toString());
    200201  if (ii != -1) {
     
    214215  _refSys_3_ComboBox = new QComboBox;
    215216  _refSys_3_ComboBox->setEditable(false);
    216   _refSys_3_ComboBox->addItems(QString("IGS05,ETRF2000").split(","));
     217  _refSys_3_ComboBox->addItems(QString("IGS05,ETRF2000,Custom").split(","));
    217218  ii = _refSys_3_ComboBox->findText(settings.value("refSys_3").toString());
    218219  if (ii != -1) {
     
    437438
    438439  tab_cas1->setLayout(layout_cas1);
    439 
     440  connect(_refSys_1_ComboBox, SIGNAL(currentIndexChanged(const QString &)),
     441          this, SLOT(customTrafo(const QString)));
    440442  connect(_outHost_1_LineEdit, SIGNAL(textChanged(const QString &)),
    441443          this, SLOT(bnsText(const QString &)));
     
    488490
    489491  tab_cas2->setLayout(layout_cas2);
    490 
     492  connect(_refSys_2_ComboBox, SIGNAL(currentIndexChanged(const QString &)),
     493          this, SLOT(customTrafo(const QString)));
    491494  connect(_outHost_2_LineEdit, SIGNAL(textChanged(const QString &)),
    492495          this, SLOT(bnsText(const QString &)));
     
    539542
    540543  tab_cas3->setLayout(layout_cas3);
    541 
     544  connect(_refSys_3_ComboBox, SIGNAL(currentIndexChanged(const QString &)),
     545          this, SLOT(customTrafo(const QString)));
    542546  connect(_outHost_3_LineEdit, SIGNAL(textChanged(const QString &)),
    543547          this, SLOT(bnsText(const QString &)));
     
    814818  settings.setValue("outFile_3",   _outFile_3_LineEdit->text());
    815819  settings.setValue("beClocks3",   _beClocks2CheckBox->checkState());
    816 
    817820  settings.setValue("rnxPath",     _rnxPathLineEdit->text());
    818821  settings.setValue("rnxIntr",     _rnxIntrComboBox->currentText());
     
    954957    _ephPortLineEdit->setStyleSheet("background-color: white");
    955958    _ephEchoLineEdit->setStyleSheet("background-color: white");
     959    _ephPortLineEdit->setEnabled(true);
    956960    _ephEchoLineEdit->setEnabled(true);
    957961    } else {
    958962    _ephPortLineEdit->setStyleSheet("background-color: lightGray");
    959963    _ephEchoLineEdit->setStyleSheet("background-color: lightGray");
     964    _ephPortLineEdit->setEnabled(false);
    960965    _ephEchoLineEdit->setEnabled(false);
    961966    }
     
    11091114
    11101115}
     1116
     1117//  Custom transformation parameters
     1118////////////////////////////////////////////////////////////////////////////
     1119void bnsWindow::customTrafo(const QString &text){
     1120  if (text == "Custom" ) {
     1121    bnsCustomTrafo* dlg = new bnsCustomTrafo(this);
     1122    dlg->exec();
     1123    delete dlg;
     1124  }
     1125}
     1126 
Note: See TracChangeset for help on using the changeset viewer.