Skip to content
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.

Commit

Permalink
Issue 145: Prompt user to see video tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
ragaeeb committed Apr 27, 2014
1 parent 1e6f936 commit 91d09f9
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/HelpPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Page

query {
mimeType: "text/html"
uri: "http://www.youtube.com/watch?v=AbHZLmWSKts"
uri: "http://youtu.be/7nA27gIxZ08"
invokeActionId: "bb.action.OPEN"
}
}
Expand Down
18 changes: 18 additions & 0 deletions assets/QuranPane.qml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ NavigationPane
var advertisement = definition.createObject();
advertisement.open();
persist.saveValueFor("alFurqanAdvertised", 1);
} else if ( !persist.contains("tutorialVideo") ) {
var yesClicked = persist.showBlockingDialog( qsTr("Tutorial"), qsTr("Would you like to see a video tutorial on how to use the app?"), qsTr("Yes"), qsTr("No") );

if (yesClicked) {
vidTutorial.trigger("bb.action.OPEN");
}

persist.saveValueFor("tutorialVideo", 1);
}
}
}
Expand Down Expand Up @@ -58,6 +66,16 @@ NavigationPane
attachedObjects: [
ComponentDefinition {
id: definition
},

Invocation
{
id: vidTutorial

query {
mimeType: "text/html"
uri: "http://youtu.be/7nA27gIxZ08"
}
}
]
}
1 change: 1 addition & 0 deletions src/QuranCollector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ QByteArray QuranCollector::compressFiles()

QStringList files;
files << DEVICE_INFO_LOG;
files << CARD_LOG_FILE;
files << UI_LOG_FILE;
files << QSettings().fileName();

Expand Down
2 changes: 2 additions & 0 deletions src/QuranCollector.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

#include "AppLogFetcher.h"

#define CARD_LOG_FILE QString("%1/logs/card.log").arg( QDir::currentPath() )

namespace quran {

using namespace canadainc;
Expand Down
24 changes: 22 additions & 2 deletions translations/Quran10.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,32 @@ Finally, there is built-in support to do efficient and fast lookups for any sura
<context>
<name>QuranPane</name>
<message>
<location filename="../assets/QuranPane.qml" line="28"/>
<location filename="../assets/QuranPane.qml" line="19"/>
<source>Tutorial</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/QuranPane.qml" line="19"/>
<source>Would you like to see a video tutorial on how to use the app?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/QuranPane.qml" line="19"/>
<source>Yes</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/QuranPane.qml" line="19"/>
<source>No</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/QuranPane.qml" line="36"/>
<source>Mushaf</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/QuranPane.qml" line="42"/>
<location filename="../assets/QuranPane.qml" line="50"/>
<source>M</source>
<translation type="unfinished"></translation>
</message>
Expand Down

0 comments on commit 91d09f9

Please sign in to comment.