Changeset 4307 in ntrip for trunk/BNC/src/rinex/graphwin.cpp


Ignore:
Timestamp:
Jun 23, 2012, 1:35:17 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/graphwin.cpp

    r4304 r4307  
    3939 * -----------------------------------------------------------------------*/
    4040
    41 #include <iostream>
    42 
    4341#include "graphwin.h"
    4442#include "polarplot.h"
     
    4644using namespace std;
    4745
    48 
    4946// Constructor
    5047////////////////////////////////////////////////////////////////////////////
    51 t_graphWin::t_graphWin(QWidget* parent) : QDialog(parent) {
     48t_graphWin::t_graphWin(QWidget* parent, const QVector<t_polarPlot*>& plots) :
     49 QDialog(parent) {
    5250
    53   setWindowTitle(tr("Plot"));
     51  setWindowTitle(tr("BNC Plot"));
    5452
    5553  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);
    6255
    6356  // Buttons
     
    7063  // ------
    7164  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  }
    7468
    7569  QHBoxLayout* buttonLayout = new QHBoxLayout;
Note: See TracChangeset for help on using the changeset viewer.