summaryrefstree
path: root/usr/bin/qml/USB/USBimage/Image_ungif1.qml
blob: c80aa734358dda6c4e1d30b2500bba19f88902da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import QtQuick 2.0
import "../usb_define.js" as StatusList
import "../../com/neusoft/auto/widgets"
//HMICenterWindow
//{
Image
{

    id: bigimage1
    //Fod by lishunan for #314731 start
    source:(col1 == 0 && col0 != ""&&!(USBControl1.isUsbImgOver20M(col0)))?col0:""//USBControl1.isUsbImgOver20M(col0)?"":((col1 == 0 && col0 != "")?col0:"")
           //(col1 == 0 && col0 != "")?col0:""
    //Fod by lishunan for #314731 end
//    width: StatusList.IMAGE_HALF_WIDTH
//    height: StatusList.IMAGE_REAL_HEIGHT

    //add by system halted
    sourceSize.width: bMaxWindow == true?StatusList.IMAGE_FULL_WIDTH:StatusList.IMAGE_HALF_WIDTH
    sourceSize.height:bMaxWindow == true?StatusList.IMAGE_BIGGRIDVIEW_HEIGHT:StatusList.IMAGE_HALF_HEIGHT
    //add by system halted
    fillMode:Image.PreserveAspectFit
    asynchronous:true
    clip:false//true
    smooth:false//true
    cache:false
    property int realwidth:0
    property int realheight:0

    Component.onCompleted:
    {
    }

//    HMILabel
//    {
//        id:errormesslable1
//        color:"#8D9699"
//        width:500
//        height:40
//        anchors.horizontalCenter: parent.horizontalCenter
////        anchors.verticalCenter: parent.verticalCenter
//        anchors.top: parent.top
//        anchors.topMargin: 67
//        font.pixelSize:30

//        verticalAlignment: Text.AlignVCenter
//        horizontalAlignment: Text.AlignHCenter

//        text: col1
//        visible: false
//        elide: Text.ElideRight
//        wtitesize:2
//    }
    onStatusChanged:
    {
        if(col1 == 0)
        {
            if(bigimage1.status == Image.Ready)
            {
//                ungifanalyze()
    //              USBControl1.imageUnGifIsReday()
                  picFlick.image_ungif_States = true
                realwidth = bigimage1.width//bigimage1.sourceSize.width
                realheight = bigimage1.height// bigimage1.sourceSize.height
                ungifanalyze()
                defaultpic.visible = false
            }
            else if(bigimage1.status == Image.Error)
            {
//                imageControl.image_ungif_sendMessagetoComponent(index,bigimage1.width,bigimage1.height)
                picFlick.imageFlag = false
                picFlick.image_ungif_States = false
            }
        }
    }
//    Connections
//    {
//        target: main_play_window
//        onImageSize:
//        {
//            if(big_Grid_View.currentIndex == index && 0 == col1)
//            {
//                source = col0
//            }
//        }
//    }
}