Mercurial > hg > svgui
comparison view/PaneStack.cpp @ 271:1a49bd0d8375
* Change a number of keyboard shortcuts -- get rid of all the Alt+ shortcuts
and introduce a few more Ctrl+ ones instead, as well as a number of plain
single keypresses
* Add Playback menu
* Add time-ruler support for snap to feature, use it in ffwd/rewind
(rewind still needs fixing)
* restore layer hierarchy window prior to making it work correctly
author | Chris Cannam |
---|---|
date | Thu, 28 Jun 2007 14:50:58 +0000 |
parents | 0e9f59f991aa |
children | 8acd30ed735c |
comparison
equal
deleted
inserted
replaced
270:61a704654497 | 271:1a49bd0d8375 |
---|---|
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 | 117 |
118 emit paneAdded(pane); | |
119 emit paneAdded(); | |
120 | |
118 if (!m_currentPane) { | 121 if (!m_currentPane) { |
119 setCurrentPane(pane); | 122 setCurrentPane(pane); |
120 } | 123 } |
121 | 124 |
122 return pane; | 125 return pane; |
206 std::cerr << "WARNING: PaneStack::deletePane(" << pane << "): Pane not found in visible or hidden panes, not deleting" << std::endl; | 209 std::cerr << "WARNING: PaneStack::deletePane(" << pane << "): Pane not found in visible or hidden panes, not deleting" << std::endl; |
207 return; | 210 return; |
208 } | 211 } |
209 } | 212 } |
210 | 213 |
214 emit paneAboutToBeDeleted(pane); | |
215 | |
211 delete pane->parent(); | 216 delete pane->parent(); |
212 | 217 |
213 if (m_currentPane == pane) { | 218 if (m_currentPane == pane) { |
214 if (m_panes.size() > 0) { | 219 if (m_panes.size() > 0) { |
215 setCurrentPane(m_panes[0].pane); | 220 setCurrentPane(m_panes[0].pane); |
216 } else { | 221 } else { |
217 setCurrentPane(0); | 222 setCurrentPane(0); |
218 } | 223 } |
219 } | 224 } |
225 | |
226 emit paneDeleted(); | |
220 } | 227 } |
221 | 228 |
222 int | 229 int |
223 PaneStack::getPaneCount() const | 230 PaneStack::getPaneCount() const |
224 { | 231 { |