Mercurial > hg > svgui
comparison widgets/PaneStack.cpp @ 89:803830f186ef
* Move matrix/fft file code to fileio (from base)
* Add right-button menu to panes
author | Chris Cannam |
---|---|
date | Fri, 05 May 2006 13:06:47 +0000 |
parents | 19bf27e4fb29 |
children | 4772fc75ac7c |
comparison
equal
deleted
inserted
replaced
88:6b864e6864cb | 89:803830f186ef |
---|---|
81 this, SLOT(propertyContainerAdded(PropertyContainer *))); | 81 this, SLOT(propertyContainerAdded(PropertyContainer *))); |
82 connect(pane, SIGNAL(propertyContainerRemoved(PropertyContainer *)), | 82 connect(pane, SIGNAL(propertyContainerRemoved(PropertyContainer *)), |
83 this, SLOT(propertyContainerRemoved(PropertyContainer *))); | 83 this, SLOT(propertyContainerRemoved(PropertyContainer *))); |
84 connect(pane, SIGNAL(paneInteractedWith()), | 84 connect(pane, SIGNAL(paneInteractedWith()), |
85 this, SLOT(paneInteractedWith())); | 85 this, SLOT(paneInteractedWith())); |
86 connect(pane, SIGNAL(rightButtonMenuRequested(QPoint)), | |
87 this, SLOT(rightButtonMenuRequested(QPoint))); | |
86 | 88 |
87 if (!m_currentPane) { | 89 if (!m_currentPane) { |
88 setCurrentPane(pane); | 90 setCurrentPane(pane); |
89 } | 91 } |
90 | 92 |
323 if (!pane) return; | 325 if (!pane) return; |
324 setCurrentPane(pane); | 326 setCurrentPane(pane); |
325 } | 327 } |
326 | 328 |
327 void | 329 void |
330 PaneStack::rightButtonMenuRequested(QPoint position) | |
331 { | |
332 Pane *pane = dynamic_cast<Pane *>(sender()); | |
333 if (!pane) return; | |
334 emit rightButtonMenuRequested(pane, position); | |
335 } | |
336 | |
337 void | |
328 PaneStack::sizePropertyStacks() | 338 PaneStack::sizePropertyStacks() |
329 { | 339 { |
330 int maxMinWidth = 0; | 340 int maxMinWidth = 0; |
331 | 341 |
332 for (size_t i = 0; i < m_panes.size(); ++i) { | 342 for (size_t i = 0; i < m_panes.size(); ++i) { |