Skip to content
Snippets Groups Projects
Commit da969b70 authored by Massies Alexandre's avatar Massies Alexandre
Browse files

cases dessinées

parent 1645de9d
No related branches found
No related tags found
No related merge requests found
...@@ -2,22 +2,25 @@ import QtQuick ...@@ -2,22 +2,25 @@ import QtQuick
Item { Item {
id: _item id: _item
width: 100 width: 90
height: 60 height: 60
property alias imageSource: image.source property alias imageSource: image.source
Rectangle { Rectangle {
id: rectangle id: rectangle
color: "#7a7a7a" color: "#7a7a7a"
radius: 15 radius: 10
anchors.fill: parent anchors.fill: parent
Image { Image {
id: image id: image
x: 0 width: 75
y: 0 height: 45
width: 100 anchors.verticalCenter: parent.verticalCenter
height: 60
source: "back_key.png" source: "back_key.png"
anchors.horizontalCenter: parent.horizontalCenter
sourceSize.height: 512
sourceSize.width: 512
clip: false
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
} }
} }
......
import QtQuick import QtQuick
Item { Item {
width: 90 id: _item
height: 90 width: 70
property alias _textColor: _text.color height: 70
focus: false
property alias rectangleBorderwidth: rectangle.border.width
property alias _textText: _text.text property alias _textText: _text.text
Rectangle {
id: rectangle
width: 70
height: 70
color: "#323232"
radius: 5
border.color: "#ffffff"
border.width: 3
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
Text { Text {
id: _text id: _text
x: 0 width: 70
y: 0 height: 70
width: 90 color: "#ffffff"
height: 90 text: qsTr("")
text: qsTr("Text") anchors.verticalCenter: parent.verticalCenter
font.pixelSize: 24 font.pixelSize: 60
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
font.family: "Tahoma"
font.styleName: "Bold"
anchors.horizontalCenter: parent.horizontalCenter
} }
}
} }
...@@ -16,6 +16,154 @@ Window { ...@@ -16,6 +16,154 @@ Window {
color: "#323232" color: "#323232"
focus: true focus: true
Grid {
id: grid
y: 206
width: 370
height: 445
anchors.horizontalCenter: parent.horizontalCenter
spacing: 5
rows: 6
columns: 5
Case {
id: _case_1_1
focus: true
}
Case {
id: _case_1_2
}
Case {
id: _case_1_3
}
Case {
id: _case_1_4
}
Case {
id: _case_1_5
}
Case {
id: _case_2_1
}
Case {
id: _case_2_2
}
Case {
id: _case_2_3
}
Case {
id: _case_2_4
}
Case {
id: _case_2_5
}
Case {
id: _case_3_1
}
Case {
id: _case_3_2
}
Case {
id: _case_3_3
}
Case {
id: _case_3_4
}
Case {
id: _case_3_5
}
Case {
id: _case_4_1
}
Case {
id: _case_4_2
}
Case {
id: _case_4_3
}
Case {
id: _case_4_4
}
Case {
id: _case_4_5
}
Case {
id: _case_5_1
}
Case {
id: _case_5_2
}
Case {
id: _case_5_3
}
Case {
id: _case_5_4
}
Case {
id: _case_5_5
}
Case {
id: _case_6_1
}
Case {
id: _case_6_2
}
Case {
id: _case_6_3
}
Case {
id: _case_6_4
}
Case {
id: _case_6_5
}
}
Text {
id: _text2
y: 20
width: 200
height: 80
color: "#ffffff"
text: qsTr("MOTUS")
font.pixelSize: 50
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
anchors.horizontalCenterOffset: 0
font.family: "Tahoma"
font.styleName: "Bold"
anchors.horizontalCenter: parent.horizontalCenter
}
} }
...@@ -58,8 +206,8 @@ Window { ...@@ -58,8 +206,8 @@ Window {
MotusTimer { MotusTimer {
id: motusTimer id: motusTimer
x: 693 x: 1539
y: 59 y: 926
} }
Rectangle { Rectangle {
...@@ -104,17 +252,96 @@ Window { ...@@ -104,17 +252,96 @@ Window {
} }
Rectangle{
id: big_rectangle_langue
x: 64
y: 362
width: 270
height: 340
color: "#323232"
radius: 10
border.color: "#ffffff"
border.width: 5
Rectangle {
id: rectangle_langue
x: 100
y: 60
width: 270
height: 280
color: "#323232"
radius: 10
border.color: "#ffffff"
border.width: 5
anchors.horizontalCenterOffset: 0
anchors.horizontalCenter: parent.horizontalCenter
LangageButton {
id: langageButton
x: 33
y: 31
_textText: "Français"
MouseArea {
id: mouseArea2
x: 0
y: 0
width: 200
height: 100
cursorShape: Qt.PointingHandCursor
onClicked: motusGame.dictionnaryChoosed="Motus\\mots_francais.txt"
}
}
LangageButton {
id: langageButton1
x: 33
y: 152
_textText: "English"
MouseArea {
id: mouseArea3
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: motusGame.dictionnaryChoosed="Motus\\words_alpha.txt"
}
}
}
Text {
id: _text
x: 0
y: 0
width: 270
height: 63
color: "#ffffff"
text: qsTr("Language/Langage")
font.pixelSize: 30
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
font.family: "Tahoma"
}
}
Rectangle { Rectangle {
id: rectangle1 id: rectangle1
x: 342 x: 342
y: 477 y: 762
width: 640 width: 640
height: 280 height: 280
color: "#323232" color: "#323232"
radius: 10 radius: 10
border.color: "#ffffff" border.color: "#ffffff"
border.width: 5 border.width: 5
anchors.horizontalCenterOffset: -27 anchors.horizontalCenterOffset: 0
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
Column { Column {
...@@ -426,85 +653,7 @@ Window { ...@@ -426,85 +653,7 @@ Window {
} }
} }
Rectangle{
id: big_rectangle_langue
x: -360
y: -107
width: 270
height: 340
color: "#323232"
radius: 10
border.color: "#ffffff"
border.width: 5
Rectangle {
id: rectangle_langue
x: 100
y: 60
width: 270
height: 280
color: "#323232"
radius: 10
border.color: "#ffffff"
border.width: 5
anchors.horizontalCenterOffset: 0
anchors.horizontalCenter: parent.horizontalCenter
LangageButton {
id: langageButton
x: 33
y: 31
_textText: "Français"
MouseArea {
id: mouseArea2
x: 0
y: 0
width: 200
height: 100
cursorShape: Qt.PointingHandCursor
onClicked: motusGame.dictionnaryChoosed="Motus\\mots_francais.txt"
}
}
LangageButton {
id: langageButton1
x: 33
y: 152
_textText: "English"
MouseArea {
id: mouseArea3
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: motusGame.dictionnaryChoosed="Motus\\words_alpha.txt"
}
}
}
Text {
id: _text
x: 0
y: 0
width: 270
height: 63
color: "#ffffff"
text: qsTr("Language/Langage")
font.pixelSize: 30
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
font.family: "Tahoma"
} }
}
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment