Move the setBaseVolume()/setSteps() methods to devicewidget (problem found after rebasing)

This commit is contained in:
Colin Guthrie 2009-03-22 16:38:57 +00:00
parent dea5d0a0fe
commit ddd7d06dde
4 changed files with 14 additions and 15 deletions

View File

@ -107,3 +107,15 @@ bool DeviceWidget::timeoutEvent() {
void DeviceWidget::executeVolumeUpdate() { void DeviceWidget::executeVolumeUpdate() {
} }
void DeviceWidget::setBaseVolume(pa_volume_t v) {
if (channelMap.channels > 0)
channelWidgets[channelMap.channels-1]->setBaseVolume(v);
}
void DeviceWidget::setSteps(unsigned n) {
for (int i = 0; i < channelMap.channels; i++)
channelWidgets[channelMap.channels-1]->setSteps(n);
}

View File

@ -50,6 +50,8 @@ public:
bool timeoutEvent(); bool timeoutEvent();
virtual void executeVolumeUpdate(); virtual void executeVolumeUpdate();
virtual void setBaseVolume(pa_volume_t v);
virtual void setSteps(unsigned n);
}; };
#endif #endif

View File

@ -109,16 +109,3 @@ bool StreamWidget::timeoutEvent() {
void StreamWidget::executeVolumeUpdate() { void StreamWidget::executeVolumeUpdate() {
} }
void StreamWidget::setBaseVolume(pa_volume_t v) {
if (channelMap.channels > 0)
channelWidgets[channelMap.channels-1]->setBaseVolume(v);
}
void StreamWidget::setSteps(unsigned n) {
for (int i = 0; i < channelMap.channels; i++)
channelWidgets[channelMap.channels-1]->setSteps(n);
}

View File

@ -54,8 +54,6 @@ public:
bool timeoutEvent(); bool timeoutEvent();
virtual void executeVolumeUpdate(); virtual void executeVolumeUpdate();
virtual void setBaseVolume(pa_volume_t v);
virtual void setSteps(unsigned n);
protected: protected:
Gtk::ComboBox *deviceCombo; Gtk::ComboBox *deviceCombo;