Changeset 1780 in ntrip for trunk/BNC/bncwindow.cpp


Ignore:
Timestamp:
Apr 8, 2009, 12:07:58 PM (15 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r1751 r1780  
    4747#include "bnctabledlg.h"
    4848#include "bncipport.h"
     49#include "bncudpport.h"
    4950#include "bncserialport.h"
    5051#include "bnchlpdlg.h"
     
    827828  msgBox.setText("Add stream(s) coming from:");
    828829
    829   QPushButton *buttonNtrip = msgBox.addButton(tr("Caster"), QMessageBox::ActionRole);
    830   QPushButton *buttonIP = msgBox.addButton(tr("TCP/IP port"), QMessageBox::ActionRole);
    831   QPushButton *buttonSerial = msgBox.addButton(tr("Serial port"), QMessageBox::ActionRole);
    832   QPushButton *buttonCancel = msgBox.addButton(tr("Cancel"), QMessageBox::ActionRole);
     830  QPushButton* buttonNtrip  = msgBox.addButton(tr("Caster"), QMessageBox::ActionRole);
     831  QPushButton* buttonIP     = msgBox.addButton(tr("TCP/IP port"), QMessageBox::ActionRole);
     832  QPushButton* buttonUDP    = msgBox.addButton(tr("UDP port"), QMessageBox::ActionRole);
     833  QPushButton* buttonSerial = msgBox.addButton(tr("Serial port"), QMessageBox::ActionRole);
     834  QPushButton* buttonCancel = msgBox.addButton(tr("Cancel"), QMessageBox::ActionRole);
    833835
    834836  msgBox.exec();
     
    847849    ipp->exec();
    848850    delete ipp;
     851  } else if (msgBox.clickedButton() == buttonUDP) {
     852    bncUdpPort* udp = new bncUdpPort(this);
     853    connect(udp, SIGNAL(newMountPoints(QStringList*)),
     854          this, SLOT(slotNewMountPoints(QStringList*)));
     855    udp->exec();
     856    delete udp;
    849857  } else if (msgBox.clickedButton() == buttonSerial) {
    850858    bncSerialPort* sep = new bncSerialPort(this);
Note: See TracChangeset for help on using the changeset viewer.