Changeset 66 for tools/ddd/GUI.cpp


Ignore:
Timestamp:
06/17/09 12:40:37 (15 years ago)
Author:
qweitzel
Message:
MO event display improved: start- and stopbin spinbox added
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ddd/GUI.cpp

    r60 r66  
    224224  Graph2D->setCanvasBackground(QColor(Qt::white));
    225225
     226  M0Start = new QSpinBox(M0Window);
     227  M0Start->setEnabled(false);
     228  connect(M0Start, SIGNAL(valueChanged(int)), this, SLOT(DisplayEvent(int)));
     229  M0Start->setToolTip("First bin/sample of time window");
     230  M0StartLayout = new QFormLayout; 
     231  M0StartLayout->addRow("First Bin", M0Start);
     232
     233  M0Stop = new QSpinBox(M0Window);
     234  M0Stop->setEnabled(false);
     235  connect(M0Stop, SIGNAL(valueChanged(int)), this, SLOT(DisplayEvent(int)));
     236  M0Stop->setToolTip("Last bin/sample of time window");
     237  M0StopLayout = new QFormLayout; 
     238  M0StopLayout->addRow("Last Bin", M0Stop);
     239
    226240  M0Layout = new QGridLayout(M0Window);
    227241  M0Layout->addWidget(Graph2D, 1,1,3,3);
     242  M0Layout->addLayout(M0StartLayout,4,1);
     243  M0Layout->addLayout(M0StopLayout,4,2);
    228244
    229245  Signal2D = new QwtPlotSpectrogram;
     
    260276  // Layout items
    261277  delete PortLayout;            delete CommandLayout;
     278  delete M0StartLayout;         delete M0StopLayout;
    262279  delete AddressLayout;         delete FormLayout;
    263280  delete SpinLayout;
Note: See TracChangeset for help on using the changeset viewer.