Mercurial > hg > svgui
comparison view/ViewManager.cpp @ 222:cd81066ac7ad
* More useful status bar text -- show the current play time and the extents of
the visible area
* Add update-i18n.sh to update the i18n/ts and qm files -- I can't get qmake
to do the right thing now that the project file has been split up into
several project files
* Fix missing Q_OBJECTs, etc, reported by lupdate
* Update Russian translation from AlexandrE
author | Chris Cannam |
---|---|
date | Wed, 07 Mar 2007 17:07:02 +0000 |
parents | e2baee498ec8 |
children | 9465b5375235 |
comparison
equal
deleted
inserted
replaced
221:9e739f92c0b8 | 222:cd81066ac7ad |
---|---|
45 m_overlayMode = OverlayMode | 45 m_overlayMode = OverlayMode |
46 (settings.value("overlay-mode", int(m_overlayMode)).toInt()); | 46 (settings.value("overlay-mode", int(m_overlayMode)).toInt()); |
47 m_zoomWheelsEnabled = | 47 m_zoomWheelsEnabled = |
48 settings.value("zoom-wheels-enabled", m_zoomWheelsEnabled).toBool(); | 48 settings.value("zoom-wheels-enabled", m_zoomWheelsEnabled).toBool(); |
49 settings.endGroup(); | 49 settings.endGroup(); |
50 | 50 /*!!! |
51 connect(this, | 51 connect(this, |
52 SIGNAL(zoomLevelChanged(void *, unsigned long, bool)), | 52 SIGNAL(zoomLevelChanged(void *, unsigned long, bool)), |
53 SLOT(considerZoomChange(void *, unsigned long, bool))); | 53 SLOT(considerZoomChange(void *, unsigned long, bool))); |
54 */ | |
54 } | 55 } |
55 | 56 |
56 ViewManager::~ViewManager() | 57 ViewManager::~ViewManager() |
57 { | 58 { |
58 } | 59 } |
377 } | 378 } |
378 } | 379 } |
379 } | 380 } |
380 | 381 |
381 void | 382 void |
382 ViewManager::considerZoomChange(void *p, unsigned long z, bool locked) | 383 ViewManager::viewZoomLevelChanged(unsigned long z, bool locked) |
383 { | 384 { |
384 emit zoomLevelChanged(); | 385 View *v = dynamic_cast<View *>(sender()); |
386 | |
387 if (!v) { | |
388 std::cerr << "ViewManager::viewZoomLevelChanged: WARNING: sender is not a view" << std::endl; | |
389 return; | |
390 } | |
391 | |
392 //!!! emit zoomLevelChanged(); | |
385 | 393 |
386 if (locked) { | 394 if (locked) { |
387 m_globalZoom = z; | 395 m_globalZoom = z; |
388 } | 396 } |
389 | 397 |
390 #ifdef DEBUG_VIEW_MANAGER | 398 #ifdef DEBUG_VIEW_MANAGER |
391 std::cout << "ViewManager::considerZoomChange(" << p << ", " << z << ", " << locked << ")" << std::endl; | 399 std::cout << "ViewManager::viewZoomLevelChanged(" << v << ", " << z << ", " << locked << ")" << std::endl; |
392 #endif | 400 #endif |
401 | |
402 emit viewZoomLevelChanged(v, z, locked); | |
393 } | 403 } |
394 | 404 |
395 void | 405 void |
396 ViewManager::setOverlayMode(OverlayMode mode) | 406 ViewManager::setOverlayMode(OverlayMode mode) |
397 { | 407 { |