Mercurial > hg > svgui
comparison widgets/PropertyBox.cpp @ 707:461a600ff26d tonioni
Toward using a sample mixer (with arbitrary frequency target) instead of dssi player plugin
author | Chris Cannam |
---|---|
date | Tue, 07 Jan 2014 10:57:53 +0000 |
parents | 692a8b9804fe |
children | 596414d20ef0 |
comparison
equal
deleted
inserted
replaced
705:52e5f6fe31ad | 707:461a600ff26d |
---|---|
186 this, SLOT(playAudibleChanged(bool))); | 186 this, SLOT(playAudibleChanged(bool))); |
187 layout->setAlignment(m_playButton, Qt::AlignVCenter); | 187 layout->setAlignment(m_playButton, Qt::AlignVCenter); |
188 | 188 |
189 layout->insertStretch(-1, 10); | 189 layout->insertStretch(-1, 10); |
190 | 190 |
191 /*!!! todo: restore playback sample selection | |
191 if (params->getPlayPluginId() != "") { | 192 if (params->getPlayPluginId() != "") { |
192 QPushButton *pluginButton = new QPushButton(QIcon(":icons/faders.png"), ""); | 193 QPushButton *pluginButton = new QPushButton(QIcon(":icons/faders.png"), ""); |
193 pluginButton->setFixedWidth(24); | 194 pluginButton->setFixedWidth(24); |
194 pluginButton->setFixedHeight(24); | 195 pluginButton->setFixedHeight(24); |
195 layout->addWidget(pluginButton); | 196 layout->addWidget(pluginButton); |
196 connect(pluginButton, SIGNAL(clicked()), | 197 connect(pluginButton, SIGNAL(clicked()), |
197 this, SLOT(editPlugin())); | 198 this, SLOT(editPlugin())); |
198 } | 199 } |
200 */ | |
199 | 201 |
200 AudioDial *gainDial = new AudioDial; | 202 AudioDial *gainDial = new AudioDial; |
201 layout->addWidget(gainDial); | 203 layout->addWidget(gainDial); |
202 gainDial->setMeterColor(Qt::darkRed); | 204 gainDial->setMeterColor(Qt::darkRed); |
203 gainDial->setMinimum(-50); | 205 gainDial->setMinimum(-50); |
740 CommandHistory::getInstance()->addCommand(command, true, true); | 742 CommandHistory::getInstance()->addCommand(command, true, true); |
741 } | 743 } |
742 | 744 |
743 updateContextHelp(obj); | 745 updateContextHelp(obj); |
744 } | 746 } |
745 | 747 /*!!! todo: restore playback sample selection |
746 void | 748 void |
747 PropertyBox::editPlugin() | 749 PropertyBox::editPlugin() |
748 { | 750 { |
749 //!!! should probably just emit and let something else do this | 751 //!!! should probably just emit and let something else do this |
750 | 752 |
792 PlayParameters *params = m_container->getPlayParameters(); | 794 PlayParameters *params = m_container->getPlayParameters(); |
793 if (!params) return; | 795 if (!params) return; |
794 | 796 |
795 params->setPlayPluginConfiguration(configurationXml); | 797 params->setPlayPluginConfiguration(configurationXml); |
796 } | 798 } |
797 | 799 */ |
798 void | 800 void |
799 PropertyBox::layerVisibilityChanged(bool visible) | 801 PropertyBox::layerVisibilityChanged(bool visible) |
800 { | 802 { |
801 if (m_showButton) m_showButton->setState(visible); | 803 if (m_showButton) m_showButton->setState(visible); |
802 } | 804 } |