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


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

Analyze more than two signals

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.