Changeset 8566 in ntrip
- Timestamp:
- Dec 13, 2018, 2:36:28 PM (6 years ago)
- Location:
- trunk/BNC/src/rinex
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/graphwin.cpp
r8556 r8566 55 55 // Constructor 56 56 //////////////////////////////////////////////////////////////////////////// 57 t_graphWin::t_graphWin(QWidget* parent, const QString& fileName, 58 const QVector<QWidget*>& plots, const QByteArray* scaleTitle, 59 const QwtInterval* scaleInterval, bool specialLayout) : QDialog(parent) { 57 t_graphWin::t_graphWin(QWidget* parent, const QString& fileName, const QVector<QWidget*>& plots, 58 bool specialLayout, const QByteArray* scaleTitle, 59 const QwtInterval* scaleInterval, 60 const QVector<int>* rows) : QDialog(parent) { 60 61 61 62 _fileName = fileName; … … 66 67 67 68 int ww = QFontMetrics(font()).width('w'); 68 setMinimumSize(plots.size()*40*ww, 40*ww);69 69 70 70 // Buttons … … 115 115 } 116 116 else { 117 QHBoxLayout* plotLayout = new QHBoxLayout(_canvas); 117 int iRow = -1; 118 QVBoxLayout* plotLayout = new QVBoxLayout(_canvas); 119 QHBoxLayout* rowLayout = new QHBoxLayout(); 118 120 for (int ip = 0; ip < plots.size(); ip++) { 119 plotLayout->addWidget(plots[ip]); 121 if (rows) { 122 if (iRow != -1 && iRow != rows->at(ip)) { 123 plotLayout->addLayout(rowLayout); 124 rowLayout = new QHBoxLayout(); 125 } 126 iRow = rows->at(ip); 127 } 128 plots[ip]->setMinimumSize(30*ww, 30*ww); 129 rowLayout->addWidget(plots[ip]); 120 130 } 121 131 if (_colorScale) { 122 plotLayout->addWidget(_colorScale);132 rowLayout->addWidget(_colorScale); 123 133 } 134 plotLayout->addLayout(rowLayout); 124 135 } 125 136 -
trunk/BNC/src/rinex/graphwin.h
r8556 r8566 55 55 56 56 public: 57 t_graphWin(QWidget* parent, const QString& fileName, 58 const QVector<QWidget*>& plots, const QByteArray* scaleTitle,59 const QwtInterval* scaleInterval , bool specialLayout);57 t_graphWin(QWidget* parent, const QString& fileName, const QVector<QWidget*>& plots, 58 bool specialLayout, const QByteArray* scaleTitle = 0, 59 const QwtInterval* scaleInterval = 0, const QVector<int>* rows = 0); 60 60 ~t_graphWin(); 61 61 -
trunk/BNC/src/rinex/reqcanalyze.cpp
r8564 r8566 547 547 it1 != _signalTypes.end(); it1++) { 548 548 549 char sys = it1.key(); 550 549 551 for (int ii = 0; ii < it1.value().size(); ii++) { 550 552 551 skyPlotDataMP.append(t_skyPlotData( )); t_skyPlotData& dataMP = skyPlotDataMP.last();552 skyPlotDataSN.append(t_skyPlotData( )); t_skyPlotData& dataSN = skyPlotDataSN.last();553 skyPlotDataMP.append(t_skyPlotData(sys)); t_skyPlotData& dataMP = skyPlotDataMP.last(); 554 skyPlotDataSN.append(t_skyPlotData(sys)); t_skyPlotData& dataSN = skyPlotDataSN.last(); 553 555 554 556 dataMP._title = "Multipath\n" + QString(it1.key()) + ":" + it1.value()[ii] + " "; … … 611 613 612 614 QVector<QWidget*> plots; 615 QVector<int> rows; 613 616 QMutableVectorIterator<t_skyPlotData> it(skyPlotData); 617 int iRow = 0; 618 char sys = ' '; 614 619 while (it.hasNext()) { 615 620 t_skyPlotData& plotData = it.next(); … … 620 625 plot->addCurve(data); 621 626 plots << plot; 622 } 623 624 t_graphWin* graphWin = new t_graphWin(0, fileName, plots, 625 &scaleTitle, &scaleInterval, false); 627 if (sys != ' ' && sys != plotData._sys) { 628 iRow += 1; 629 } 630 sys = plotData._sys; 631 rows << iRow; 632 } 633 634 t_graphWin* graphWin = new t_graphWin(0, fileName, plots, false, 635 &scaleTitle, &scaleInterval, &rows); 626 636 627 637 graphWin->show(); … … 699 709 QVector<QWidget*> plots; 700 710 plots << plotA << plotZ << plotD; 701 t_graphWin* graphWin = new t_graphWin(0, fileName, plots, 0, 0,true);711 t_graphWin* graphWin = new t_graphWin(0, fileName, plots, true); 702 712 703 713 int ww = QFontMetrics(graphWin->font()).width('w'); -
trunk/BNC/src/rinex/reqcanalyze.h
r8559 r8566 60 60 public: 61 61 t_skyPlotData() { 62 _sys = ' '; 62 63 _data = new QVector<t_polarPoint*>; 63 64 } 65 t_skyPlotData(char sys) { 66 _sys = sys; 67 _data = new QVector<t_polarPoint*>; 68 } 64 69 ~t_skyPlotData() {} 70 char _sys; 65 71 QString _title; 66 72 QVector<t_polarPoint*>* _data;
Note:
See TracChangeset
for help on using the changeset viewer.