blob: 6fb5763d7f4787e9a13c2ee8643c0a54d0523f79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
|
// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
import QtQuick 2.10
import QtQuick.Controls 2.4
import QtQuick.Layouts 1.3
import welcome 1.0
import projectmodel 1.0
import StudioFonts 1.0
Item {
width: 1024
height: 786
Rectangle {
id: rectangle
anchors.fill: parent
visible: true
color: "#2d2e30"
StackLayout {
id: stackLayout
anchors.margins: 10
anchors.top: topLine.bottom
anchors.bottom: bottomLine.top
anchors.right: parent.right
anchors.left: parent.left
CustomScrollView {
ProjectsGrid {
model: ProjectModel {
id: projectModel
}
onItemSelected: function(index, item) { projectModel.openProjectAt(index) }
}
}
CustomScrollView {
ProjectsGrid {
model: ExamplesModel {}
onItemSelected: function(index, item) {
projectModel.openExample(item.projectName, item.qmlFileName, item.url, item.explicitQmlproject)
}
}
}
CustomScrollView{
ProjectsGrid {
model: TutorialsModel {}
onItemSelected: function(index, item) { Qt.openUrlExternally(item.url) }
}
}
}
Rectangle {
id: topLine
height: 1
color: "#bababa"
anchors.right: parent.right
anchors.rightMargin: 10
anchors.left: parent.left
anchors.leftMargin: 10
anchors.top: parent.top
anchors.topMargin: 200
}
Rectangle {
id: bottomLine
height: 1
color: "#bababa"
anchors.left: topLine.left
anchors.right: topLine.right
anchors.bottom: parent.bottom
anchors.bottomMargin: 60
}
Row {
x: 8
y: 160
spacing: 26
MyTabButton {
text: qsTr("Recent Projects")
checked: true
onClicked: stackLayout.currentIndex = 0
}
MyTabButton {
text: qsTr("Examples")
onClicked: stackLayout.currentIndex = 1
}
MyTabButton {
text: qsTr("Tutorials")
onClicked: stackLayout.currentIndex = 2
}
}
AccountImage {
id: account
x: 946
y: 29
anchors.right: parent.right
anchors.rightMargin: 40
}
GridLayout {
y: 78
anchors.horizontalCenter: parent.horizontalCenter
columnSpacing: 10
rows: 2
columns: 2
Text {
id: welcomeTo
color: Constants.textDefaultColor
text: qsTr("Welcome to")
renderType: Text.NativeRendering
font.pixelSize: 22
font.family: StudioFonts.titilliumWeb_regular
}
Text {
id: qtDesignStudio
color: "#4cd265"
text: qsTr("Qt Design Studio")
renderType: Text.NativeRendering
font.family: StudioFonts.titilliumWeb_regular
font.pixelSize: 22
}
MyButton {
text: qsTr("Create New")
onClicked: projectModel.createProject()
}
MyButton {
text: qsTr("Open Project")
onClicked: projectModel.openProject()
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
}
}
RowLayout {
y: 732
height: 28
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.bottom
anchors.bottomMargin: 26
spacing: 50
MyButton {
text: qsTr("Help")
onClicked: projectModel.showHelp()
}
MyButton {
text: qsTr("Community")
onClicked: Qt.openUrlExternally("https://forum.qt.io/")
}
MyButton {
text: qsTr("Blog")
onClicked: Qt.openUrlExternally("http://blog.qt.io/")
}
}
Text {
id: qtDesignStudio1
x: 891
y: 171
color: "#ffffff"
text: qsTr("Community Edition")
anchors.right: parent.right
anchors.rightMargin: 23
font.weight: Font.Light
font.pixelSize: 14
font.family: StudioFonts.titilliumWeb_regular
renderType: Text.NativeRendering
visible: projectModel.communityVersion
}
}
}
|