2012-10-02 09:12:39 +02:00
|
|
|
/****************************************************************************
|
2011-07-06 12:56:23 +02:00
|
|
|
**
|
2014-01-07 13:27:11 +01:00
|
|
|
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
|
2012-10-02 09:12:39 +02:00
|
|
|
** Contact: http://www.qt-project.org/legal
|
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
|
|
|
|
|
** a written agreement between you and Digia. For licensing terms and
|
|
|
|
|
** conditions see http://qt.digia.com/licensing. For further information
|
|
|
|
|
** use the contact form at http://qt.digia.com/contact-us.
|
2011-07-06 12:56:23 +02:00
|
|
|
**
|
|
|
|
|
** GNU Lesser General Public License Usage
|
2012-10-02 09:12:39 +02:00
|
|
|
** Alternatively, this file may be used under the terms of the GNU Lesser
|
|
|
|
|
** General Public License version 2.1 as published by the Free Software
|
|
|
|
|
** Foundation and appearing in the file LICENSE.LGPL included in the
|
|
|
|
|
** packaging of this file. Please review the following information to
|
|
|
|
|
** ensure the GNU Lesser General Public License version 2.1 requirements
|
|
|
|
|
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
2011-07-06 12:56:23 +02:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** In addition, as a special exception, Digia gives you certain additional
|
|
|
|
|
** rights. These rights are described in the Digia Qt LGPL Exception
|
2011-07-06 12:56:23 +02:00
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
|
**
|
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-09-25 15:05:23 +02:00
|
|
|
implicitWidth: childrenRect.width + 200
|
|
|
|
|
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
|
|
|
|
|
|
|
|
color: "#535353"
|
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
|
2011-11-23 12:25:32 +01:00
|
|
|
color: "#535353"
|
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
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
anchors.rightMargin: 60
|
|
|
|
|
|
|
|
|
|
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
|
|
|
}
|