2012-10-02 09:12:39 +02:00
|
|
|
/****************************************************************************
|
2011-07-06 12:56:23 +02:00
|
|
|
**
|
2016-01-15 14:59:14 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2011-07-06 12:56:23 +02:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** This file is part of Qt Creator.
|
2011-07-06 12:56:23 +02:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
2016-01-15 14:59:14 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2011-07-06 12:56:23 +02:00
|
|
|
**
|
2016-01-15 14:59:14 +01:00
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
2011-07-06 12:56:23 +02:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
****************************************************************************/
|
2011-07-06 12:56:23 +02:00
|
|
|
|
2013-09-02 17:29:30 +02:00
|
|
|
import QtQuick 2.1
|
2012-03-15 11:45:05 +01:00
|
|
|
import widgets 1.0
|
2014-09-25 15:05:23 +02:00
|
|
|
import QtQuick.Controls 1.2 as Controls
|
2010-11-11 16:49:17 +01:00
|
|
|
|
2014-09-25 15:05:23 +02:00
|
|
|
|
|
|
|
|
Controls.ScrollView {
|
2011-11-23 12:25:32 +01:00
|
|
|
id: rectangle1
|
2014-09-25 15:05:23 +02:00
|
|
|
|
2011-11-23 12:25:32 +01:00
|
|
|
|
|
|
|
|
Item {
|
|
|
|
|
id: canvas
|
2011-09-28 15:45:08 +02:00
|
|
|
|
2014-11-11 17:30:31 +01:00
|
|
|
implicitWidth: childrenRect.width
|
2014-09-25 15:05:23 +02:00
|
|
|
implicitHeight: childrenRect.height
|
2011-09-28 12:49:55 +02:00
|
|
|
|
2014-09-25 15:05:23 +02:00
|
|
|
Button {
|
|
|
|
|
y: screenDependHeightDistance
|
|
|
|
|
text: qsTr("New Project")
|
|
|
|
|
anchors.left: sessionsTitle.left
|
|
|
|
|
onClicked: projectWelcomePage.newProject();
|
|
|
|
|
iconSource: "widgets/images/new.png"
|
2013-10-08 09:27:26 +02:00
|
|
|
|
2014-09-25 15:05:23 +02:00
|
|
|
}
|
2011-11-23 12:25:32 +01:00
|
|
|
|
2014-09-25 15:05:23 +02:00
|
|
|
Button {
|
|
|
|
|
y: screenDependHeightDistance
|
|
|
|
|
text: qsTr("Open Project")
|
2012-02-19 21:32:48 +02:00
|
|
|
anchors.left: recentProjectsTitle.left
|
2014-09-25 15:05:23 +02:00
|
|
|
onClicked: projectWelcomePage.openProject();
|
|
|
|
|
iconSource: "widgets/images/open.png"
|
2011-11-23 12:25:32 +01:00
|
|
|
}
|
|
|
|
|
|
2013-09-17 12:38:46 +02:00
|
|
|
NativeText {
|
2012-02-19 21:32:48 +02:00
|
|
|
id: sessionsTitle
|
2011-11-23 12:25:32 +01:00
|
|
|
|
2013-10-08 09:27:26 +02:00
|
|
|
x: 32
|
2014-09-25 15:05:23 +02:00
|
|
|
y: screenDependHeightDistance + 77
|
2011-11-23 12:25:32 +01:00
|
|
|
|
2014-10-17 18:26:19 +02:00
|
|
|
color: creatorTheme.Welcome_TextColorHeading
|
2012-02-19 21:32:48 +02:00
|
|
|
text: qsTr("Sessions")
|
2011-11-23 12:25:32 +01:00
|
|
|
font.pixelSize: 16
|
|
|
|
|
font.family: "Helvetica"
|
|
|
|
|
font.bold: true
|
|
|
|
|
}
|
|
|
|
|
|
2013-09-17 12:38:46 +02:00
|
|
|
NativeText {
|
2012-02-19 21:32:48 +02:00
|
|
|
id: recentProjectsTitle
|
2011-11-23 12:25:32 +01:00
|
|
|
x: 406
|
|
|
|
|
|
2014-09-25 15:05:23 +02:00
|
|
|
y: screenDependHeightDistance + 77
|
2014-10-17 18:26:19 +02:00
|
|
|
color: creatorTheme.Welcome_TextColorHeading
|
2012-02-19 21:32:48 +02:00
|
|
|
text: qsTr("Recent Projects")
|
|
|
|
|
anchors.left: sessionsTitle.right
|
2012-03-02 15:42:23 +01:00
|
|
|
anchors.leftMargin: 280
|
2011-11-23 12:25:32 +01:00
|
|
|
font.bold: true
|
|
|
|
|
font.family: "Helvetica"
|
|
|
|
|
font.pixelSize: 16
|
2011-09-28 12:49:55 +02:00
|
|
|
}
|
2011-11-23 12:25:32 +01:00
|
|
|
|
2014-09-25 15:05:23 +02:00
|
|
|
RecentProjects {
|
|
|
|
|
x: screenDependLeftMargin
|
|
|
|
|
|
|
|
|
|
id: recentProjects
|
|
|
|
|
|
|
|
|
|
anchors.leftMargin: 12
|
|
|
|
|
anchors.left: recentProjectsTitle.left
|
|
|
|
|
|
|
|
|
|
anchors.top: recentProjectsTitle.bottom
|
|
|
|
|
anchors.topMargin: 20
|
|
|
|
|
|
|
|
|
|
model: projectList
|
|
|
|
|
}
|
|
|
|
|
|
2011-11-23 12:25:32 +01:00
|
|
|
Item {
|
|
|
|
|
id: actions
|
2012-01-18 17:34:16 +01:00
|
|
|
x: pageCaption.x + pageCaption.textOffset
|
2011-11-23 12:25:32 +01:00
|
|
|
|
2014-09-25 15:05:23 +02:00
|
|
|
y: screenDependHeightDistance + 244
|
2011-11-23 12:25:32 +01:00
|
|
|
width: 140
|
|
|
|
|
height: 70
|
|
|
|
|
|
|
|
|
|
anchors.topMargin: 42
|
2012-02-19 21:32:48 +02:00
|
|
|
anchors.top: sessions.bottom
|
2013-10-08 09:27:26 +02:00
|
|
|
}
|
|
|
|
|
|
2012-02-23 17:50:30 +01:00
|
|
|
|
2012-02-19 21:32:48 +02:00
|
|
|
Sessions {
|
|
|
|
|
id: sessions
|
2012-02-23 17:50:30 +01:00
|
|
|
|
2013-10-08 09:27:26 +02:00
|
|
|
x: 96
|
2012-02-23 17:50:30 +01:00
|
|
|
y: 144
|
|
|
|
|
width: 274
|
|
|
|
|
|
2013-10-08 09:27:26 +02:00
|
|
|
anchors.leftMargin: 12
|
2012-02-19 21:32:48 +02:00
|
|
|
anchors.left: sessionsTitle.left
|
|
|
|
|
anchors.right: recentProjectsTitle.left
|
2012-02-23 17:50:30 +01:00
|
|
|
anchors.rightMargin: 40
|
2012-02-19 21:32:48 +02:00
|
|
|
anchors.top: sessionsTitle.bottom
|
2012-02-23 17:50:30 +01:00
|
|
|
anchors.topMargin: 20
|
|
|
|
|
|
|
|
|
|
model: sessionList
|
|
|
|
|
}
|
2011-07-14 10:47:16 +02:00
|
|
|
}
|
2010-11-11 16:49:17 +01:00
|
|
|
}
|