Changeset 82 for tools/ddd/GUI.cpp


Ignore:
Timestamp:
07/07/09 16:00:56 (15 years ago)
Author:
ogrimm
Message:
Slight GUI improvements
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ddd/GUI.cpp

    r81 r82  
    102102  Graph->setAutoReplot(true);
    103103  Graph->setCanvasBackground(QColor(Qt::yellow));
    104   Graph->setToolTip("Left mouse button to zoom (+Shift to pan)");
    105104  Zoomer = new QwtPlotZoomer(QwtPlot::xBottom,QwtPlot::yLeft,Graph->canvas());
     105  connect(Zoomer, SIGNAL(zoomed(const QwtDoubleRect &)), this, SLOT(HandleZoom(const QwtDoubleRect &)));
    106106  Panner = new QwtPlotPanner(Graph->canvas());
    107107  Panner->setMouseButton(Qt::LeftButton, Qt::ShiftModifier);
     
    112112  Signal->attach(Graph);
    113113  Signal->setStyle(QwtPlotCurve::Steps);
    114 
    115   AutoscaleBox = new QCheckBox("Autoscale", Central);
    116   AutoscaleBox->setFont(QFont("Times", 10, QFont::Bold));
    117   AutoscaleBox->setToolTip("Scale axes automatically");
    118 
    119   GraphLayout = new QVBoxLayout;
    120   GraphLayout->addWidget(Graph);
    121   GraphLayout->addWidget(AutoscaleBox);
    122114
    123115  // Text boxes for run and event header
     
    246238  M0Stop = new QSpinBox(M0Window);
    247239  M0Stop->setEnabled(false);
     240  M0Stop->setRange(0,1023);
     241  M0Stop->setValue(1023);
    248242  connect(M0Stop, SIGNAL(valueChanged(int)), this, SLOT(DisplayEvent(int)));
    249243  M0Stop->setToolTip("Last bin/sample of time window");
Note: See TracChangeset for help on using the changeset viewer.