develop.qml 3.88 KB
Newer Older
hjk's avatar
hjk committed
1
/****************************************************************************
Eike Ziller's avatar
Eike Ziller committed
2
**
3
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
hjk's avatar
hjk committed
4
** Contact: http://www.qt-project.org/legal
Eike Ziller's avatar
Eike Ziller committed
5
**
hjk's avatar
hjk committed
6
** This file is part of Qt Creator.
Eike Ziller's avatar
Eike Ziller committed
7
**
hjk's avatar
hjk committed
8 9 10 11 12 13 14
** 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.
Eike Ziller's avatar
Eike Ziller committed
15 16
**
** GNU Lesser General Public License Usage
hjk's avatar
hjk committed
17 18 19 20 21 22
** 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.
Eike Ziller's avatar
Eike Ziller committed
23
**
hjk's avatar
hjk committed
24 25
** In addition, as a special exception, Digia gives you certain additional
** rights.  These rights are described in the Digia Qt LGPL Exception
Eike Ziller's avatar
Eike Ziller committed
26 27
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
hjk's avatar
hjk committed
28
****************************************************************************/
Eike Ziller's avatar
Eike Ziller committed
29

30
import QtQuick 2.1
31
import widgets 1.0
32
import QtQuick.Controls 1.2 as Controls
33

34 35

Controls.ScrollView {
36
    id: rectangle1
37

38 39 40

    Item {
        id: canvas
41

42 43
        implicitWidth: childrenRect.width + 200
        implicitHeight: childrenRect.height
44

45 46 47 48 49 50
        Button {
            y: screenDependHeightDistance
            text: qsTr("New Project")
            anchors.left: sessionsTitle.left
            onClicked: projectWelcomePage.newProject();
            iconSource: "widgets/images/new.png"
51

52
        }
53

54 55 56
        Button {
            y: screenDependHeightDistance
            text: qsTr("Open Project")
57
            anchors.left: recentProjectsTitle.left
58 59
            onClicked: projectWelcomePage.openProject();
            iconSource: "widgets/images/open.png"
60 61
        }

62
        NativeText {
63
            id: sessionsTitle
64

65
            x: 32
66
            y: screenDependHeightDistance + 77
67 68

            color: "#535353"
69
            text: qsTr("Sessions")
70 71 72 73 74
            font.pixelSize: 16
            font.family: "Helvetica"
            font.bold: true
        }

75
        NativeText {
76
            id: recentProjectsTitle
77 78
            x: 406

79
            y: screenDependHeightDistance + 77
80
            color: "#535353"
81 82
            text: qsTr("Recent Projects")
            anchors.left: sessionsTitle.right
83
            anchors.leftMargin: 280
84 85 86
            font.bold: true
            font.family: "Helvetica"
            font.pixelSize: 16
87
        }
88

89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
        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
        }

105 106
        Item {
            id: actions
107
            x: pageCaption.x + pageCaption.textOffset
108

109
            y: screenDependHeightDistance + 244
110 111 112 113
            width: 140
            height: 70

            anchors.topMargin: 42
114
            anchors.top: sessions.bottom
115 116
        }

117

118 119
        Sessions {
            id: sessions
120

121
            x: 96
122 123 124
            y: 144
            width: 274

125
            anchors.leftMargin: 12
126 127
            anchors.left: sessionsTitle.left
            anchors.right: recentProjectsTitle.left
128
            anchors.rightMargin: 40
129
            anchors.top: sessionsTitle.bottom
130 131 132 133
            anchors.topMargin: 20

            model: sessionList
        }
134
    }
135
}