mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 03:22:33 +01:00
Add first page
This commit is contained in:
parent
12c38cf74e
commit
240c4c3245
@ -120,5 +120,6 @@
|
||||
<file>settings.json</file>
|
||||
<file>translations/ScreenPlay_de.qm</file>
|
||||
<file>translations/ScreenPlay_en.qm</file>
|
||||
<file>qml/Create/Wizards/CreateWallpaper/Page_0.qml</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
@ -8,7 +8,6 @@ import QtQuick.Particles 2.0
|
||||
//Enums
|
||||
import LocalWorkshopCreationStatus 1.0
|
||||
|
||||
|
||||
Rectangle {
|
||||
id: create
|
||||
anchors.fill: parent
|
||||
@ -23,7 +22,10 @@ Rectangle {
|
||||
create.state = "import"
|
||||
|
||||
activeVideoFile = videoFile
|
||||
loader.setSource("Wizards/CreateWallpaper/CreateWallpaperWizard.qml")
|
||||
loader.setSource(
|
||||
"Wizards/CreateWallpaper/CreateWallpaperWizard.qml", {
|
||||
"filePath": activeVideoFile
|
||||
})
|
||||
}
|
||||
onProjectFileSelected: {
|
||||
create.state = "import"
|
||||
@ -72,7 +74,8 @@ Rectangle {
|
||||
id: colorShader
|
||||
anchors.fill: parent
|
||||
property real time: 45
|
||||
property vector2d resolution: Qt.vector2d(parent.width, parent.height* 2)
|
||||
property vector2d resolution: Qt.vector2d(parent.width,
|
||||
parent.height * 2)
|
||||
fragmentShader: "qrc:/assets/shader/movingcolorramp.fsh"
|
||||
}
|
||||
|
||||
@ -288,7 +291,6 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
states: [
|
||||
State {
|
||||
name: "out"
|
||||
|
@ -11,6 +11,13 @@ Item {
|
||||
Component.onCompleted: state = "in"
|
||||
state: "out"
|
||||
|
||||
property string filePath
|
||||
|
||||
//Blocks some MouseArea from create page
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
}
|
||||
|
||||
RectangularGlow {
|
||||
id: effect
|
||||
anchors {
|
||||
@ -44,8 +51,11 @@ Item {
|
||||
|
||||
Text {
|
||||
id: txtHeadline
|
||||
text: qsTr("Headline")
|
||||
text: qsTr("Convert a video to a wallpaper")
|
||||
height: 40
|
||||
font.family: "Roboto"
|
||||
font.weight: Font.Light
|
||||
color: "#757575"
|
||||
renderType: Text.NativeRendering
|
||||
font.pixelSize: 23
|
||||
anchors {
|
||||
@ -60,7 +70,10 @@ Item {
|
||||
id: view
|
||||
clip: true
|
||||
currentIndex: 0
|
||||
onCurrentIndexChanged: print(view.currentIndex, view.count)
|
||||
onCurrentIndexChanged: {
|
||||
|
||||
}
|
||||
|
||||
anchors {
|
||||
top: txtHeadline.bottom
|
||||
right: parent.right
|
||||
@ -73,17 +86,24 @@ Item {
|
||||
|
||||
interactive: false
|
||||
|
||||
Rectangle {
|
||||
Page_0 {
|
||||
id: firstPage
|
||||
color: "orange"
|
||||
}
|
||||
Rectangle {
|
||||
id: secondPage
|
||||
color: "grey"
|
||||
Text {
|
||||
id: name2
|
||||
text: "secondPage"
|
||||
anchors.centerIn: parent
|
||||
}
|
||||
}
|
||||
Rectangle {
|
||||
id: thirdPage
|
||||
color: "steelblue"
|
||||
Text {
|
||||
id: name3
|
||||
text: "thirdPage"
|
||||
anchors.centerIn: parent
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -99,31 +119,40 @@ Item {
|
||||
}
|
||||
|
||||
delegate: Item {
|
||||
width: 100
|
||||
width: txtStep.paintedWidth + 20
|
||||
height: 30
|
||||
property bool filled
|
||||
Text {
|
||||
id: name
|
||||
id: txtStep
|
||||
text: {
|
||||
switch (index) {
|
||||
case 0:
|
||||
return "1. sdfwerf"
|
||||
break
|
||||
return "1. Configure"
|
||||
case 1:
|
||||
return "2. 34t3 345t w4"
|
||||
break
|
||||
return "2. Convert"
|
||||
case 2:
|
||||
return "3. 45zde erg3q45t"
|
||||
break
|
||||
return "3. Finish"
|
||||
default:
|
||||
return "Undefiend"
|
||||
}
|
||||
}
|
||||
color: view.currentIndex == index ? "orange" : "gray"
|
||||
|
||||
renderType: Text.NativeRendering
|
||||
font.family: "Roboto"
|
||||
font.pixelSize: 14
|
||||
anchors {
|
||||
left: parent.left
|
||||
verticalCenter: parent.verticalCenter
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
view.setCurrentIndex(index)
|
||||
}
|
||||
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
108
ScreenPlay/qml/Create/Wizards/CreateWallpaper/Page_0.qml
Normal file
108
ScreenPlay/qml/Create/Wizards/CreateWallpaper/Page_0.qml
Normal file
@ -0,0 +1,108 @@
|
||||
import QtQuick 2.0
|
||||
import QtQuick.Controls 2.3
|
||||
import QtGraphicalEffects 1.0
|
||||
|
||||
Rectangle {
|
||||
id: root
|
||||
property bool allNecessaryConfigsSet: false
|
||||
|
||||
|
||||
|
||||
Rectangle {
|
||||
id: rectangle1
|
||||
width: parent.width * .5
|
||||
anchors {
|
||||
top: parent.top
|
||||
bottom: parent.bottom
|
||||
left: parent.left
|
||||
}
|
||||
RectangularGlow {
|
||||
id: effect
|
||||
anchors {
|
||||
top: imgWrapper.top
|
||||
left: imgWrapper.left
|
||||
right: imgWrapper.right
|
||||
topMargin: 3
|
||||
}
|
||||
|
||||
height: imgWrapper.height
|
||||
width: imgWrapper.width
|
||||
cached: true
|
||||
glowRadius: 3
|
||||
spread: 0.2
|
||||
color: "black"
|
||||
opacity: 0.4
|
||||
cornerRadius: 15
|
||||
}
|
||||
|
||||
|
||||
Rectangle {
|
||||
id: imgWrapper
|
||||
width: parent.width * .9
|
||||
anchors {
|
||||
top:parent.top
|
||||
margins: parent.width * .05
|
||||
right:parent.right
|
||||
left:parent.left
|
||||
}
|
||||
|
||||
height: 200
|
||||
color: "gray"
|
||||
Image {
|
||||
id: imgPreview
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
id: rectangle
|
||||
width: parent.width * .5
|
||||
anchors {
|
||||
top: parent.top
|
||||
bottom: parent.bottom
|
||||
right: parent.right
|
||||
}
|
||||
|
||||
Column {
|
||||
id: column
|
||||
spacing: 20
|
||||
anchors.fill: parent
|
||||
anchors.margins: 30
|
||||
|
||||
TextField {
|
||||
id: textField
|
||||
placeholderText: qsTr("Name")
|
||||
anchors.right: parent.right
|
||||
anchors.left: parent.left
|
||||
|
||||
}
|
||||
|
||||
TextField {
|
||||
id: textField1
|
||||
placeholderText: qsTr("Description")
|
||||
anchors.right: parent.right
|
||||
anchors.left: parent.left
|
||||
}
|
||||
|
||||
TextField {
|
||||
id: textField2
|
||||
placeholderText: qsTr("Youtube URL")
|
||||
anchors.right: parent.right
|
||||
anchors.left: parent.left
|
||||
}
|
||||
|
||||
TextField {
|
||||
id: textField3
|
||||
placeholderText: qsTr("Tags")
|
||||
anchors.right: parent.right
|
||||
anchors.left: parent.left
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*##^## Designer {
|
||||
D{i:0;autoSize:true;height:768;width:1366}D{i:4;anchors_height:200;anchors_x:200;anchors_y:0}
|
||||
D{i:7;anchors_height:400;anchors_width:200}D{i:3;anchors_height:200;anchors_width:683}
|
||||
}
|
||||
##^##*/
|
Loading…
Reference in New Issue
Block a user