Changeset 4307 in ntrip for trunk/BNC/src/rinex/graphwin.cpp
- Timestamp:
- Jun 23, 2012, 1:35:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/graphwin.cpp
r4304 r4307 39 39 * -----------------------------------------------------------------------*/ 40 40 41 #include <iostream>42 43 41 #include "graphwin.h" 44 42 #include "polarplot.h" … … 46 44 using namespace std; 47 45 48 49 46 // Constructor 50 47 //////////////////////////////////////////////////////////////////////////// 51 t_graphWin::t_graphWin(QWidget* parent) : QDialog(parent) { 48 t_graphWin::t_graphWin(QWidget* parent, const QVector<t_polarPlot*>& plots) : 49 QDialog(parent) { 52 50 53 setWindowTitle(tr(" Plot"));51 setWindowTitle(tr("BNC Plot")); 54 52 55 53 int ww = QFontMetrics(font()).width('w'); 56 setMinimumSize(80*ww, 40*ww); 57 58 // Multipath Plots 59 // --------------- 60 _plotMP1 = new t_polarPlot(this); 61 _plotMP2 = new t_polarPlot(this); 54 setMinimumSize(plots.size()*40*ww, 40*ww); 62 55 63 56 // Buttons … … 70 63 // ------ 71 64 QHBoxLayout* plotLayout = new QHBoxLayout; 72 plotLayout->addWidget(_plotMP1); 73 plotLayout->addWidget(_plotMP2); 65 for (int ip = 0; ip < plots.size(); ip++) { 66 plotLayout->addWidget(plots[ip]); 67 } 74 68 75 69 QHBoxLayout* buttonLayout = new QHBoxLayout;
Note:
See TracChangeset
for help on using the changeset viewer.