Mercurial > hg > svgui
diff view/PaneStack.cpp @ 190:53835534a9d3
* Allow user to activate a pane by clicking on the tab for its currently active
layer. Formerly nothing happened if you clicked on the tab that was already
topmost in a given property stack, because the tab widget only emitted a signal
if the current tab changed. We want this to switch focus back to the pane if
another one has been active in the mean time.
* Make the thumbwheels look a bit round.
author | Chris Cannam |
---|---|
date | Mon, 22 Jan 2007 15:42:00 +0000 |
parents | 5b7472db612b |
children | 6969f21da18a |
line wrap: on
line diff
--- a/view/PaneStack.cpp Fri Jan 19 13:13:14 2007 +0000 +++ b/view/PaneStack.cpp Mon Jan 22 15:42:00 2007 +0000 @@ -80,6 +80,8 @@ properties = new PropertyStack(frame, pane); connect(properties, SIGNAL(propertyContainerSelected(View *, PropertyContainer *)), this, SLOT(propertyContainerSelected(View *, PropertyContainer *))); + connect(properties, SIGNAL(viewSelected(View *)), + this, SLOT(viewSelected(View *))); connect(properties, SIGNAL(contextHelpChanged(const QString &)), this, SIGNAL(contextHelpChanged(const QString &))); } @@ -381,6 +383,13 @@ } void +PaneStack::viewSelected(View *v) +{ + Pane *p = dynamic_cast<Pane *>(v); + if (p) setCurrentPane(p); +} + +void PaneStack::paneInteractedWith() { Pane *pane = dynamic_cast<Pane *>(sender());