Changeset 8556 in ntrip for trunk/BNC/src
- Timestamp:
- Dec 12, 2018, 2:01:19 PM (6 years ago)
- Location:
- trunk/BNC/src/rinex
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/graphwin.cpp
r8252 r8556 56 56 //////////////////////////////////////////////////////////////////////////// 57 57 t_graphWin::t_graphWin(QWidget* parent, const QString& fileName, 58 const QVector<QWidget*>& plots, 59 const QByteArray* scaleTitle, 60 const QwtInterval* scaleInterval) : QDialog(parent) { 58 const QVector<QWidget*>& plots, const QByteArray* scaleTitle, 59 const QwtInterval* scaleInterval, bool specialLayout) : QDialog(parent) { 61 60 62 61 _fileName = fileName; … … 107 106 // ------ 108 107 _canvas = new QWidget(this); 109 if (plots.size() != 3) { 108 if (specialLayout) { 109 QHBoxLayout* plotLayout = new QHBoxLayout(_canvas); 110 plotLayout->addWidget(plots[0]); 111 QVBoxLayout* hlpLayout = new QVBoxLayout; 112 hlpLayout->addWidget(plots[1]); 113 hlpLayout->addWidget(plots[2]); 114 plotLayout->addLayout(hlpLayout); 115 } 116 else { 110 117 QHBoxLayout* plotLayout = new QHBoxLayout(_canvas); 111 118 for (int ip = 0; ip < plots.size(); ip++) { … … 115 122 plotLayout->addWidget(_colorScale); 116 123 } 117 }118 else {119 QHBoxLayout* plotLayout = new QHBoxLayout(_canvas);120 plotLayout->addWidget(plots[0]);121 QVBoxLayout* hlpLayout = new QVBoxLayout;122 hlpLayout->addWidget(plots[1]);123 hlpLayout->addWidget(plots[2]);124 plotLayout->addLayout(hlpLayout);125 124 } 126 125 -
trunk/BNC/src/rinex/graphwin.h
r8252 r8556 57 57 t_graphWin(QWidget* parent, const QString& fileName, 58 58 const QVector<QWidget*>& plots, const QByteArray* scaleTitle, 59 const QwtInterval* scaleInterval );59 const QwtInterval* scaleInterval, bool specialLayout); 60 60 ~t_graphWin(); 61 61 -
trunk/BNC/src/rinex/reqcanalyze.cpp
r8555 r8556 672 672 673 673 t_graphWin* graphWin = new t_graphWin(0, fileName, plots, 674 &scaleTitle, &scaleInterval );674 &scaleTitle, &scaleInterval, false); 675 675 676 676 graphWin->show(); … … 748 748 QVector<QWidget*> plots; 749 749 plots << plotA << plotZ << plotD; 750 t_graphWin* graphWin = new t_graphWin(0, fileName, plots, 0, 0 );750 t_graphWin* graphWin = new t_graphWin(0, fileName, plots, 0, 0, true); 751 751 752 752 int ww = QFontMetrics(graphWin->font()).width('w');
Note:
See TracChangeset
for help on using the changeset viewer.