qmlfrontend/Page1Form.ui.qml
branchui-scaling
changeset 15288 c4fd2813b127
parent 14920 a3ad06ac390e
--- a/qmlfrontend/Page1Form.ui.qml	Wed May 16 18:22:28 2018 +0200
+++ b/qmlfrontend/Page1Form.ui.qml	Wed Jul 31 23:14:27 2019 +0200
@@ -2,23 +2,93 @@
 import QtQuick.Controls 2.0
 import QtQuick.Layouts 1.3
 
+import Hedgewars.Engine 1.0
+
 Item {
-    property alias textField1: textField1
-    property alias button1: button1
+  id: element
+  property alias button1: button1
+  property alias previewImage: previewImage
+  property alias gameButton: gameButton
+  width: 1024
+  height: 800
+  property alias netButton: netButton
+  property alias tickButton: tickButton
+  property alias gameView: gameView
+
+  ColumnLayout {
+    anchors.fill: parent
 
     RowLayout {
-        anchors.horizontalCenter: parent.horizontalCenter
-        anchors.topMargin: 20
-        anchors.top: parent.top
+      Layout.alignment: Qt.AlignHCenter
+
+      Button {
+        id: button1
+        text: qsTr("Preview")
+      }
+
+      Button {
+        id: gameButton
+        text: qsTr("Game")
+      }
 
-        TextField {
-            id: textField1
-            placeholderText: qsTr("Text Field")
+      Button {
+        id: tickButton
+        text: qsTr("Tick")
+      }
+    }
+
+    Rectangle {
+      border.color: "orange"
+      border.width: 5
+      radius: 5
+
+      Layout.minimumHeight: 256
+      Layout.fillWidth: true
+
+      gradient: Gradient {
+        GradientStop {
+          position: 0
+          color: "lightblue"
+        }
+        GradientStop {
+          position: 0.9
+          color: "blue"
         }
+        GradientStop {
+          position: 0.9
+          color: "darkblue"
+        }
+        GradientStop {
+          position: 1.0
+          color: "darkblue"
+        }
+      }
 
-        Button {
-            id: button1
-            text: qsTr("Press Me")
-        }
+      Image {
+        id: previewImage
+
+        anchors.fill: parent
+        anchors.margins: parent.radius
+        source: "qrc:/res/iconTime.png"
+        fillMode: Image.PreserveAspectFit
+        cache: false
+      }
     }
+
+    GameView {
+      id: gameView
+
+      Layout.fillWidth: true
+      Layout.fillHeight: true
+    }
+  }
+
+  Button {
+    id: netButton
+    text: qsTr("Net")
+    anchors.bottom: parent.bottom
+    anchors.bottomMargin: 8
+    anchors.left: parent.left
+    anchors.leftMargin: 8
+  }
 }