Changeset 8556 in ntrip


Ignore:
Timestamp:
Dec 12, 2018, 2:01:19 PM (6 weeks ago)
Author:
mervart
Message:

Analyze more than two signals

Location:
trunk/BNC/src/rinex
Files:
3 edited

Legend:

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

    r8252 r8556  
    5656////////////////////////////////////////////////////////////////////////////
    5757t_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) {
    6160
    6261  _fileName = fileName;
     
    107106  // ------
    108107  _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 {
    110117    QHBoxLayout* plotLayout = new QHBoxLayout(_canvas);
    111118    for (int ip = 0; ip < plots.size(); ip++) {
     
    115122      plotLayout->addWidget(_colorScale);
    116123    }
    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);
    125124  }
    126125
  • trunk/BNC/src/rinex/graphwin.h

    r8252 r8556  
    5757  t_graphWin(QWidget* parent, const QString& fileName,
    5858             const QVector<QWidget*>& plots, const QByteArray* scaleTitle,
    59              const QwtInterval* scaleInterval);
     59             const QwtInterval* scaleInterval, bool specialLayout);
    6060  ~t_graphWin();
    6161
  • trunk/BNC/src/rinex/reqcanalyze.cpp

    r8555 r8556  
    672672
    673673    t_graphWin* graphWin = new t_graphWin(0, fileName, plots,
    674                                           &scaleTitle, &scaleInterval);
     674                                          &scaleTitle, &scaleInterval, false);
    675675
    676676    graphWin->show();
     
    748748    QVector<QWidget*> plots;
    749749    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);
    751751
    752752    int ww = QFontMetrics(graphWin->font()).width('w');
Note: See TracChangeset for help on using the changeset viewer.