Mercurial > hg > svgui
comparison widgets/PropertyBox.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 | 57c2350a8c40 |
comparison
equal
deleted
inserted
replaced
189:5b7472db612b | 190:53835534a9d3 |
---|---|
610 { | 610 { |
611 QWidget *w = dynamic_cast<QWidget *>(sender()); | 611 QWidget *w = dynamic_cast<QWidget *>(sender()); |
612 if (!w) return; | 612 if (!w) return; |
613 | 613 |
614 if (!m_container) return; | 614 if (!m_container) return; |
615 QString cname = m_container->objectName(); | 615 QString cname = m_container->getPropertyContainerName(); |
616 if (cname == "") return; | 616 if (cname == "") return; |
617 | 617 |
618 QString wname = w->objectName(); | 618 QString wname = w->objectName(); |
619 | 619 |
620 if (w == m_showButton) { | 620 if (w == m_showButton) { |
621 emit contextHelpChanged(tr("Toggle Visibility of %1 layer").arg(cname)); | 621 emit contextHelpChanged(tr("Toggle Visibility of %1").arg(cname)); |
622 } else if (w == m_playButton) { | 622 } else if (w == m_playButton) { |
623 emit contextHelpChanged(tr("Toggle Playback of %1 layer").arg(cname)); | 623 emit contextHelpChanged(tr("Toggle Playback of %1").arg(cname)); |
624 } else if (wname == "") { | 624 } else if (wname == "") { |
625 return; | 625 return; |
626 } else if (dynamic_cast<NotifyingCheckBox *>(w)) { | 626 } else if (dynamic_cast<NotifyingCheckBox *>(w)) { |
627 emit contextHelpChanged(tr("Toggle %1 property of %2 layer") | 627 emit contextHelpChanged(tr("Toggle %1 property of %2") |
628 .arg(wname).arg(cname)); | 628 .arg(wname).arg(cname)); |
629 } else { | 629 } else { |
630 emit contextHelpChanged(tr("Adjust %1 property of %2 layer") | 630 emit contextHelpChanged(tr("Adjust %1 property of %2") |
631 .arg(wname).arg(cname)); | 631 .arg(wname).arg(cname)); |
632 } | 632 } |
633 } | 633 } |
634 | 634 |
635 void | 635 void |