635
645
chek.checked="mid"
655
// width: parent.width
657
// property string onekeypage: "second"
658
// property int num: 4
659
// property int check_num: num
661
// //信号绑定,绑定qt的信号finishCleanWork,该信号emit时触发onFinishCleanWork
664
// target: systemdispatcher
665
// onFinishCleanWorkSecond: {
667
// onekeybtn.enabled=true;
669
// else if (msg == "u") {
670
// unneedstatus.state = "StatusU";
671
// onekeybtn.enabled=true;
673
// else if (msg == "c") {
674
// cachestatus.state = "StatusC";
675
// onekeybtn.enabled=true;
677
// else if (msg == "h") {
678
// historystatus.state = "StatusH";
679
// onekeybtn.enabled=true;
681
// else if (msg == "k") {
682
// cookiestatus.state = "StatusK";
683
// onekeybtn.enabled=true;
688
// onFinishCleanWorkSecondError: {
689
// if (msg == "ue") {
690
// unneedstatus.state = "StatusU1";
692
// else if (msg == "ce") {
693
// cachestatus.state = "StatusC1";
695
// else if (msg == "he") {
696
// historystatus.state = "StatusH1";
698
// else if (msg == "ke") {
699
// cookiestatus.state = "StatusK1";
707
//// target: sessiondispatcher
708
//// onFinishCleanWorkSecond: {
709
//// if (msg == "") {
710
//// onekeybtn.enabled=true;
712
//// else if (msg == "h") {
713
//// historystatus.state = "StatusH";
714
//// onekeybtn.enabled=true;
716
//// else if (msg == "k") {
717
//// cookiestatus.state = "StatusK";
718
//// onekeybtn.enabled=true;
722
//// onFinishCleanWorkSecondError: {
723
//// if (msg == "he") {
724
//// historystatus.state = "StatusH1";
726
//// else if (msg == "ke") {
727
//// cookiestatus.state = "StatusK1";
735
// source: "../img/skin/bg-bottom-tab.png"
736
// anchors.fill: parent
740
// Rectangle {id: splitbar1; x: 2; y: 80; width: parent.width-4; height: 1; color: "#b9c5cc" }
741
// Rectangle {id: splitbar2; x: 2; y: 82; width: parent.width-4; height: 1; color: "#fafcfe" }
743
// Rectangle {id: splitbar11; x: 2; y: 110; width: parent.width-4; height: 1; color: "#b9c5cc" }
744
// Rectangle {id: splitbar12; x: 2; y: 112; width: parent.width-4; height: 1; color: "#fafcfe" }
746
// Rectangle {id: splitbar3; x: 2; y: 166; width: parent.width-4; height: 1; color: "#b9c5cc" }
747
// Rectangle {id: splitbar4; x: 2; y: 168; width: parent.width-4; height: 1; color: "#fafcfe" }
749
// Rectangle {id: splitbar5; x: 2; y: 234; width: parent.width-4; height: 1; color: "#b9c5cc" }
750
// Rectangle {id: splitbar6; x: 2; y: 236; width: parent.width-4; height: 1; color: "#fafcfe" }
752
// Rectangle {id: splitbar7; x: 2; y: 304; width: parent.width-4; height: 1; color: "#b9c5cc" }
753
// Rectangle {id: splitbar8; x: 2; y: 306; width: parent.width-4; height: 1; color: "#fafcfe" }
755
// Rectangle {id: splitbar9; x: 2; y: 374; width: parent.width-4; height: 1; color: "#b9c5cc" }
756
// Rectangle {id: splitbar10; x: 2; y: 376; width: parent.width-4; height: 1; color: "#fafcfe" }
762
//// width: parent.width
766
// anchors { top: parent.top; topMargin: 20; left: parent.left; leftMargin: 20 }
769
// source: "../img/toolWidget/clear-movie.gif"
777
// text: qsTr("全面清理电脑中的垃圾、缓存和痕迹,只需要一个按键!")
779
// font.pixelSize: 14
785
//// text: qsTr("全面清理垃圾、痕迹、注册表,高效率解决系统清理问题.")
786
// text: qsTr("一键帮您节省磁盘空间,清理电脑中的垃圾,让系统运行更加快速。")
787
// font.pixelSize: 12
793
// anchors { top: parent.top; topMargin: 30;right: parent.right ; rightMargin: 40 }
797
////// iconName: "onekey.png"
798
//// iconName: "green1.png"
799
//// setbtn_flag: "smallonekey"
803
////////如果没有选中任何清理项,提示警告框!
805
//// if(!(checkboxe.checked||checkboxe2.checked||checkboxe3.checked||checkboxe4.checked))
807
//// onekeybtn.check_flag=false;
809
////// sessiondispatcher.send_warningdialog_msg("友情提示:","对不起,您没有选中清理项,请确认!");
812
//// onekeybtn.check_flag=true;
813
////// select.state="middlestate";
814
////// if(checkboxe.checked&&checkboxe2.checked&&checkboxe3.checked&&checkboxe4.checked)
816
////// select.state="middlestate1";
823
// hoverimage: "green1.png"
824
// setbtn_flag: "smallonekey"
828
//////如果没有选中任何清理项,提示警告框!
830
// if(!(checkboxe.checked||checkboxe2.checked||checkboxe3.checked||checkboxe4.checked))
832
// onekeybtn.check_flag=false;
834
//// sessiondispatcher.send_warningdialog_msg("友情提示:","对不起,您没有选中清理项,请确认!");
837
// onekeybtn.check_flag=true;
838
//// select.state="middlestate";
839
//// if(checkboxe.checked&&checkboxe2.checked&&checkboxe3.checked&&checkboxe4.checked)
841
//// select.state="middlestate1";
848
////------begin new Layout
850
// anchors.top: parent.top
851
// anchors.topMargin: 90
852
// anchors.left: parent.left
853
// anchors.leftMargin: 25
857
// width: parent.width ////ListView不会随鼠标上下移动
858
// // width:fastmode.width -10 //ListView会随鼠标上下移动
859
// height: fastmode.height - refreshArrow.height - 10*2 - 20 -10
867
// font.pixelSize: 14
872
//// source: "../img/toolWidget/unfinish.png"
875
//// name: "middlestate"
876
//// PropertyChanges { target: select; source: "../img/toolWidget/finish.png" }
880
//// name: "middlestate1"
881
//// PropertyChanges { target: select; source: "../img/toolWidget/exception.png" }
887
// anchors.top: parent.top
888
// anchors.topMargin: 50 //110
889
// anchors.left: parent.left
890
// anchors.leftMargin: 45
893
// property SessionDispatcher dis: sessiondispatcher
894
// width: parent.width //clearDelegate.ListView.view.width
898
// Behavior on scale { NumberAnimation { easing.type: Easing.InOutQuad} }
900
// //checkbox, picture and words
904
// anchors.verticalCenter: parent.verticalCenter
905
//// left: parent.left
910
// checked:true //将所有选项都check
911
// anchors.verticalCenter: parent.verticalCenter
912
// onCheckedChanged: {
913
// if(checkboxe.checked)
914
// fastmode.check_num=fastmode.check_num+1;
915
// else fastmode.check_num=fastmode.check_num-1;
917
// if (checkboxe.checked) {
918
// var rubbishlist = systemdispatcher.get_onekey_args2();
919
// var word_flag = "false";
920
// for (var i=0; i<rubbishlist.length; i++) {
921
// if (rubbishlist[i] == "cache") {
922
// word_flag = "true";
926
// if (word_flag == "false") {
927
// systemdispatcher.set_onekey_args2("cache");
930
// else if (!checkboxe.checked) {
931
// systemdispatcher.del_onekey_args2("cache");
937
// width: 40; height: 42
938
// source:"../img/toolWidget/brush.png" //picturename
944
// text: "清理垃圾"//titlename
946
// font.pixelSize: 14
950
// text: "清理系统中的垃圾文件,释放磁盘空间"//detailstr
951
// font.pixelSize: 12
957
// Common.StatusImage {
959
// iconName: "yellow.png"
962
// left: parent.left; leftMargin: 500
967
// PropertyChanges { target: cachestatus; iconName: "green.png"; text: "已完成"}
972
// PropertyChanges { target: cachestatus; iconName: "red.png"; text: "出现异常"}
978
//// source: "../img/toolWidget/unfinish.png"
980
////// top: itemtip.bottom; topMargin: 20
981
//// left: parent.left; leftMargin: 500
986
//// PropertyChanges { target: cachestatus; source:"../img/toolWidget/finish.png"}
990
//// name: "StatusC1"
991
//// PropertyChanges { target: cachestatus; source: "../img/toolWidget/exception.png"}
998
// width: parent.width; height: 1
999
// anchors { top: lineLayout.bottom; topMargin: 5}
1005
// //----------------------------
1007
// property SessionDispatcher dis: sessiondispatcher
1008
// width: parent.width//clearDelegate.ListView.view.width
1012
// Behavior on scale { NumberAnimation { easing.type: Easing.InOutQuad} }
1014
// //checkbox, picture and words
1018
// anchors.verticalCenter: parent.verticalCenter
1019
// Common.CheckBox {
1021
// checked:true //将所有选项都check
1022
// anchors.verticalCenter: parent.verticalCenter
1023
// onCheckedChanged: {
1024
// if(checkboxe2.checked)
1025
// fastmode.check_num=fastmode.check_num+1;
1026
// else fastmode.check_num=fastmode.check_num-1;
1028
// if (checkboxe2.checked) {
1029
// var historylist = systemdispatcher.get_onekey_args2();
1030
// var word_flag1 = "false";
1031
// for (var j=0; j<historylist.length; j++) {
1032
// if (historylist[j] == "history") {
1033
// word_flag1 = "true";
1037
// if (word_flag1 == "false") {
1038
// systemdispatcher.set_onekey_args2("history");
1041
// else if (!checkboxe2.checked) {
1042
// systemdispatcher.del_onekey_args2("history");
1050
// width: 40; height: 42
1051
// source: "../img/toolWidget/history.png"//picturename
1057
// text: "清理历史记录"//titlename
1059
// font.pixelSize: 14
1063
// text: "清理上网时留下的历史记录,保护您的个人隐私"//detailstr
1064
// font.pixelSize: 12
1069
// Common.StatusImage {
1070
// id: historystatus
1071
// iconName: "yellow.png"
1074
// left: parent.left; leftMargin: 500
1079
// PropertyChanges { target: historystatus; iconName: "green.png"; text: "已完成"}
1084
// PropertyChanges { target: historystatus; iconName: "red.png"; text: "出现异常"}
1090
//// id: historystatus
1091
//// source: "../img/toolWidget/unfinish.png"
1093
////// top: cachestatus.bottom; topMargin: 45
1094
//// left: parent.left; leftMargin: 500
1098
//// name: "StatusH"
1099
//// PropertyChanges { target: historystatus; source: "../img/toolWidget/finish.png"}
1103
//// name: "StatusH1"
1104
//// PropertyChanges { target: historystatus; source: "../img/toolWidget/exception.png"}
1110
// Rectangle { //分割条
1111
// width: parent.width; height: 1
1112
// anchors { top: historystatus.bottom; topMargin: 5}
1118
// //----------------------------
1120
// property SessionDispatcher dis: sessiondispatcher
1121
// width: parent.width//clearDelegate.ListView.view.width
1125
// Behavior on scale { NumberAnimation { easing.type: Easing.InOutQuad} }
1127
// //checkbox, picture and words
1131
// anchors.verticalCenter: parent.verticalCenter
1132
// Common.CheckBox {
1134
// checked:true //将所有选项都check
1135
// anchors.verticalCenter: parent.verticalCenter
1136
// onCheckedChanged: {
1137
// if(checkboxe3.checked)
1138
// fastmode.check_num=fastmode.check_num+1;
1139
// else fastmode.check_num=fastmode.check_num-1;
1141
// if (checkboxe3.checked) {
1142
// var cookieslist = systemdispatcher.get_onekey_args2();
1143
// var word_flag2 = "false";
1144
// for (var k=0; k<cookieslist.length; k++) {
1145
// if (cookieslist[k] == "cookies") {
1146
// word_flag2 = "true";
1150
// if (word_flag2 == "false") {
1151
// systemdispatcher.set_onekey_args2("cookies");
1154
// else if (!checkboxe3.checked) {
1155
// systemdispatcher.del_onekey_args2("cookies");
1163
// width: 40; height: 42
1164
// source: "../img/toolWidget/cookies.png"//picturename
1171
// text: "清理Cookies"//titlename
1173
// font.pixelSize: 14
1177
// text: "清理上网时产生的Cookies,还浏览器一片天空"//detailstr
1178
// font.pixelSize: 12
1184
// Common.StatusImage {
1186
// iconName: "yellow.png"
1189
// left: parent.left; leftMargin: 500
1194
// PropertyChanges { target: cookiestatus; iconName: "green.png"; text: "已完成"}
1199
// PropertyChanges { target: cookiestatus; iconName: "red.png"; text: "出现异常"}
1205
//// id: cookiestatus
1206
//// source: "../img/toolWidget/unfinish.png"
1208
////// top: historystatus.bottom; topMargin: 45
1209
//// left: parent.left; leftMargin: 500
1213
//// name: "StatusK"
1214
//// PropertyChanges { target: cookiestatus; source: "../img/toolWidget/finish.png"}
1218
//// name: "StatusK1"
1219
//// PropertyChanges { target: cookiestatus; source: "../img/toolWidget/exception.png"}
1225
// Rectangle { //分割条
1226
// width: parent.width; height: 1
1227
// anchors { top: cookiestatus.bottom; topMargin: 5}
1233
// //----------------------------
1235
// property SessionDispatcher dis: sessiondispatcher
1236
// width: parent.width//clearDelegate.ListView.view.width
1240
// Behavior on scale { NumberAnimation { easing.type: Easing.InOutQuad} }
1242
// //checkbox, picture and words
1246
// anchors.verticalCenter: parent.verticalCenter
1247
// Common.CheckBox {
1249
// checked:true //将所有选项都check
1250
// anchors.verticalCenter: parent.verticalCenter
1251
// onCheckedChanged: {
1252
// if(checkboxe4.checked)
1253
// fastmode.check_num=fastmode.check_num+1;
1254
// else fastmode.check_num=fastmode.check_num-1;
1256
// if (checkboxe4.checked) {
1257
// var mylist = systemdispatcher.get_onekey_args2();
1258
// var word_flag3 = "false";
1259
// for (var q=0; q<mylist.length; q++) {
1260
// if (mylist[q] == "unneed") {
1261
// word_flag3 = "true";
1265
// if (word_flag3 == "false") {
1266
// systemdispatcher.set_onekey_args2("unneed");
1269
// else if (!checkboxe4.checked) {
1270
// systemdispatcher.del_onekey_args2("unneed");
1278
// width: 40; height: 42
1279
// source: "../img/toolWidget/deb.png"//picturename
1286
// text: "卸载不必要的程序"//titlename
1288
// font.pixelSize: 14
1292
// text: "清理软件安装过程中安装的依赖程序,提高系统性能"//detailstr
1293
// font.pixelSize: 12
1299
// Common.StatusImage {
1301
// iconName: "yellow.png"
1304
// left: parent.left; leftMargin: 500
1309
// PropertyChanges { target: unneedstatus; iconName: "green.png"; text: "已完成"}
1314
// PropertyChanges { target: unneedstatus; iconName: "red.png"; text: "出现异常"}
1320
//// id: unneedstatus
1321
//// source: "../img/toolWidget/unfinish.png"
1323
////// top: cookiestatus.bottom; topMargin: 45
1324
//// left: parent.left; leftMargin: 500
1328
//// name: "StatusU"
1329
//// PropertyChanges { target: unneedstatus; source: "../img/toolWidget/finish.png"}
1333
//// name: "StatusU1"
1334
//// PropertyChanges { target: unneedstatus; source: "../img/toolWidget/exception.png"}
1340
// Rectangle { //分割条
1341
// width: parent.width; height: 1
1342
// anchors { top: unneedstatus.bottom; topMargin: 5}
1351
////------end new layout
1353
// Common.MainCheckBox {
1357
// checked:"true" //将所有选项都check
1358
//// background: red
1359
// onCheckedboolChanged: {
1360
// checkboxe.checked = chek.checkedbool;
1361
// checkboxe2.checked = chek.checkedbool;
1362
// checkboxe3.checked = chek.checkedbool;
1363
// checkboxe4.checked = chek.checkedbool;
1366
// onCheck_numChanged: {
1368
// chek.checked="false"
1369
// else if(check_num==num)
1370
// chek.checked="true"
1372
// chek.checked="mid"