comparison view/Pane.cpp @ 363:6167a28d25fc sv1-v1.2pre3

* line up overview widget nicely with main pane (at least on first startup) * fix #1878396 renaming layer seems to have no visible effect * comment out some debug output
author Chris Cannam
date Wed, 06 Feb 2008 17:40:53 +0000
parents 1b6879d03cb6
children e1a9e478b7f2
comparison
equal deleted inserted replaced
362:a9dfa2d6d5ac 363:6167a28d25fc
47 #include "widgets/Panner.h" 47 #include "widgets/Panner.h"
48 #include "widgets/RangeInputDialog.h" 48 #include "widgets/RangeInputDialog.h"
49 #include "widgets/NotifyingPushButton.h" 49 #include "widgets/NotifyingPushButton.h"
50 50
51 #include "widgets/KeyReference.h" //!!! should probably split KeyReference into a data class in base and another that shows the widget 51 #include "widgets/KeyReference.h" //!!! should probably split KeyReference into a data class in base and another that shows the widget
52
53 //#define DEBUG_PANE
52 54
53 using std::cerr; 55 using std::cerr;
54 using std::endl; 56 using std::endl;
55 57
56 QCursor *Pane::m_measureCursor1 = 0; 58 QCursor *Pane::m_measureCursor1 = 0;
1699 } else if (newCentreFrame >= size_t(frameOff)) { 1701 } else if (newCentreFrame >= size_t(frameOff)) {
1700 newCentreFrame -= frameOff; 1702 newCentreFrame -= frameOff;
1701 } else { 1703 } else {
1702 newCentreFrame = 0; 1704 newCentreFrame = 0;
1703 } 1705 }
1704 1706
1707 #ifdef DEBUG_PANE
1705 std::cerr << "Pane::dragTopLayer: newCentreFrame = " << newCentreFrame << 1708 std::cerr << "Pane::dragTopLayer: newCentreFrame = " << newCentreFrame <<
1706 ", models end frame = " << getModelsEndFrame() << std::endl; 1709 ", models end frame = " << getModelsEndFrame() << std::endl;
1710 #endif
1707 1711
1708 if (newCentreFrame >= getModelsEndFrame()) { 1712 if (newCentreFrame >= getModelsEndFrame()) {
1709 newCentreFrame = getModelsEndFrame(); 1713 newCentreFrame = getModelsEndFrame();
1710 if (newCentreFrame > 0) --newCentreFrame; 1714 if (newCentreFrame > 0) --newCentreFrame;
1711 } 1715 }