This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
+the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
Item {
id: screen
- width: 480
- height: 800
+ width: 800
+ height: 480
property int curDay: LC.curDay()
property int curMonth: LC.curMonth()
width: 80
height: 20
color: "#29d999"
- text: "Tháng "+screen.curMonth+" Năm "+screen.curYear
+ textFormat: Text.RichText
+ text: "Tháng <b>"+screen.curMonth+"</b> Năm <b>"+screen.curYear+"</b>"
anchors.horizontalCenter: parent.horizontalCenter
- font.bold: true
+ font.bold: false
font.family: "Tahoma"
smooth: true
horizontalAlignment: Text.AlignHCenter
property int index: 0
onIndexChanged: txtDATEpv.currentIndex = reelx.index
color: "transparent"
+
Component {
id: delegate
Column {
}
}
else
- return theme_manager.theme.markdate.otherday;
+ return "transparent";//theme_manager.theme.markdate.otherday;
}
}
}
}
function init(){
- while(maindatemodel.count>0){
- try{maindatemodel.remove(maindatemodel.count-1)}catch(e){}
- }
-
for(var i=1;i<=LC.calDays(screen.curMonth,screen.curYear);i++)
append({name:i})
}
//-------------------------------------------------
- Component.onCompleted: {
- maindatemodel.init()
- }
Text {
id: txtTHU
x: -(screen.width * 1.5)
}
- NoFeatureDialog{
- id: nofeatureDialog
- state:"nofeaturedialog"
+ About{
+ id: aboutDialog
+ state:"aboutdialog"
anchors.verticalCenter: parent.verticalCenter
width: parent.width; height: parent.height-60;
x: -(screen.width * 1.5)
}
-
- About{
- id: aboutDialog
- state:"aboutdialog"
+ FileBrowser{
+ id: fileBrowser
+ state:"filebrowser"
anchors.verticalCenter: parent.verticalCenter
width: parent.width; height: parent.height-60;
x: -(screen.width * 1.5)
PropertyChanges { target: mouseareaMM;enabled:false }
},
+ State{
+ name:"filebrowser"
+ PropertyChanges { target: fileBrowser; x: 0; focus:true; visible:true;}
+ PropertyChanges { target: toolBar; y: screen.height }
+ PropertyChanges { target: toolBar }
+ },
State {
name: "optionsscreen";
PropertyChanges { target: optionsScreen; x: 0; focus:true}
PropertyChanges { target: changeTheme; x: 0; focus:true}
PropertyChanges { target: toolBar; y: screen.height }
PropertyChanges { target: toolBar }
- PropertyChanges { target: mouseareaMM;enabled:false }
+ PropertyChanges { target: reelx;enabled:false }
+ PropertyChanges { target: mouseareaMM;enabled:false }
},
State {
name: "xemngaytotxauhoangdao";
- PropertyChanges { target: xntxhdScreen; x: 0; focus:true}
+ PropertyChanges { target: xntxhdScreen; x: 0; focus:true;visible:true;}
PropertyChanges { target: toolBar; y: screen.height }
PropertyChanges { target: toolBar }
PropertyChanges { target: mouseareaMM;enabled:false }
}
},
State {
- name: "nofeaturedialog";
- PropertyChanges { target: nofeatureDialog; x: 0; focus:true}
- PropertyChanges { target: toolBar; y: screen.height }
- PropertyChanges { target: toolBar }
- PropertyChanges { target: mouseareaMM;enabled:false }
- PropertyChanges { target: reelx;enabled:false }
- },
- State {
name: "aboutdialog";
- PropertyChanges { target: aboutDialog; x: 0; focus:true}
+ PropertyChanges { target: aboutDialog; x: 0; focus:true; visible:true;}
PropertyChanges { target: toolBar; y: screen.height }
PropertyChanges { target: toolBar }
PropertyChanges { target: mouseareaMM;enabled:false }
},
State {
name: "xemtheothang";
- PropertyChanges { target: fullmonthDialog; x: 0; focus:true}
+ PropertyChanges { target: fullmonthDialog; x: 0; focus:true; visible:true;}
PropertyChanges { target: toolBar; y: screen.height }
PropertyChanges { target: toolBar }
StateChangeScript {
]
transitions: [
- Transition { NumberAnimation { properties: "x,y,opacity"; duration: 500; easing.type: Easing.InOutBack } }
+ //normally i used InOutBack
+ Transition { NumberAnimation { properties: "x,y,opacity"; duration: 300; easing.type: Easing.InOutBack } }
]
}
Component.onCompleted: {
-
+ amdatetimeDialog.reset()
+ maindatemodel.init()
}
+
}