/* * Copyright (C) 2013 by Neusoft * Author : Wang Qi * */ /** * A Date Item in HMICalendar with optional solarDate label,lunarDate label and icon . */ import QtQuick 2.0 //import QtQuick.Controls 1.1 import "../com/neusoft/auto/widgets" import "coordinate.js" as CONFIG HMIMouseArea{ property double expanctnum: 1.25 id: dateItem //button width: 120 //dateImg.width height: 110 //dateImg.height // /** // * type:int // * This property is index of the dateItem // */ // property var index property alias datebuttonpressed: dateItem.pressed property alias hasEvt: hasEvtImg.visible property alias isInShowingMon: dateIcon.visible /** * type:bool * This property holds if the soalrDate/lunarDate label for dateItem will be displayed or not. */ property alias solarLabel: solarDateLabel.visible property alias lunarLable: lunarDateLabel.visible property alias lunarLable2: lunarDateLabel2.visible //ADD FOR DOUBLE LUNAR TEXT 20170720 /** * type:string * This property holds the text label for the dateItem. */ property alias solarlabelText: solarDateLabel.text property alias lunarlabelText: lunarDateLabel.text property alias lunarlabelText2: lunarDateLabel2.text //ADD FOR DOUBLE LUNAR TEXT 20170720 /** * type:color * This property holds the the color of text label for dateItem. */ property alias solarLabelColor: solarDateLabel.color property alias lunarLabelColor: lunarDateLabel.color property alias lunarLabel2Color: lunarDateLabel2.color //ADD FOR DOUBLE LUNAR TEXT 20170720 /** * type:real * This property holds the font.pointsize of text label for the dateItem. */ property alias solarLabelSize: solarDateLabel.font.pixelSize property alias lunarLabelSize: lunarDateLabel.font.pixelSize property alias lunarLabelSize2: lunarDateLabel2.font.pixelSize //ADD FOR DOUBLE LUNAR TEXT 20170720 property alias solarLabelPixelSize : solarDateLabel.font.pixelSize property alias lunarLabelPixelSize : lunarDateLabel.font.pixelSize /** * type:bool * This property holds whether the font weight of the text label for the dateItem is bold. */ property alias solarLabelBold: solarDateLabel.font.bold property alias lunarLabelBold: lunarDateLabel.font.bold /** * type:string * This property holds the source url for the dateItem's background image. * * The default value is an empty url, which displays no background image. */ property alias solarLabelStyle: solarDateLabel.font.family property alias luanrLabelStyle: lunarDateLabel.font.family property alias itemImg: dateImg.source //buttonImg.source /** * type:string * * This property holds the source url for the dateItem's icon. * It can be any image from any protocol supported by the Image element * * The default value is an empty url, which displays no icon. */ property alias itemIcon: dateImg.source property alias dateItemImgOpacity: dateImg.opacity property string bgImageStyle: systemCtrl.style /** * type:bool wsl 2015.12.29 * This property holds if the soalrDate/lunarDate label for bBeep = true or bBeep = false. */ property alias isBeep: dateItem.bBeep Item { id: dateIcon //buttonImg x: 0 y: 0 width:120 height: 110 Image { id: dateImg anchors.fill: parent } } Item { id: hasEvtImg //buttonImg x: 0 y: 30 width:98 height: 20 Image{ anchors.fill: parent source: ""//CONFIG.HAS_EVT_IMG+bgImageStyle } } Column { id:dateLabelLayout width: parent.width anchors.centerIn: parent // HMILabel { id: solarDateLabel width: parent.width // anchors.left: parent.left // anchors.right: parent.right wrapMode: Text.AlignHCenter } Item { id:item width: parent.width height: 1 } HMILabel { id: lunarDateLabel width: parent.width // anchors.left: parent.left //anchors.right: parent.right wrapMode: Text.AlignHCenter } } //ADD FOR DOUBLE LUNAR TEXT 20170720 START HMILabel { id: lunarDateLabel2 width: parent.width height:20 y:87 } //ADD FOR DOUBLE LUNAR TEXT 20170720 END }