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


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

Legend:

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

    r4310 r4329  
    4040
    4141#include "graphwin.h"
     42#include "qwt_scale_widget.h"
    4243
    4344using namespace std;
     
    6162  connect(_buttonOK, SIGNAL(clicked()), this, SLOT(slotOK()));
    6263
     64  // Color Scale
     65  // -----------
     66  _colorScale = new QwtScaleWidget( this );
     67  _colorScale->setAlignment( QwtScaleDraw::RightScale );
     68  _colorScale->setColorBarEnabled( true );
     69
     70   QwtText title( "Intensity" );
     71   QFont font = _colorScale->font();
     72   font.setBold( true );
     73   title.setFont( font );
     74   _colorScale->setTitle( title );
     75
     76   _colorScale->setColorMap(QwtInterval(0.0, 1.0), new t_colorMap());
     77
    6378  // Layout
    6479  // ------
     
    6782    plotLayout->addWidget(plots[ip]);
    6883  }
     84  plotLayout->addWidget(_colorScale);
    6985
    7086  QHBoxLayout* buttonLayout = new QHBoxLayout;
Note: See TracChangeset for help on using the changeset viewer.