+void SettingsForm::_set_pause_hp_no(bool checked) {
+ if (!checked) return;
+ Config config;
+ config.setValue("hw/hpautopause", "no");
+}
+
+void SettingsForm::_set_pause_hp_yes(bool checked) {
+ if (!checked) return;
+ Config config;
+ config.setValue("hw/hpautopause", "yes");
+}
+
+void SettingsForm::_toggle_hw_settings(bool checked) {
+ Config config;
+ config.setValue("hw/zoomkeys", checked ? "enabled" : "disabled");
+ ui->hwkeysLabel->setEnabled(checked);
+ ui->hwTControlButton->setEnabled(checked);
+ ui->hwVolumeButton->setEnabled(checked);
+ emit hwZoomPolicyChanged();
+}
+
+void SettingsForm::_set_hw_track_control(bool checked) {
+ if (!checked) return;
+ Config config;
+ config.setValue("hw/zoom_action", "track");
+}
+
+void SettingsForm::_set_hw_volume_control(bool checked) {
+ if (!checked) return;
+ Config config;
+ config.setValue("hw/zoom_action", "volume");
+}
+
+void SettingsForm::_toggle_view_ui() {
+ ui->hwButton->setChecked(false);
+ ui->libraryButton->setChecked(false);
+ ui->uiButton->setChecked(true);
+ ui->stackedWidget->setCurrentIndex(0);
+}
+
+void SettingsForm::_toggle_view_lib() {
+ ui->hwButton->setChecked(false);
+ ui->uiButton->setChecked(false);
+ ui->libraryButton->setChecked(true);
+ ui->stackedWidget->setCurrentIndex(1);
+}
+
+void SettingsForm::_toggle_view_hw() {
+ ui->uiButton->setChecked(false);
+ ui->libraryButton->setChecked(false);
+ ui->hwButton->setChecked(true);
+ ui->stackedWidget->setCurrentIndex(2);
+}
+