Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 10

import QtQuick 2.

12
import QtQuick.Controls 2.13
import QtQuick.Layouts 1.11
import "../Components"
import "../Constants"

Rectangle {
id: creation
width: Constants.width
height: Constants.height
color: Constants.backgroundColor
property alias textTrans: textTrans
property alias imgTrans: imgTrans
property alias progress: progress
property alias confidentiel: confidentiel
property alias vues: vues
property alias embarques: embarques
property alias pneumatique: pneumatique
property alias caracteristique: caracteristique
property alias embEssieu: embEssieu
property alias embPneusPhoto4: embPneusPhoto4
property alias embPneusPhoto5: embPneusPhoto5
property alias embPneusPhoto3: embPneusPhoto3
property alias embPneusPhoto2: embPneusPhoto2
property alias embPneusPhoto1: embPneusPhoto1
property alias embPneusPhoto: embPneusPhoto
property alias puissance: puissance
property alias acquisition: acquisition
property alias energie: energie
property alias genre: genre
property alias saveEngins: saveEngins
property alias kilometrage: kilometrage
property alias marque: marque
property alias pVide: pVide
property alias ptra: ptra
property alias ptac: ptac
property alias amortissement: amortissement
property alias miseCirculation: miseCirculation
property alias immatriculation: immatriculation
property alias idchassis:idchassis
property alias modele: modele
property alias nbrEssieu: nbrEssieu
property alias saveprocess: saveprocess
property alias essieulistView:essieulistView

Rectangle {
id: vision
height: 140
color: "#000000"
anchors.right: parent.right
anchors.rightMargin: 0
anchors.left: parent.left
anchors.leftMargin: 0

Image {
id: imgTrans
x: 9
width: 150
height: 80
anchors.right: parent.right
anchors.rightMargin: 0
anchors.top: parent.top
anchors.topMargin: 0
anchors.bottom: tabar.top
anchors.bottomMargin: 10
fillMode: Image.PreserveAspectFit
source: "../assets/personnel.png"
}

Text {
id: textTrans
x: 9
color: "#ffffff"
text: qsTr("#Trans-Personnel#")
anchors.right: imgTrans.left
anchors.rightMargin: 50
anchors.top: parent.top
anchors.topMargin: 10
font.pixelSize: 50
}

RowLayout {
id: tabar
height: 50
anchors.right: parent.right
anchors.bottom: parent.bottom
anchors.left: parent.left
spacing: 0

SelectButton {
id: caracteristique
name: "CARACTERISQUES"
checked: true
imgsrc: "../../assets/infos.png"
Layout.fillHeight: true
Layout.fillWidth: true
}

SelectButton {
id: pneumatique
name: "PNEUMATIQUES"
x: -3
y: 3
imgsrc: "../../assets/pneus.png"
Layout.fillHeight: true
Layout.fillWidth: true
}

SelectButton {
id: embarques
name: "OUTILS EMBARQUES"
x: 1
y: 4
imgsrc: "../../assets/emb.png"
Layout.fillHeight: true
Layout.fillWidth: true
}
SelectButton {
id: vues
name: "VUES ENGINS"
x: 4
y: 9
imgsrc: "../../assets/camera.png"
Layout.fillHeight: true
Layout.fillWidth: true
}
}

StackLayout {
id: saveprocess
x: 5
anchors.top: vision.bottom
anchors.right: parent.right
anchors.bottom: progress.top
anchors.left: parent.left
currentIndex: 0
anchors.rightMargin: 5
anchors.leftMargin: 5
anchors.bottomMargin: 10
anchors.topMargin: 10

Item {
Layout.fillHeight: true
Layout.fillWidth: true
RowLayout {
id: rowLayout3
anchors.fill: parent
spacing: 20

Item {
id: element6
width: 200
height: 200
Layout.fillHeight: true
Layout.fillWidth: true

ColumnLayout {
id: columnLayout
spacing: 30
anchors.fill: parent

CustomComboBox {
id: genre
titre: "GENRE *"
Layout.fillHeight: true
Layout.fillWidth: true
}

CustomComboBox {
id: modele
titre: "MODELE *"
Layout.fillHeight: true
Layout.fillWidth: true
}

CustomComboBox {
id: energie
titre: "ENERGIE *"
controlCombo.model:["", "GASOIL", "ESSENCE"]
Layout.fillHeight: true
Layout.fillWidth: true
}

CustomText {
id: marque
titre: "MARQUE *"
Layout.fillHeight: true
Layout.fillWidth: true
}

CustomText {
id: idchassis
titre: "N* CHASSIS *"
Layout.fillHeight: true
Layout.fillWidth: true
}

CustomText {
id: immatriculation
titre: "IMMATRICULATION *"
Layout.fillHeight: true
Layout.fillWidth: true
}

CustomDateTime {
id: miseCirculation
titre: "MISE EN CIRCULATION *"
Layout.fillHeight: true
Layout.fillWidth: true
}

}
}

Item {
id: element7
width: 200
height: 200
Layout.fillHeight: true
Layout.fillWidth: true

ColumnLayout {
id: columnLayout1
spacing: 30
anchors.fill: parent

CustomNumeric {
id: ptac
titre: "PTAC"
Layout.fillHeight: true
Layout.fillWidth: true
}

CustomNumeric {
id: ptra
titre: "PTRA"
Layout.fillHeight: true
Layout.fillWidth: true
}

CustomNumeric {
id: puissance
titre: "PUISSANCE"
Layout.fillHeight: true
Layout.fillWidth: true
}

CustomNumeric {
id: kilometrage
titre: "KILOMETRAGE *"
Layout.fillHeight: true
Layout.fillWidth: true
}

CustomNumeric {
id: pVide
titre: "POIDS A VIDE"
Layout.fillHeight: true
Layout.fillWidth: true
}

CustomDateTime {
id: acquisition
titre: "DATE ACQUISITION *"
Layout.fillHeight: true
Layout.fillWidth: true
}

CustomDateTime {
id: amortissement
titre: " DATE ARMORTISSEMENT *"
Layout.fillHeight: true
Layout.fillWidth: true
}

}
}

Item {
id: element8
width: 200
height: 200
Layout.fillHeight: true
Layout.fillWidth: true

GroupBox {
id: groupBox
anchors.fill: parent
font.pointSize: 13
title: qsTr("DONNEES CONFIDENTIELLES")

Text {
id: element1
x: 20
y: 246
color: "#ffffff"
text: qsTr("PRIX TOTAL TTC :")
anchors.bottom: rectangle1.top
anchors.bottomMargin: 10
font.pixelSize: 30
}

Rectangle {
id: rectangle1
height: width/5
color: "#00000000"
anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right
anchors.rightMargin: 20
anchors.left: parent.left
anchors.leftMargin: 20
border.color: "#ffffff"
border.width: 2

TextInput {
id: confidentiel
color: "#ffd700"
text: qsTr("")
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
anchors.fill: parent
font.pixelSize: 40
}

}
}
}
}

Item {
id: element3
Layout.fillHeight: true
Layout.fillWidth: true

Rectangle {
id: cadreP
x: -5
y: -10
width: parent.width/4
color: "#00000000"
visible: true
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.top: parent.top
border.color: "#ffffff"

Rectangle {
id: cadreS
x: 0
y: 0
color: "#00000000"
anchors.rightMargin: 5
anchors.leftMargin: 6
anchors.bottomMargin: 5
anchors.topMargin: 5
border.color: "#ffffff"
anchors.fill: parent

StackLayout {
id: embEssieu
currentIndex: 0
anchors.fill: parent

Item {
Layout.fillHeight: true
Layout.fillWidth: true

Image {
id: image1
x: -50
y: -50
width: 200
height: 200
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
fillMode: Image.PreserveAspectFit
source: "../../assets/emb.png"
}
}

Item {
id: element
Layout.fillHeight: true
Layout.fillWidth: true
CustomSpinBox {
id: nbrEssieu
visible: true
anchors.right: parent.right
anchors.rightMargin: 5
anchors.left: parent.left
anchors.leftMargin: 5
anchors.top: parent.top
anchors.topMargin: 5
titre: "NOMBRE ESSIEU"
controlSpin.to: 6
}

ScrollView {
id: essieuscroll
x: 0
y: 0
anchors.rightMargin: 5
anchors.leftMargin: 5
visible: true
anchors.top: nbrEssieu.bottom
anchors.right: parent.right
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.topMargin: 10
clip: true
ListView {
id:essieulistView
anchors.fill: parent
clip: true
spacing:30
}
}

Item {
id: element2
Layout.fillHeight: true
Layout.fillWidth: true

Image {
id: image2
x: -50
y: -50
width: 200
height: 200
fillMode: Image.PreserveAspectFit
anchors.verticalCenter: parent.verticalCenter
source: "../../assets/camera.png"
anchors.horizontalCenter: parent.horizontalCenter
}
}
}
}
}

GridLayout {
id: gridLayout1
width: parent.width/4*3
visible: true
anchors.leftMargin: 10
anchors.bottom: parent.bottom
anchors.bottomMargin: 0
anchors.top: parent.top
anchors.topMargin: 0
anchors.right: parent.right
anchors.left: cadreP.right
columnSpacing: 30
rowSpacing: 10
rows: 3
columns: 3

EmbPneusPhoto {
id: embPneusPhoto
titre: "GAUCHE"
opacity: 0
modeleInput.currentIndex: 1
Layout.fillHeight: true
Layout.fillWidth: true
}

EmbPneusPhoto {
id: embPneusPhoto1
titre: "INTERIEUR GAUCHE"
opacity: 0
modeleInput.currentIndex: 1
Layout.fillHeight: true
Layout.fillWidth: true
}

EmbPneusPhoto {
id: embPneusPhoto2
titre: "INTERIEUR DROITE"
opacity: 0
modeleInput.currentIndex: 1
Layout.fillHeight: true
Layout.fillWidth: true
}

EmbPneusPhoto {
id: embPneusPhoto3
titre: "DROITE"
opacity: 0
modeleInput.currentIndex: 1
Layout.fillHeight: true
Layout.fillWidth: true
}

EmbPneusPhoto {
id: embPneusPhoto4
titre: "GAUCHE"
modeleInput.currentIndex: 1
opacity: 0
Layout.fillHeight: true
Layout.fillWidth: true
}

EmbPneusPhoto {
id: embPneusPhoto5
titre: "GAUCHE"
modeleInput.currentIndex: 1
opacity: 0
Layout.fillHeight: true
Layout.fillWidth: true
}

}
}
}

CustomProgress {
id: progress
control.value: 0
visible: true
anchors.left: parent.left
anchors.leftMargin: 0
anchors.right: parent.right
anchors.rightMargin: 0
anchors.bottom: saveEngins.top
anchors.bottomMargin: 5
}

Button {
id: saveEngins
height: 40
text: qsTr("Enregistrer")
visible: false
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.bottom
anchors.bottomMargin: 0
}

You might also like