~bzoltan/kubuntu-packaging/decouple_cmake_plugin

« back to all changes in this revision

Viewing changes to share/qtcreator/welcomescreen/develop.qml

  • Committer: Timo Jyrinki
  • Date: 2013-11-15 12:25:23 UTC
  • mfrom: (1.1.28)
  • Revision ID: timo.jyrinki@canonical.com-20131115122523-i2kyamsu4gs2mu1m
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
**
28
28
****************************************************************************/
29
29
 
30
 
import QtQuick 1.1
 
30
import QtQuick 2.1
31
31
import widgets 1.0
32
32
 
33
33
Rectangle {
34
34
    id: rectangle1
35
 
    width: 900
 
35
    width: parent.width
36
36
    height: 600
37
37
 
38
 
    PageCaption {
39
 
        id: pageCaption
40
 
 
41
 
        x: 32
42
 
        y: 8
43
 
 
44
 
        anchors.rightMargin: 16
45
 
        anchors.right: parent.right
46
 
        anchors.leftMargin: 16
47
 
        anchors.left: parent.left
48
 
 
49
 
        caption: qsTr("Develop")
50
 
    }
51
 
 
52
38
    Item {
53
39
        id: canvas
54
40
 
55
41
        x: 12
56
42
        y: 0
57
 
        width: 1024
58
43
 
59
44
        anchors.bottomMargin: 0
60
 
        anchors.bottom: parent.bottom
61
 
        anchors.top: parent.top
 
45
        anchors.fill: parent
62
46
        anchors.topMargin: 0
63
47
 
64
48
        Rectangle {
73
57
        }
74
58
 
75
59
        RecentProjects {
76
 
            x: 406
77
 
            y: 144
78
 
            width: 481
 
60
            x: 428
 
61
 
79
62
            height: 432
80
63
            id: recentProjects
81
64
 
 
65
            anchors.leftMargin: 12
82
66
            anchors.left: recentProjectsTitle.left
83
67
 
84
68
            anchors.top: recentProjectsTitle.bottom
86
70
            anchors.bottom: parent.bottom
87
71
            anchors.bottomMargin: 40
88
72
            anchors.right: parent.right
89
 
            anchors.rightMargin: 80
 
73
            anchors.rightMargin: 60
90
74
 
91
75
            model: projectList
92
76
        }
102
86
            visible: !recentProjects.scrollBarVisible
103
87
        }
104
88
 
105
 
        Text {
 
89
        NativeText {
106
90
            id: sessionsTitle
107
91
 
108
 
            x: pageCaption.x + pageCaption.textOffset
109
 
            y: 105
 
92
            x: 32
 
93
            y: 128
110
94
 
111
95
            color: "#535353"
112
96
            text: qsTr("Sessions")
115
99
            font.bold: true
116
100
        }
117
101
 
118
 
        Text {
 
102
        NativeText {
119
103
            id: recentProjectsTitle
120
104
            x: 406
121
105
 
122
 
            y: 105
 
106
            y: 128
123
107
            color: "#535353"
124
108
            text: qsTr("Recent Projects")
125
109
            anchors.left: sessionsTitle.right
139
123
 
140
124
            anchors.topMargin: 42
141
125
            anchors.top: sessions.bottom
142
 
 
143
 
            LinkedText {
144
 
                id: openProject
145
 
                x: 51
146
 
                y: 45
147
 
                text: qsTr("Open Project")
148
 
                onClicked: projectWelcomePage.openProject();
149
 
            }
150
 
 
151
 
            LinkedText {
152
 
                id: createProject
153
 
                x: 51
154
 
                y: 13
155
 
                text: qsTr("Create Project")
156
 
                onClicked: projectWelcomePage.newProject();
157
 
            }
158
 
 
159
 
            Image {
160
 
                id: icon02
161
 
                y: 32
162
 
                source: "widgets/images/icons/openIcon.png"
163
 
            }
164
 
 
165
 
            Image {
166
 
                id: icon01
167
 
                source: "widgets/images/icons/createIcon.png"
168
 
            }
 
126
        }
 
127
 
 
128
        Button {
 
129
            y: 51
 
130
            text: qsTr("New Project")
 
131
            anchors.left: sessionsTitle.left
 
132
            onClicked: projectWelcomePage.newProject();
 
133
            iconSource: "widgets/images/new.png"
 
134
 
 
135
        }
 
136
 
 
137
        Button {
 
138
            y: 51
 
139
            text: qsTr("Open Project")
 
140
            anchors.left: recentProjectsTitle.left
 
141
            onClicked: projectWelcomePage.openProject();
 
142
            iconSource: "widgets/images/open.png"
169
143
        }
170
144
 
171
145
        Sessions {
172
146
            id: sessions
173
147
 
174
 
            x: 87
 
148
            x: 96
175
149
            y: 144
176
150
            width: 274
177
151
 
 
152
            anchors.leftMargin: 12
178
153
            anchors.left: sessionsTitle.left
179
154
            anchors.right: recentProjectsTitle.left
180
155
            anchors.rightMargin: 40