Changeset 1609 in ntrip


Ignore:
Timestamp:
Feb 18, 2009, 4:59:43 PM (15 years ago)
Author:
weber
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnc.pro

    r1558 r1609  
    3131          bncnetquery.h bncnetqueryv1.h bncnetqueryv2.h               \
    3232          bncnetqueryrtp.h bncsettings.h latencychecker.h             \
     33          bncipport.h                                                 \
    3334          RTCM/GPSDecoder.h RTCM/RTCM2.h RTCM/RTCM2Decoder.h          \
    3435          RTCM/RTCM2_2021.h RTCM/rtcm_utils.h                         \
     
    5051          bnczerodecoder.cpp bncnetqueryv1.cpp bncnetqueryv2.cpp      \
    5152          bncnetqueryrtp.cpp bncsettings.cpp latencychecker.cpp       \
     53          bncipport.cpp                                               \
    5254          RTCM/RTCM2.cpp RTCM/RTCM2Decoder.cpp                        \
    5355          RTCM/RTCM2_2021.cpp RTCM/rtcm_utils.cpp                     \
  • trunk/BNC/bncwindow.cpp

    r1605 r1609  
    771771  }
    772772
    773   bncTableDlg* dlg = new bncTableDlg(this);
    774   dlg->move(this->pos().x()+50, this->pos().y()+50);
    775   connect(dlg, SIGNAL(newMountPoints(QStringList*)),
     773  QMessageBox msgBox;
     774  msgBox.setIcon(QMessageBox::Question);
     775  msgBox.setWindowTitle("Add Streams");
     776  msgBox.setText("Add stream(s) coming from:");
     777
     778  QPushButton *buttonNtrip = msgBox.addButton(tr("Caster"), QMessageBox::ActionRole);
     779  QPushButton *buttonIP = msgBox.addButton(tr("IP port"), QMessageBox::ActionRole);
     780  QPushButton *buttonCancel = msgBox.addButton(tr("Cancel"), QMessageBox::ActionRole);
     781
     782  msgBox.exec();
     783
     784  if (msgBox.clickedButton() == buttonNtrip) {
     785    bncTableDlg* dlg = new bncTableDlg(this);
     786    dlg->move(this->pos().x()+50, this->pos().y()+50);
     787    connect(dlg, SIGNAL(newMountPoints(QStringList*)),
    776788          this, SLOT(slotNewMountPoints(QStringList*)));
    777   dlg->exec();
    778   delete dlg;
    779 
     789    dlg->exec();
     790    delete dlg;
     791  } else if (msgBox.clickedButton() == buttonIP) {
     792    bncIpPort* ipp = new bncIpPort(this);
     793    ipp->move(this->pos().x()+50, this->pos().y()+50);
     794    connect(ipp, SIGNAL(newMountPoints(QStringList*)),
     795          this, SLOT(slotNewMountPoints(QStringList*)));
     796    ipp->exec();
     797    delete ipp;
     798  } else if (msgBox.clickedButton() == buttonCancel) {
     799    // Cancel
     800  }
    780801}
    781802
Note: See TracChangeset for help on using the changeset viewer.