2
* Copyright (C) 2013 National University of Defense Technology(NUDT) & Kylin Ltd.
5
* Kobe Lee kobe24_lixiang@126.com
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; version 3.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21
import SessionType 0.1
24
import "common" as Common
27
id: screen; width: parent.width; height: 475
29
property string image_flag:"wps"
30
property string recommendone_image: "../img/skin/wps-small.png"
31
property string recommendtwo_image: "../img/skin/qq-small.png"
32
property string recommendthree_image: "../img/skin/qt-small.png"
33
property string recommendoneimage_image: "../img/skin/wps.png"
34
property string recommendimage_text: "WPS For UbuntuKylin,Linux系统上最好用的办公软件。"
35
property string status_value: "n"
36
property string status_value2: "n"
38
Component.onCompleted: {
42
// target: sudodispatcher
44
// sudodispatcher.add_source_ubuntukylin_qt();
45
// sudodispatcher.check_pkgs_status_qt(sudodispatcher.getAllSoftwareList());
46
// sudodispatcher.remove_source_ubuntukylin_qt();
52
source: "../img/skin/bg-middle.png"
67
source: recommendoneimage_image
71
source: "../img/icons/recommend.png"
79
source: "../img/skin/linecolor.png"
82
width: parent.width;height: 30
83
anchors.bottom: parent.bottom
87
visible: (screen.image_flag == "qt") ? false : true
91
verticalCenter: parent.verticalCenter
94
text:recommendimage_text
98
visible: (screen.image_flag == "qt") ? true : false
103
verticalCenter: parent.verticalCenter
107
if(screen.image_flag == "qt") {
108
content.delegate_name= "eclipse"
109
content.delegate_appname = "Eclipse平台(eclipse)"
110
content.delegate_image= "../img/logo/eclipse.jpg"
111
content.delegate_introduction="Eclipse 是一个开放源代码的、基于Java的可扩展开发平台。就其本身而言,它只是一个框架和一组服务,用于通过插件组件构建开发环境。幸运的是,Eclipse 附带了一个标准的插件集,包括Java开发工具(Java Development Kit,JDK)。"
112
content.introduction_image1= "../img/character/eclipse-01.png"
113
content.introduction_image2= "../img/character/eclipse-02.png"
114
// content.soft_status = sudodispatcher.getSoftwareStatus("eclipse");
115
content.soft_status = sudodispatcher.check_pkg_status_qt("eclipse");
116
sudodispatcher.notifySoftwareCurrentStatus(content.soft_status);
118
pageStack.push(softwarepage);
124
verticalCenter:parent.verticalCenter
130
if(screen.image_flag == "wps") {
131
sudodispatcher.add_source_ubuntukylin_qt();
132
content.delegate_name= "wps-office"
133
content.delegate_appname = "WPS For UbuntuKylin(wps-office)"
134
content.delegate_image= "../img/logo/wps.jpg"
135
content.delegate_introduction="Ubuntukylin团队与金山公司合作,于13.04开始首先推出WPS for UbuntuKylin 1.0,并于13.10推出WPS for UbuntuKylin1.2。与1.0版本相比,1.2版进行了稳定性提升、BUG修复、同时增加了数据透视表等功能,使您的文档工作更加专业和轻松。"
136
content.introduction_image1= "../img/character/wps-01.png"
137
content.introduction_image2= "../img/character/wps-02.png"
138
// content.soft_status = sudodispatcher.getSoftwareStatus("wps-office");
139
content.soft_status = sudodispatcher.check_pkg_status_qt("wps-office");
140
sudodispatcher.notifySoftwareCurrentStatus(content.soft_status);
141
sudodispatcher.remove_source_ubuntukylin_qt();
143
else if(screen.image_flag == "qq") {
144
content.delegate_name= "wine-qq2012-longeneteam"
145
content.delegate_appname = "Wine 1.5.18 patched for qq2012 Beta3"
146
content.delegate_image= "../img/logo/qq.jpg"
147
content.delegate_introduction="QQ2012基于官方Beta3版,支持双击deb包安装、支持全局热键、不会自动离线、文件传输正常、ibus中文输入法正常。"
148
content.introduction_image1= "../img/character/qq-01.png"
149
content.introduction_image2= "../img/character/qq-02.png"
150
// content.soft_status = sudodispatcher.getSoftwareStatus("wine-qq2012-longeneteam");
151
content.soft_status = sudodispatcher.check_pkg_status_qt("wine-qq2012-longeneteam");
152
sudodispatcher.notifySoftwareCurrentStatus(content.soft_status);
154
else if(screen.image_flag == "qt") {
155
content.delegate_name= "qtcreator"
156
content.delegate_appname = "Qt平台(qtcreator)"
157
content.delegate_image= "../img/logo/qtcreator.jpg"
158
content.delegate_introduction="Qt Creator是跨平台的 Qt IDE, Qt Creator 是 Qt 被 Nokia 收购后推出的一款新的轻量级集成开发环境(IDE)。此 IDE 能够跨平台运行,支持的系统包括 Linux(32 位及 64 位)、Mac OS X 以及 Windows。"
159
content.introduction_image1= "../img/character/qtcreator-01.png"
160
content.introduction_image2= "../img/character/qtcreator-02.png"
161
// content.soft_status = sudodispatcher.getSoftwareStatus("qtcreator");
162
content.soft_status = sudodispatcher.check_pkg_status_qt("qtcreator");
163
sudodispatcher.notifySoftwareCurrentStatus(content.soft_status);
165
pageStack.push(softwarepage);
181
width:imageone.width;height: imageone.height
184
source: recommendone_image
189
// screen.status_value = sudodispatcher.getSoftwareStatus("qq");
190
screen.image_flag = "wps";
191
screen.recommendimage_text = "WPS,Linux系统上最好用的办公软件。";
192
imagframe.y=colum.y+recommendone.y;
193
recommendoneimage_image="../img/skin/wps.png";
199
width:imagetwo.width;height: imagetwo.height
202
source: recommendtwo_image
207
// screen.status_value = sudodispatcher.getSoftwareStatus("qq");
208
screen.image_flag = "qq";
209
screen.recommendimage_text = "WineQQ,Linux系统上最好用的QQ版本。";
210
imagframe.y=colum.y+recommendtwo.y;
211
recommendoneimage_image="../img/skin/qq.png";
217
width:imagethree.width;height: imagethree.height
220
source: recommendthree_image
225
// screen.status_value = sudodispatcher.getSoftwareStatus("qtcreator");
226
// screen.status_value2 = sudodispatcher.getSoftwareStatus("qq");
227
screen.image_flag = "qt";
228
imagframe.y=colum.y+recommendthree.y;
229
recommendoneimage_image="../img/skin/qt.png";
237
source: "../img/skin/frame.png"
238
x:colum.x-13;y:colum.y
244
width: parent.width-50
252
border.color: "#9aa2af"
256
width: parent.width-1;height: 31
264
GradientStop{position: 0.0; color: "#e2e2e2"}
265
GradientStop{position: 1.0; color: "#dedede"}
268
anchors.centerIn: parent
277
Rectangle{id: splitbar1; anchors{top:rec.bottom;left: parent.left;leftMargin: 1 }width:parent.width-1 ; height:1; color:"#b8bdc3"}
278
Rectangle{id: splitbar2; anchors{top:splitbar1.bottom;left: parent.left;leftMargin: 1 }width:parent.width-1 ; height:1; color:"#ebf0f6"}
282
anchors.bottom: parent.bottom
287
icon: "../img/icons/kuaipan.png"
291
icon: "../img/icons/Pps.png"
294
icon: "../img/icons/kugou.png"
298
icon: "../img/icons/xunlei.png"
302
icon: "../img/icons/stardict.png"
306
icon: "../img/icons/adobe-flash.png"
310
icon: "../img/icons/vlc.png"
314
icon: "../img/icons/chromium.png"
318
icon: "../img/icons/virtualbox.png"
322
icon: "../img/icons/qbittorrent.png"
326
icon: "../img/icons/xchat.png"
330
icon: "../img/icons/lotus.png"
334
icon: "../img/icons/openfetion.png"
339
// icon: "../img/icons/eclipse.png"
343
// icon: "../img/icons/qt.png"
347
// icon: "../img/icons/qq.png"
351
// icon: "../img/icons/wps.png"
357
height: parent.height-12
366
delegate: SoftwareDelegate {}
368
cellWidth: 190; cellHeight: 90
373
anchors.right: parent.right
374
anchors.rightMargin: 4
375
height: parent.height-1
381
anchors.right: parent.right
382
anchors.rightMargin: 5
384
y: gridView.visibleArea.yPosition * (scrollbar.height + 100) //257
385
// height: gridView.visibleArea.heightRatio * scrollbar.height;
390
border.color: "lightgrey"
392
anchors.verticalCenter: parent.verticalCenter
393
anchors.horizontalCenter: parent.horizontalCenter
412
drag.axis: Drag.YAxis
414
drag.maximumY: scrollbar.height - button.height
416
gridView.contentY = button.y / (scrollbar.height + 100) * gridView.contentHeight //257