Skip to content

Commit

Permalink
setting widgets range only in the configuration xml
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmm committed Nov 14, 2024
1 parent fc8ce8e commit bde5599
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 52 deletions.
12 changes: 6 additions & 6 deletions src/contents/ui/Autogain.qml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ Kirigami.ScrollablePage {
id: target

label: i18n("Target")
from: Common.minimumDecibelLevel
to: 0
from: pluginDB.getMinValue("target")
to: pluginDB.getMaxValue("target")
value: pluginDB.target
decimals: 0
stepSize: 1
Expand All @@ -97,8 +97,8 @@ Kirigami.ScrollablePage {
id: silenceThreshold

label: i18n("Silence")
from: Common.minimumDecibelLevel
to: 0
from: pluginDB.getMinValue("silenceThreshold")
to: pluginDB.getMaxValue("silenceThreshold")
value: pluginDB.silenceThreshold
decimals: 0
stepSize: 1
Expand All @@ -118,8 +118,8 @@ Kirigami.ScrollablePage {
id: maximumHistory

label: i18n("Maximum History")
from: 6
to: 3600
from: pluginDB.getMinValue("maximumHistory")
to: pluginDB.getMaxValue("maximumHistory")
value: pluginDB.maximumHistory
decimals: 0
stepSize: 1
Expand Down
20 changes: 10 additions & 10 deletions src/contents/ui/BassEnhancer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ Kirigami.ScrollablePage {
orientation: Qt.Horizontal
snapMode: Controls.Slider.SnapAlways
value: pluginDB.blend
from: -10
to: 10
from: pluginDB.getMinValue("blend")
to: pluginDB.getMaxValue("blend")
stepSize: 1
onValueChanged: () => {
if (value !== pluginDB.blend)
Expand Down Expand Up @@ -96,8 +96,8 @@ Kirigami.ScrollablePage {
id: amount

label: i18n("Amount")
from: Common.minimumDecibelLevel
to: 36
from: pluginDB.getMinValue("amount")
to: pluginDB.getMaxValue("amount")
value: pluginDB.amount
decimals: 1
stepSize: 0.1
Expand All @@ -111,8 +111,8 @@ Kirigami.ScrollablePage {
id: harmonics

label: i18n("Harmonics")
from: 0.1
to: 10
from: pluginDB.getMinValue("harmonics")
to: pluginDB.getMaxValue("harmonics")
value: pluginDB.harmonics
decimals: 1
stepSize: 0.1
Expand All @@ -125,8 +125,8 @@ Kirigami.ScrollablePage {
id: scope

label: i18n("Scope")
from: 10
to: 250
from: pluginDB.getMinValue("scope")
to: pluginDB.getMaxValue("scope")
value: pluginDB.scope
decimals: 0
stepSize: 1
Expand All @@ -152,8 +152,8 @@ Kirigami.ScrollablePage {
id: floor

label: i18n("Floor")
from: 10
to: 120
from: pluginDB.getMinValue("floor")
to: pluginDB.getMaxValue("floor")
value: pluginDB.floor
decimals: 0
stepSize: 1
Expand Down
20 changes: 10 additions & 10 deletions src/contents/ui/Compressor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ Kirigami.ScrollablePage {
id: stereoLink

label: i18n("Stereo Link")
from: 0
to: 100
from: pluginDB.getMinValue("stereoLink")
to: pluginDB.getMaxValue("stereoLink")
value: pluginDB.stereoLink
decimals: 1
stepSize: 0.1
Expand Down Expand Up @@ -353,8 +353,8 @@ Kirigami.ScrollablePage {
verticalPadding: 0
labelAbove: true
spinboxLayoutFillWidth: true
from: 10
to: 20000
from: pluginDB.getMinValue("hpfFrequency")
to: pluginDB.getMaxValue("hpfFrequency")
value: pluginDB.hpfFrequency
decimals: 0
stepSize: 1
Expand All @@ -373,8 +373,8 @@ Kirigami.ScrollablePage {
labelFillWidth: false
labelAbove: true
spinboxLayoutFillWidth: true
from: 10
to: 20000
from: pluginDB.getMinValue("lpfFrequency")
to: pluginDB.getMaxValue("lpfFrequency")
value: pluginDB.lpfFrequency
decimals: 0
stepSize: 1
Expand Down Expand Up @@ -403,8 +403,8 @@ Kirigami.ScrollablePage {
id: dry

label: i18n("Dry")
from: -80.01
to: 20
from: pluginDB.getMinValue("dry")
to: pluginDB.getMaxValue("dry")
value: pluginDB.dry
decimals: 2
stepSize: 0.01
Expand All @@ -425,8 +425,8 @@ Kirigami.ScrollablePage {
id: wet

label: i18n("Wet")
from: -80.01
to: 20
from: pluginDB.getMinValue("wet")
to: pluginDB.getMaxValue("wet")
value: pluginDB.wet
decimals: 2
stepSize: 0.01
Expand Down
20 changes: 10 additions & 10 deletions src/contents/ui/Exciter.qml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ Kirigami.ScrollablePage {
orientation: Qt.Horizontal
snapMode: Controls.Slider.SnapAlways
value: pluginDB.blend
from: -10
to: 10
from: pluginDB.getMinValue("blend")
to: pluginDB.getMaxValue("blend")
stepSize: 1
onValueChanged: () => {
if (value !== pluginDB.blend)
Expand Down Expand Up @@ -96,8 +96,8 @@ Kirigami.ScrollablePage {
id: amount

label: i18n("Amount")
from: Common.minimumDecibelLevel
to: 36
from: pluginDB.getMinValue("amount")
to: pluginDB.getMaxValue("amount")
value: pluginDB.amount
decimals: 1
stepSize: 0.1
Expand All @@ -111,8 +111,8 @@ Kirigami.ScrollablePage {
id: harmonics

label: i18n("Harmonics")
from: 0.1
to: 10
from: pluginDB.getMinValue("harmonics")
to: pluginDB.getMaxValue("harmonics")
value: pluginDB.harmonics
decimals: 1
stepSize: 0.1
Expand All @@ -125,8 +125,8 @@ Kirigami.ScrollablePage {
id: scope

label: i18n("Scope")
from: 2000
to: 12000
from: pluginDB.getMinValue("scope")
to: pluginDB.getMaxValue("scope")
value: pluginDB.scope
decimals: 0
stepSize: 1
Expand All @@ -152,8 +152,8 @@ Kirigami.ScrollablePage {
id: ceil

label: i18n("Ceil")
from: 10000
to: 20000
from: pluginDB.getMinValue("ceil")
to: pluginDB.getMaxValue("ceil")
value: pluginDB.ceil
decimals: 0
stepSize: 1
Expand Down
32 changes: 16 additions & 16 deletions src/contents/ui/Limiter.qml
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ Kirigami.ScrollablePage {
id: threshold

label: i18n("Threshold")
from: -48
to: 0
from: pluginDB.getMinValue("threshold")
to: pluginDB.getMaxValue("threshold")
value: pluginDB.threshold
decimals: 2
stepSize: 0.01
Expand All @@ -140,8 +140,8 @@ Kirigami.ScrollablePage {
id: attack

label: i18n("Attack")
from: 0.25
to: 20
from: pluginDB.getMinValue("attack")
to: pluginDB.getMaxValue("attack")
value: pluginDB.attack
decimals: 2
stepSize: 0.01
Expand All @@ -161,8 +161,8 @@ Kirigami.ScrollablePage {
id: release

label: i18n("Release")
from: 0.25
to: 20
from: pluginDB.getMinValue("release")
to: pluginDB.getMaxValue("release")
value: pluginDB.release
decimals: 2
stepSize: 0.01
Expand All @@ -182,8 +182,8 @@ Kirigami.ScrollablePage {
id: stereoLink

label: i18n("Stereo Link")
from: 0
to: 100
from: pluginDB.getMinValue("stereoLink")
to: pluginDB.getMaxValue("stereoLink")
value: pluginDB.stereoLink
decimals: 1
stepSize: 0.1
Expand Down Expand Up @@ -268,8 +268,8 @@ Kirigami.ScrollablePage {
id: sidechainPreamp

label: i18n("Preamp")
from: -80.01
to: 40
from: pluginDB.getMinValue("sidechainPreamp")
to: pluginDB.getMaxValue("sidechainPreamp")
value: pluginDB.sidechainPreamp
decimals: 2
stepSize: 0.01
Expand Down Expand Up @@ -305,8 +305,8 @@ Kirigami.ScrollablePage {
id: alrAttack

label: i18n("Attack")
from: 0.1
to: 200
from: pluginDB.getMinValue("alrAttack")
to: pluginDB.getMaxValue("alrAttack")
value: pluginDB.alrAttack
decimals: 2
stepSize: 0.01
Expand All @@ -326,8 +326,8 @@ Kirigami.ScrollablePage {
id: alrRelease

label: i18n("Release")
from: 10
to: 1000
from: pluginDB.getMinValue("alrRelease")
to: pluginDB.getMaxValue("alrRelease")
value: pluginDB.alrRelease
decimals: 1
stepSize: 0.1
Expand All @@ -347,8 +347,8 @@ Kirigami.ScrollablePage {
id: alrKnee

label: i18n("Knee")
from: -12
to: 12
from: pluginDB.getMinValue("alrKnee")
to: pluginDB.getMaxValue("alrKnee")
value: pluginDB.alrKnee
decimals: 2
stepSize: 0.01
Expand Down

0 comments on commit bde5599

Please sign in to comment.