Debian Codegraph @

au4/src/projectscene/qml/Audacity/ProjectScene/statusbar/SelectionStatus.qml

raw
1 import QtQuick
2
3 import Muse.UiComponents
4
5 import Audacity.ProjectScene
6 import Audacity.Playback
7
8 Row {
9 spacing: 6
10
11 SelectionStatusModel {
12 id: selectionModel
13 }
14
15 Component.onCompleted: {
16 selectionModel.init()
17 }
18
19 StyledTextLabel {
20 anchors.verticalCenter: parent.verticalCenter
21
22 text: qsTrc("projectscene", "Selection")
23
24 enabled: selectionModel.isEnabled
25 opacity: enabled ? 1.0 : ui.theme.itemOpacityDisabled
26 }
27
28 TimecodeStartEnd {
29 startValue: selectionModel.startTime
30 endValue: selectionModel.endTime
31
32 sampleRate: selectionModel.sampleRate
33 tempo: selectionModel.tempo
34 upperTimeSignature: selectionModel.upperTimeSignature
35 lowerTimeSignature: selectionModel.lowerTimeSignature
36
37 currentFormat: selectionModel.currentFormat
38
39 enabled: selectionModel.isEnabled
40
41 onStartValueChangeRequested: function(newValue) {
42 selectionModel.startTime = newValue
43 }
44
45 onEndValueChangeRequested: function(newValue) {
46 selectionModel.endTime = newValue
47 }
48
49 onFormatChangeRequested: function(newFormat) {
50 selectionModel.currentFormat = newFormat
51 }
52 }
53 }