Changeset 9959 in ntrip
- Timestamp:
- Jan 26, 2023, 11:51:50 AM (2 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncfigureppp.cpp
r8252 r9959 29 29 * Class: bncFigurePPP 30 30 * 31 * Purpose: 31 * Purpose: 32 32 * 33 33 * Author: Mervart … … 35 35 * Created: 11-Nov-2009 36 36 * 37 * Changes: 37 * Changes: 38 38 * 39 39 * -----------------------------------------------------------------------*/ … … 60 60 // Destructor 61 61 //////////////////////////////////////////////////////////////////////////// 62 bncFigurePPP::~bncFigurePPP() { 62 bncFigurePPP::~bncFigurePPP() { 63 63 for (int ii = 0; ii < _pos.size(); ++ii) { 64 64 delete _pos[ii]; … … 66 66 } 67 67 68 // 68 // 69 69 //////////////////////////////////////////////////////////////////////////// 70 70 void bncFigurePPP::reset() { … … 77 77 } 78 78 79 // 79 // 80 80 //////////////////////////////////////////////////////////////////////////// 81 81 void bncFigurePPP::slotNewPosition(QByteArray staID, bncTime time, QVector<double> xx){ … … 85 85 bncSettings settings; 86 86 87 if (settings.value("PPP/audioResponse").toString() != "" ) { 87 if (settings.value("PPP/audioResponse").toString() != "" ) { 88 88 _audioResponseThreshold = settings.value("PPP/audioResponse").toDouble(); 89 89 } … … 136 136 } 137 137 138 // 138 // 139 139 //////////////////////////////////////////////////////////////////////////// 140 140 void bncFigurePPP::paintEvent(QPaintEvent *) { … … 157 157 // -------------------------------------------------------- 158 158 _neuMax = 0.0; 159 double neu[_pos.size()][3];159 vector< vector<double> > neu(_pos.size(), vector<double>(3)); 160 160 for (int ii = 0; ii < _pos.size(); ++ii) { 161 161 for (int ic = 0; ic < 3; ++ic) { … … 172 172 _neuMax = 0.151; 173 173 } 174 174 175 175 unsigned hour, minute; 176 176 double second; … … 223 223 if ( xFirstCharTic > pltPoint(_tMin, 0.0).x()) { 224 224 painter.setPen(QColor(Qt::black)); 225 painter.drawText(int(xFirstCharTic), int(pntTic.y() + ww * 1.7), 225 painter.drawText(int(xFirstCharTic), int(pntTic.y() + ww * 1.7), 226 226 strTic); 227 painter.drawLine(pntTic.x(), pntTic.y(), 227 painter.drawLine(pntTic.x(), pntTic.y(), 228 228 pntTic.x(), pntTic.y()+ww/2); 229 229 } -
trunk/BNC/src/bncnetqueryudp.cpp
r8252 r9959 11 11 * Created: 04-Feb-2009 12 12 * 13 * Changes: 13 * Changes: 14 14 * 15 15 * -----------------------------------------------------------------------*/ … … 50 50 } 51 51 52 // 52 // 53 53 //////////////////////////////////////////////////////////////////////////// 54 54 void bncNetQueryUdp::stop() { … … 57 57 } 58 58 59 // 59 // 60 60 //////////////////////////////////////////////////////////////////////////// 61 61 void bncNetQueryUdp::slotKeepAlive() { … … 66 66 } 67 67 68 // 68 // 69 69 //////////////////////////////////////////////////////////////////////////// 70 70 void bncNetQueryUdp::waitForRequestResult(const QUrl&, QByteArray&) { 71 71 } 72 72 73 // 73 // 74 74 //////////////////////////////////////////////////////////////////////////// 75 75 void bncNetQueryUdp::waitForReadyRead(QByteArray& outData) { … … 129 129 QString passW = QUrl::fromPercentEncoding(_url.password().toLatin1()); 130 130 QByteArray userAndPwd; 131 131 132 132 if(!uName.isEmpty() || !passW.isEmpty()) { 133 133 userAndPwd = "Authorization: Basic " + (uName.toLatin1() + ":" + 134 134 passW.toLatin1()).toBase64() + "\r\n"; 135 135 } 136 136 137 137 QByteArray reqStr = "GET " + _url.path().toLatin1() + " HTTP/1.1\r\n" 138 138 + "Host: " + _url.host().toLatin1() + "\r\n" … … 143 143 } 144 144 reqStr += userAndPwd + "Connection: close\r\n\r\n"; 145 146 char rtpbuffer[12 + reqStr.size()];145 146 std::vector <char> rtpbuffer(12 + reqStr.size()); 147 147 rtpbuffer[0] = 128; 148 148 rtpbuffer[1] = 97; … … 151 151 } 152 152 for (int ii = 0; ii < reqStr.size(); ii++) { 153 rtpbuffer[12+ii] = reqStr[ii]; 153 rtpbuffer[12+ii] = reqStr[ii]; 154 154 } 155 155 -
trunk/BNC/src/bncwindow.cpp
r9958 r9959 1835 1835 1836 1836 int nRows = _mountPointsTable->rowCount(); 1837 bool flg[nRows];1837 std::vector <bool> flg(nRows); 1838 1838 for (int iRow = 0; iRow < nRows; iRow++) { 1839 1839 if (_mountPointsTable->item(iRow,1)->isSelected()) { -
trunk/BNC/src/pppWidgets.cpp
r9907 r9959 612 612 void t_pppWidgets::slotDelStation() { 613 613 int nRows = _staTable->rowCount(); 614 bool flg[nRows];614 std::vector <bool> flg(nRows); 615 615 for (int iRow = 0; iRow < nRows; iRow++) { 616 if (_staTable->i sItemSelected(_staTable->item(iRow,1))) {616 if (_staTable->item(iRow,1)->isSelected()) { 617 617 flg[iRow] = true; 618 618 }
Note:
See TracChangeset
for help on using the changeset viewer.