Mercurial > hg > svgui
comparison view/View.cpp @ 133:9e6b3e239b9d
* Add zoom thumbwheels to Pane. Implement horizontal thumbwheel, and
vertical depending on layer type (supported for waveform and spectrogram,
though wrong for log-scale spectrogram at the moment).
* Add bare bones of a spectrum layer.
* Add window icon
* Add shortcut for "insert time instant" on laptops without keypad enter (";")
* Delete FFT processing thread when it exits (at least, next time we're asked
for something interesting)
* Get audio file extensions from the file readers, and thus from libsndfile for
the wave file reader -- leads to rather a wide combo box in file dialog though
* Better refresh order for spectrogram (redraw centre section first)
| author | Chris Cannam |
|---|---|
| date | Fri, 04 Aug 2006 17:01:37 +0000 |
| parents | 5d3a483856ff |
| children | 10a82b2bbb8b |
comparison
equal
deleted
inserted
replaced
| 132:5d3a483856ff | 133:9e6b3e239b9d |
|---|---|
| 258 | 258 |
| 259 void | 259 void |
| 260 View::toolModeChanged() | 260 View::toolModeChanged() |
| 261 { | 261 { |
| 262 // std::cerr << "View::toolModeChanged(" << m_manager->getToolMode() << ")" << std::endl; | 262 // std::cerr << "View::toolModeChanged(" << m_manager->getToolMode() << ")" << std::endl; |
| 263 } | |
| 264 | |
| 265 void | |
| 266 View::overlayModeChanged() | |
| 267 { | |
| 268 update(); | |
| 269 } | |
| 270 | |
| 271 void | |
| 272 View::zoomWheelsEnabledChanged() | |
| 273 { | |
| 274 // subclass might override this | |
| 263 } | 275 } |
| 264 | 276 |
| 265 long | 277 long |
| 266 View::getStartFrame() const | 278 View::getStartFrame() const |
| 267 { | 279 { |
| 523 connect(m_manager, SIGNAL(selectionChanged()), | 535 connect(m_manager, SIGNAL(selectionChanged()), |
| 524 this, SLOT(selectionChanged())); | 536 this, SLOT(selectionChanged())); |
| 525 connect(m_manager, SIGNAL(inProgressSelectionChanged()), | 537 connect(m_manager, SIGNAL(inProgressSelectionChanged()), |
| 526 this, SLOT(selectionChanged())); | 538 this, SLOT(selectionChanged())); |
| 527 connect(m_manager, SIGNAL(overlayModeChanged()), | 539 connect(m_manager, SIGNAL(overlayModeChanged()), |
| 528 this, SLOT(update())); | 540 this, SLOT(overlayModeChanged())); |
| 541 connect(m_manager, SIGNAL(zoomWheelsEnabledChanged()), | |
| 542 this, SLOT(zoomWheelsEnabledChanged())); | |
| 529 | 543 |
| 530 connect(this, SIGNAL(centreFrameChanged(void *, unsigned long, bool)), | 544 connect(this, SIGNAL(centreFrameChanged(void *, unsigned long, bool)), |
| 531 m_manager, SIGNAL(centreFrameChanged(void *, unsigned long, bool))); | 545 m_manager, SIGNAL(centreFrameChanged(void *, unsigned long, bool))); |
| 532 connect(this, SIGNAL(zoomLevelChanged(void *, unsigned long, bool)), | 546 connect(this, SIGNAL(zoomLevelChanged(void *, unsigned long, bool)), |
| 533 m_manager, SIGNAL(zoomLevelChanged(void *, unsigned long, bool))); | 547 m_manager, SIGNAL(zoomLevelChanged(void *, unsigned long, bool))); |
