comparison view/Pane.cpp @ 173:9c40dc10c88c

* Rename the existing Panner to Overview (big duh!) * Fixes to the new Panner.
author Chris Cannam
date Thu, 19 Oct 2006 09:57:27 +0000
parents d0b95a8cac96
children 96b8a790730a
comparison
equal deleted inserted replaced
172:d0b95a8cac96 173:9c40dc10c88c
83 layout->setMargin(0); 83 layout->setMargin(0);
84 layout->setSpacing(0); 84 layout->setSpacing(0);
85 m_headsUpDisplay->setLayout(layout); 85 m_headsUpDisplay->setLayout(layout);
86 86
87 m_hthumb = new Thumbwheel(Qt::Horizontal); 87 m_hthumb = new Thumbwheel(Qt::Horizontal);
88 layout->addWidget(m_hthumb, 1, 0, 2, 1); 88 layout->addWidget(m_hthumb, 1, 0, 1, 2);
89 m_hthumb->setFixedWidth(70); 89 m_hthumb->setFixedWidth(70);
90 m_hthumb->setFixedHeight(16); 90 m_hthumb->setFixedHeight(16);
91 m_hthumb->setDefaultValue(0); 91 m_hthumb->setDefaultValue(0);
92 m_hthumb->setSpeed(0.6); 92 m_hthumb->setSpeed(0.6);
93 connect(m_hthumb, SIGNAL(valueChanged(int)), this, 93 connect(m_hthumb, SIGNAL(valueChanged(int)), this,
94 SLOT(horizontalThumbwheelMoved(int))); 94 SLOT(horizontalThumbwheelMoved(int)));
95 95
96 m_vpan = new Panner; 96 m_vpan = new Panner;
97 layout->addWidget(m_vpan, 0, 1); 97 layout->addWidget(m_vpan, 0, 1);
98 m_vpan->setFixedWidth(16); 98 m_vpan->setFixedWidth(12);
99 m_vpan->setFixedHeight(70); 99 m_vpan->setFixedHeight(70);
100 // m_vpan->setRectExtents(0.1, 0.1, 0.4, 0.4);
100 101
101 m_vthumb = new Thumbwheel(Qt::Vertical); 102 m_vthumb = new Thumbwheel(Qt::Vertical);
102 layout->addWidget(m_vthumb, 0, 2); 103 layout->addWidget(m_vthumb, 0, 2);
103 m_vthumb->setFixedWidth(16); 104 m_vthumb->setFixedWidth(16);
104 m_vthumb->setFixedHeight(70); 105 m_vthumb->setFixedHeight(70);
557 int lly = height() - 6; 558 int lly = height() - 6;
558 int llx = width() - maxTextWidth - 5; 559 int llx = width() - maxTextWidth - 5;
559 560
560 if (m_manager->getZoomWheelsEnabled()) { 561 if (m_manager->getZoomWheelsEnabled()) {
561 lly -= 20; 562 lly -= 20;
562 llx -= 20; 563 llx -= 36;
563 } 564 }
564 565
565 if (r.x() + r.width() >= llx) { 566 if (r.x() + r.width() >= llx) {
566 567
567 for (int i = 0; i < texts.size(); ++i) { 568 for (int i = 0; i < texts.size(); ++i) {