comparison widgets/LabelCounterInputDialog.cpp @ 369:63971199663a

* Allow entry of numbers smaller than 1 in the Set Counters dialog * Renumber Selected Instants now starts its count at the next counter value -- previously it always started at 1:1 and the values that you had set were only used when tapping * pull Reset Counters up a menu level to make it easier to get to
author Chris Cannam
date Tue, 12 Feb 2008 15:41:01 +0000
parents fee76aa923d8
children a34a2a25907c
comparison
equal deleted inserted replaced
368:eedb7f341ec5 369:63971199663a
35 35
36 label = new QLabel(tr("Coarse counter (bars):")); 36 label = new QLabel(tr("Coarse counter (bars):"));
37 layout->addWidget(label, 0, 0); 37 layout->addWidget(label, 0, 0);
38 38
39 QSpinBox *counter = new QSpinBox; 39 QSpinBox *counter = new QSpinBox;
40 counter->setMinimum(1); 40 counter->setMinimum(-10);
41 counter->setMaximum(10000); 41 counter->setMaximum(10000);
42 counter->setSingleStep(1); 42 counter->setSingleStep(1);
43 m_origSecondCounter = m_labeller->getSecondLevelCounterValue(); 43 m_origSecondCounter = m_labeller->getSecondLevelCounterValue();
44 counter->setValue(m_origSecondCounter); 44 counter->setValue(m_origSecondCounter);
45 connect(counter, SIGNAL(valueChanged(int)), 45 connect(counter, SIGNAL(valueChanged(int)),
46 this, SLOT(secondCounterChanged(int))); 46 this, SLOT(secondCounterChanged(int)));
47 layout->addWidget(counter, 0, 1); 47 layout->addWidget(counter, 0, 1);
48 48
49 counter = new QSpinBox; 49 counter = new QSpinBox;
50 counter->setMinimum(1); 50 counter->setMinimum(-10);
51 counter->setMaximum(10000); 51 counter->setMaximum(10000);
52 counter->setSingleStep(1); 52 counter->setSingleStep(1);
53 m_origCounter = m_labeller->getCounterValue(); 53 m_origCounter = m_labeller->getCounterValue();
54 counter->setValue(m_origCounter); 54 counter->setValue(m_origCounter);
55 connect(counter, SIGNAL(valueChanged(int)), 55 connect(counter, SIGNAL(valueChanged(int)),