Changeset 4307 in ntrip


Ignore:
Timestamp:
Jun 23, 2012, 1:35:17 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/rinex
Files:
3 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;
  • trunk/BNC/src/rinex/graphwin.h

    r4304 r4307  
    3333class t_graphWin : public QDialog {
    3434
    35   Q_OBJECT
     35 Q_OBJECT
    3636
    37   public:
    38     t_graphWin(QWidget* parent);
    39     ~t_graphWin();
     37 public:
     38  t_graphWin(QWidget* parent, const QVector<t_polarPlot*>& plots);
     39  ~t_graphWin();
    4040
    41   signals:
     41 signals:
    4242
    43   private slots:
    44     void slotOK();
     43 private slots:
     44  void slotOK();
    4545
    46   protected:
    47     virtual void closeEvent(QCloseEvent *);
     46 protected:
     47  virtual void closeEvent(QCloseEvent *);
    4848
    49   private:
    50    QPushButton* _buttonOK;
    51    t_polarPlot* _plotMP1;
    52    t_polarPlot* _plotMP2;
     49 private:
     50  QPushButton* _buttonOK;
    5351};
    5452
  • trunk/BNC/src/rinex/reqcanalyze.cpp

    r4300 r4307  
    4747#include "bncpostprocess.h"
    4848#include "graphwin.h"
     49#include "polarplot.h"
    4950
    5051using namespace std;
     
    8384////////////////////////////////////////////////////////////////////////////
    8485void t_reqcAnalyze::slotDisplayGraph() {
    85   t_graphWin* graphWin = new t_graphWin(0);
     86  QVector<t_polarPlot*> plots;
     87  t_polarPlot* plotMP1 = new t_polarPlot(0); plots << plotMP1;
     88  t_polarPlot* plotMP2 = new t_polarPlot(0); plots << plotMP2;
     89
     90  t_graphWin* graphWin = new t_graphWin(0, plots);
    8691  graphWin->show();
    8792}
Note: See TracChangeset for help on using the changeset viewer.