comparison view/PaneStack.cpp @ 312:6de6f78b13a1

* Make it possible to drop audio files, layer files, session files and images onto SV panes. Need to do a bit more work on where we expect the dropped file to go, particularly in the case of audio files -- at the moment they're always opened in new panes, but it may be better to by default replace whatever is in the target pane.
author Chris Cannam
date Wed, 10 Oct 2007 15:18:02 +0000
parents 8acd30ed735c
children 2a50c1ecc990
comparison
equal deleted inserted replaced
311:fee76aa923d8 312:6de6f78b13a1
112 this, SLOT(propertyContainerRemoved(PropertyContainer *))); 112 this, SLOT(propertyContainerRemoved(PropertyContainer *)));
113 connect(pane, SIGNAL(paneInteractedWith()), 113 connect(pane, SIGNAL(paneInteractedWith()),
114 this, SLOT(paneInteractedWith())); 114 this, SLOT(paneInteractedWith()));
115 connect(pane, SIGNAL(rightButtonMenuRequested(QPoint)), 115 connect(pane, SIGNAL(rightButtonMenuRequested(QPoint)),
116 this, SLOT(rightButtonMenuRequested(QPoint))); 116 this, SLOT(rightButtonMenuRequested(QPoint)));
117 connect(pane, SIGNAL(dropAccepted(QStringList)),
118 this, SLOT(paneDropAccepted(QStringList)));
119 connect(pane, SIGNAL(dropAccepted(QString)),
120 this, SLOT(paneDropAccepted(QString)));
117 121
118 emit paneAdded(pane); 122 emit paneAdded(pane);
119 emit paneAdded(); 123 emit paneAdded();
120 124
121 if (!m_currentPane) { 125 if (!m_currentPane) {
481 } 485 }
482 486
483 emit propertyStacksResized(); 487 emit propertyStacksResized();
484 } 488 }
485 489
486 490 void
491 PaneStack::paneDropAccepted(QStringList uriList)
492 {
493 Pane *pane = dynamic_cast<Pane *>(sender());
494 emit dropAccepted(pane, uriList);
495 }
496
497 void
498 PaneStack::paneDropAccepted(QString text)
499 {
500 Pane *pane = dynamic_cast<Pane *>(sender());
501 emit dropAccepted(pane, text);
502 }
503