Add podcast specific settings to Settings
This commit is contained in:
parent
8e23123e84
commit
a9b86d0e44
@ -5,9 +5,21 @@
|
|||||||
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
|
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
|
||||||
<kcfgfile name="alligatorrc" />
|
<kcfgfile name="alligatorrc" />
|
||||||
<group name="General">
|
<group name="General">
|
||||||
|
<entry name="numberNewEpisodes" type="Int">
|
||||||
|
<label>How many recent episodes should be labeled 'new' when adding a new subscription</label>
|
||||||
|
<default>1</default>
|
||||||
|
</entry>
|
||||||
|
<entry name="autoDownload" type="Bool">
|
||||||
|
<label>Automatically download new episodes</label>
|
||||||
|
<default>false</default>
|
||||||
|
</entry>
|
||||||
|
<entry name="allowStreaming" type="Bool">
|
||||||
|
<label>Allow streaming of audio</label>
|
||||||
|
<default>false</default>
|
||||||
|
</entry>
|
||||||
<entry name="deleteAfterCount" type="Int">
|
<entry name="deleteAfterCount" type="Int">
|
||||||
<label>Delete after count</label>
|
<label>Delete after count</label>
|
||||||
<default>2</default>
|
<default>0</default>
|
||||||
</entry>
|
</entry>
|
||||||
<entry name="articleFontSize" type="Int">
|
<entry name="articleFontSize" type="Int">
|
||||||
<label>Article font size</label>
|
<label>Article font size</label>
|
||||||
@ -19,7 +31,7 @@
|
|||||||
</entry>
|
</entry>
|
||||||
<entry name="deleteAfterType" type="Int">
|
<entry name="deleteAfterType" type="Int">
|
||||||
<label>Delete after type</label>
|
<label>Delete after type</label>
|
||||||
<default>3</default>
|
<default>0</default>
|
||||||
</entry>
|
</entry>
|
||||||
</group>
|
</group>
|
||||||
</kcfg>
|
</kcfg>
|
||||||
|
@ -13,57 +13,38 @@ import org.kde.kirigami 2.12 as Kirigami
|
|||||||
Kirigami.ScrollablePage {
|
Kirigami.ScrollablePage {
|
||||||
title: i18n("Settings")
|
title: i18n("Settings")
|
||||||
|
|
||||||
|
// TODO: Remove old alligator settings from the kcfg and the qml code
|
||||||
|
|
||||||
Kirigami.FormLayout {
|
Kirigami.FormLayout {
|
||||||
|
|
||||||
Kirigami.Heading {
|
Kirigami.Heading {
|
||||||
Kirigami.FormData.isSection: true
|
Kirigami.FormData.isSection: true
|
||||||
text: i18n("Article List")
|
text: i18n("Queue Settings")
|
||||||
}
|
|
||||||
|
|
||||||
RowLayout {
|
|
||||||
Kirigami.FormData.label: i18n("Delete after:")
|
|
||||||
|
|
||||||
Controls.SpinBox {
|
|
||||||
id: deleteAfterCount
|
|
||||||
value: _settings.deleteAfterCount
|
|
||||||
enabled: deleteAfterType.currentIndex !== 0
|
|
||||||
|
|
||||||
onValueModified: _settings.deleteAfterCount = value
|
|
||||||
}
|
|
||||||
|
|
||||||
Controls.ComboBox {
|
|
||||||
id: deleteAfterType
|
|
||||||
currentIndex: _settings.deleteAfterType
|
|
||||||
model: [i18n("Never"), i18n("Articles"), i18n("Days"), i18n("Weeks"), i18n("Months")]
|
|
||||||
|
|
||||||
onActivated: _settings.deleteAfterType = index
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Kirigami.Heading {
|
|
||||||
Kirigami.FormData.isSection: true
|
|
||||||
text: i18n("Article")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Controls.SpinBox {
|
Controls.SpinBox {
|
||||||
id: articleFontSizeSpinBox
|
id: numberNewEpisodes
|
||||||
|
|
||||||
enabled: !useSystemFontCheckBox.checked
|
Kirigami.FormData.label: i18n("# of episodes to label as new when adding a new subscription:")
|
||||||
value: _settings.articleFontSize
|
value: _settings.numberNewEpisodes
|
||||||
Kirigami.FormData.label: i18n("Font size:")
|
|
||||||
from: 6
|
|
||||||
to: 20
|
|
||||||
|
|
||||||
onValueModified: _settings.articleFontSize = value
|
|
||||||
|
|
||||||
|
onValueModified: _settings.numberNewEpisodes = value
|
||||||
}
|
}
|
||||||
|
|
||||||
Controls.CheckBox {
|
Controls.CheckBox {
|
||||||
id: useSystemFontCheckBox
|
id: autoDownload
|
||||||
checked: _settings.articleFontUseSystem
|
checked: _settings.autoDownload
|
||||||
text: i18n("Use system default")
|
text: i18n("Automatically download new episodes")
|
||||||
|
|
||||||
onToggled: _settings.articleFontUseSystem = checked
|
onToggled: _settings.autoDownload = checked
|
||||||
|
}
|
||||||
|
|
||||||
|
Controls.CheckBox {
|
||||||
|
id: allowStreaming
|
||||||
|
checked: _settings.allowStreaming
|
||||||
|
text: i18n("Allow streaming of audio")
|
||||||
|
|
||||||
|
onToggled: _settings.allowStreaming = checked
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user