11 property string configViewComponent
13 //property SourceModel model;
14 //property SourceConfigComponentView viewComponent;
18 name: "showSourceConfig"
20 // In this state, we bring the configuration UI of the source
21 PropertyChanges { target: configDialog; color: "#d0000000" }
22 PropertyChanges { target: sourceConfigLoader; opacity: 1 }
23 PropertyChanges { target: sourceConfigLoader; source: configViewComponent }
25 AnchorChanges { target: quitApplyConfigButton; anchors.left: undefined; anchors.right: configDialog.right }
26 AnchorChanges { target: quitCancelConfigButton; anchors.right: undefined; anchors.left: configDialog.left }
33 to: "showSourceConfig"
37 PropertyAction { target: configDialog; property: "visible"; value: true }
38 // Bring the UI elements
40 AnchorAnimation { duration: 500 }
41 ColorAnimation { duration: 400 }
46 from: "showSourceConfig"
50 // Move out the UI elements
52 AnchorAnimation { duration: 500 }
53 ColorAnimation { duration: 400 }
56 PropertyAction { target: configDialog; property: "visible"; value: false }
62 id: sourceConfigLoader
64 anchors.top: parent.top
65 anchors.left: parent.left
66 anchors.right: parent.right
67 anchors.bottom: quitApplyConfigButton.top
70 NumberAnimation { duration: 1000; easing.type: Easing.InOutQuad }
75 id: quitApplyConfigButton
76 icon: "../images/apply.png"
77 anchors.bottom: parent.bottom
78 anchors.left: parent.right
81 // Store the configuration of this source, and disappear
82 configDialog.state = "hidden"
87 id: quitCancelConfigButton
88 icon: "../images/cancel.png"
89 anchors.bottom: parent.bottom
90 anchors.right: parent.left
93 // Store the configuration of this source, and disappear
94 configDialog.state = "hidden"