Mercurial > hg > svgui
comparison view/Pane.cpp @ 192:fcc043f75c41
* Avoid unnecessary work and updates when an invisible thumbwheel changes
author | Chris Cannam |
---|---|
date | Wed, 24 Jan 2007 17:14:24 +0000 |
parents | 5b7472db612b |
children | 942cfa1df966 |
comparison
equal
deleted
inserted
replaced
191:3ed71a9d578b | 192:fcc043f75c41 |
---|---|
59 | 59 |
60 void | 60 void |
61 Pane::updateHeadsUpDisplay() | 61 Pane::updateHeadsUpDisplay() |
62 { | 62 { |
63 Profiler profiler("Pane::updateHeadsUpDisplay", true); | 63 Profiler profiler("Pane::updateHeadsUpDisplay", true); |
64 | |
65 if (!isVisible()) return; | |
64 | 66 |
65 /* | 67 /* |
66 int count = 0; | 68 int count = 0; |
67 int currentLevel = 1; | 69 int currentLevel = 1; |
68 int level = 1; | 70 int level = 1; |
1589 } | 1591 } |
1590 | 1592 |
1591 void | 1593 void |
1592 Pane::zoomLevelChanged() | 1594 Pane::zoomLevelChanged() |
1593 { | 1595 { |
1596 std::cerr << "Pane[" << this << "]::zoomLevelChanged (global now " | |
1597 << (m_manager ? m_manager->getGlobalZoom() : 0) << ")" << std::endl; | |
1598 | |
1594 if (m_manager && m_manager->getZoomWheelsEnabled()) { | 1599 if (m_manager && m_manager->getZoomWheelsEnabled()) { |
1595 updateHeadsUpDisplay(); | 1600 updateHeadsUpDisplay(); |
1596 } | 1601 } |
1597 } | 1602 } |
1598 | 1603 |