comparison view/View.cpp @ 235:efadb9d2b2c6

* Experiment with sizing the property stacks and using a frame on the overview widget with an eye to making the default empty window look a bit nicer
author Chris Cannam
date Mon, 16 Apr 2007 12:20:27 +0000
parents 387f2f6fc333
children 90122740323f
comparison
equal deleted inserted replaced
234:b4809e942e7d 235:efadb9d2b2c6
53 m_deleting(false), 53 m_deleting(false),
54 m_haveSelectedLayer(false), 54 m_haveSelectedLayer(false),
55 m_manager(0), 55 m_manager(0),
56 m_propertyContainer(new ViewPropertyContainer(this)) 56 m_propertyContainer(new ViewPropertyContainer(this))
57 { 57 {
58 // QWidget::setAttribute(Qt::WA_PaintOnScreen);
59 } 58 }
60 59
61 View::~View() 60 View::~View()
62 { 61 {
63 // std::cerr << "View::~View(" << this << ")" << std::endl; 62 // std::cerr << "View::~View(" << this << ")" << std::endl;
555 disconnect(m_manager, SLOT(viewCentreFrameChanged(unsigned long, bool, PlaybackFollowMode))); 554 disconnect(m_manager, SLOT(viewCentreFrameChanged(unsigned long, bool, PlaybackFollowMode)));
556 disconnect(m_manager, SLOT(zoomLevelChanged(unsigned long, bool))); 555 disconnect(m_manager, SLOT(zoomLevelChanged(unsigned long, bool)));
557 } 556 }
558 557
559 m_manager = manager; 558 m_manager = manager;
560 if (m_followPan) setCentreFrame(m_manager->getGlobalCentreFrame(), false); 559 if (m_followPlay != PlaybackIgnore) {
560 setCentreFrame(m_manager->getPlaybackFrame(), false);
561 } else if (m_followPan) {
562 setCentreFrame(m_manager->getGlobalCentreFrame(), false);
563 }
561 if (m_followZoom) setZoomLevel(m_manager->getGlobalZoom()); 564 if (m_followZoom) setZoomLevel(m_manager->getGlobalZoom());
562 565
563 connect(m_manager, SIGNAL(globalCentreFrameChanged(unsigned long)), 566 connect(m_manager, SIGNAL(globalCentreFrameChanged(unsigned long)),
564 this, SLOT(globalCentreFrameChanged(unsigned long))); 567 this, SLOT(globalCentreFrameChanged(unsigned long)));
565 connect(m_manager, SIGNAL(viewCentreFrameChanged(View *, unsigned long)), 568 connect(m_manager, SIGNAL(viewCentreFrameChanged(View *, unsigned long)),