Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
Beta1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AG3 committed Oct 18, 2014
1 parent e86dcc1 commit 2df1699
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 5 deletions.
40 changes: 37 additions & 3 deletions MainUI.qml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import QtQuick 2.0
Rectangle {
width:RootWidth
height:RootHeight
id:root;

id:root

ListView{
id:listview
property int px
property int py
width:parent.width
height:parent.height/4*3
y:parent.height/8

x:0
model:AFIM
delegate: Rectangle{
Expand Down Expand Up @@ -62,6 +62,7 @@ Rectangle {
}
}


MouseArea{
anchors.fill: parent
onClicked: {
Expand All @@ -71,6 +72,28 @@ Rectangle {
}
}

/*MouseArea{
id:ma
width:parent.width
height:parent.height/4*3
y:parent.height/8
onPressed: {
listview.px=ma.mouseX
listview.py=ma.mouseY
}
onReleased: {
console.log(listview.px-ma.mouseX)
if(listview.px-ma.mouseX>RootWidth/5){
backend.slide(0)
}
if(ma.mouseX-listview.px>RootWidth/5){
backend.slide(1)
}
}
}*/



Rectangle{
id:searchButton
width:parent.width/3
Expand Down Expand Up @@ -127,6 +150,7 @@ Rectangle {
}
}
}

Rectangle{
id:shareButton
width:parent.width/3
Expand All @@ -152,9 +176,13 @@ Rectangle {
onReleased: {
parent.color="#007DC7"
}
onClicked: {
settingsView.visible=!settingsView.visible
}
}
}

//Header banner
Rectangle{
width:parent.width
height:parent.height/8
Expand Down Expand Up @@ -184,4 +212,10 @@ Rectangle {
color: "purple"
}
}

Loader{
id:settingsView
source: "qrc:/Settings.qml"
visible: false
}
}
20 changes: 20 additions & 0 deletions Settings.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import QtQuick 2.0

Rectangle {
x:RootWidth/6
y:RootHeight/6
width: RootWidth/3*2
height: RootHeight/3*2
Text{
anchors.centerIn: parent
width:parent.width/5*4
height:parent.height
text:"现在还没有什么好设置的是吧。。\n本软件遵从GPLv3协议,鼓励开发者在遵从协议的基础上进行二次开发。\n This software is following GPLv3 license, encouraging devlopers to keep developing while complying the GPLv3 license.\n\n联系方式Contact:\nE-Mail:bf109g2@126.com\n手机Phone:18612363582"
font.family: "微软雅黑"
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.Wrap
font.pointSize: 13
}
color:"red"
}
2 changes: 1 addition & 1 deletion WechatAudioManager.pro.user
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 3.1.1, 2014-10-13T22:50:17. -->
<!-- Written by QtCreator 3.1.1, 2014-10-18T14:20:20. -->
<qtcreator>
<data>
<variable>ProjectExplorer.Project.ActiveTarget</variable>
Expand Down
2 changes: 1 addition & 1 deletion android/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --"/>
<meta-data android:name="android.app.lib_name" android:value="WeChatAudioManager"/>
<meta-data android:name="android.app.qt_sources_resource_id" android:resource="@array/qt_sources"/>
<meta-data android:name="android.app.repository" android:value="default"/>
<meta-data android:name="android.app.qt_libs_resource_id" android:resource="@array/qt_libs"/>
Expand Down
5 changes: 5 additions & 0 deletions backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,8 @@ void Backend::copyFile(QString ind)
QFile::copy(resList[index].absoluteFilePath(),myDir.absolutePath()+"/"+resList[index].fileName());
//QMessageBox::information(0,"文件拷贝成功","当前语音消息已拷贝至"+myDir.absolutePath()+"中!请用文件管理器查看!",QMessageBox::Yes);
}

void Backend::slide(bool lor)
{
qDebug()<<lor;
}
1 change: 1 addition & 0 deletions backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public slots:
void playSound(QString ind);
void getDuration(qint64);
void copyFile(QString);
void slide(bool);
};

#endif // BACKEND_H
1 change: 1 addition & 0 deletions source.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
<qresource prefix="/">
<file>MainUI.qml</file>
<file>icon/ticon.png</file>
<file>Settings.qml</file>
</qresource>
</RCC>

0 comments on commit 2df1699

Please sign in to comment.