1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-10 04:52:41 +01:00
ScreenPlay/qml/Components/Create.qml

113 lines
2.9 KiB
QML
Raw Normal View History

import QtQuick 2.7
import QtQuick.Controls 2.2
2017-07-13 15:34:35 +02:00
import QtQuick.Dialogs 1.2
2017-07-14 13:34:55 +02:00
import Qt.labs.platform 1.0
CustomPage {
id: page
pageName: ""
2017-07-13 15:34:35 +02:00
Connections {
target: steamWorkshop
onWorkshopItemCreated: {
if (userNeedsToAcceptWorkshopLegalAgreement) {
checkDelegate.opacity = 1
} else {
checkDelegate.opacity = 0
2017-10-05 10:32:17 +02:00
checkDelegate.checkable = false
checkDelegate.enabled = false
2017-07-13 15:34:35 +02:00
busyIndicator.running = false
}
}
}
2017-10-05 10:32:17 +02:00
FontLoader {
id: font_Roboto_Regular
source: "qrc:/assets/fonts/Roboto-Regular.ttf"
}
FontLoader {
id: font_LibreBaskerville
source: "qrc:/assets/fonts/LibreBaskerville-Italic.ttf"
}
CreateLeftArea {
2017-10-05 10:32:17 +02:00
id: leftArea
width: parent.width * .5
anchors {
top: parent.top
left: parent.left
margins: 10
}
}
2017-10-05 10:32:17 +02:00
Item {
2017-10-05 10:32:17 +02:00
id: rightArea
width: parent.width * .4
anchors {
top: parent.top
right: parent.right
bottom: parent.bottom
margins: 30
2017-07-13 15:34:35 +02:00
}
2017-10-05 10:32:17 +02:00
Item {
id: rightTop
height: 150
anchors {
top: parent.top
right: parent.right
left: parent.left
}
2017-10-05 10:32:17 +02:00
Item {
width: parent.width * .46
height: parent.height
2017-10-05 10:32:17 +02:00
FileDropperSingleFile {
anchors.fill: parent
z: 99
descriptionTitle: "Drop your video here"
isVideo: true
2017-10-05 10:32:17 +02:00
imagePath: "qrc:/assets/icons/icon_tv.svg"
}
}
2017-10-05 10:32:17 +02:00
Item {
width: parent.width * .46
anchors.right: parent.right
2017-07-13 15:34:35 +02:00
height: parent.height
2017-10-05 10:32:17 +02:00
FileDropperSingleFile {
anchors.fill: parent
z: 99
2017-10-05 10:32:17 +02:00
descriptionTitle: "Set Preview Image"
imagePath: "qrc:/assets/icons/icon_single_image.svg"
2017-07-13 15:34:35 +02:00
}
}
Item {
2017-10-05 10:32:17 +02:00
id: rightBottom
height: 300
anchors {
top: rightTop.bottom
topMargin: 30
right: parent.right
left: parent.left
2017-07-14 13:34:55 +02:00
}
FileDropperSingleFile {
anchors.fill: parent
z: 99
descriptionTitle: "Add additional images"
imagePath: "qrc:/assets/icons/icon_multiple_images.svg"
2017-07-14 13:34:55 +02:00
}
}
2017-10-05 10:32:17 +02:00
}
2017-07-14 13:34:55 +02:00
2017-10-05 10:32:17 +02:00
Timer {
id: tiItemUpdate
interval: 100
2017-10-05 10:32:17 +02:00
running: false
repeat: true
onTriggered: {
print(steamWorkshop.getItemUpdateProcess())
2017-07-13 15:34:35 +02:00
}
2017-07-14 13:34:55 +02:00
}
}
2017-07-06 14:00:43 +02:00
}