Tweaks to about dialog symbian1
authorSebastian Brannstrom <sebastianb@symbian.org>
Tue, 16 Nov 2010 00:03:16 +0000
branchsymbian1
changeset 357 2a68d0523020
parent 356 697e27864f3a
child 358 d2ce95126703
Tweaks to about dialog
application/data/PodcastClient_common.rls
application/data/PodcastStrings.ra
application/src/PodcastListView.cpp
--- a/application/data/PodcastClient_common.rls	Mon Nov 15 23:47:20 2010 +0000
+++ b/application/data/PodcastClient_common.rls	Tue Nov 16 00:03:16 2010 +0000
@@ -23,4 +23,5 @@
 rls_string STRING_r_caption "Podcatcher"
 rls_string STRING_r_short_caption "Podcatcher"
 
-rls_string STRING_r_about_text_s60 "Podcatcher 1.10(%d)\nŠ 2007-2010 Sebastian Brannstrom, Lars Persson, Anders Fridlund, EmbedDev AB"
+rls_string STRING_r_about_title "About Podcatcher"
+rls_string STRING_r_about_body "Version 1.10 (%d) for Symbian 1\nŠ 2007-2010 Sebastian Brannstrom, Lars Persson, Anders Fridlund"
--- a/application/data/PodcastStrings.ra	Mon Nov 15 23:47:20 2010 +0000
+++ b/application/data/PodcastStrings.ra	Tue Nov 16 00:03:16 2010 +0000
@@ -75,7 +75,8 @@
 RESOURCE TBUF r_reset_db_query {buf = STRING_r_podcast_setting_reset_db_query;}
 
 RESOURCE TBUF r_error_disk_full {buf = STRING_r_error_disk_full; }
-RESOURCE TBUF r_about_text {buf = STRING_r_about_text_s60;}
+RESOURCE TBUF r_about_title {buf = STRING_r_about_title;}
+RESOURCE TBUF r_about_body {buf = STRING_r_about_body;}
 RESOURCE TBUF r_error_playback_failed {buf = STRING_r_error_playback_failed; }
 RESOURCE TBUF r_podcast_searchfeed_prompt {buf = STRING_r_search_feed_prompt;}
 RESOURCE TBUF r_new_shows {buf = STRING_r_new_shows;}
--- a/application/src/PodcastListView.cpp	Mon Nov 15 23:47:20 2010 +0000
+++ b/application/src/PodcastListView.cpp	Tue Nov 16 00:03:16 2010 +0000
@@ -32,6 +32,7 @@
 #include <akntitle.h>
 #include <akniconarray.h>
 #include <EIKCLBD.H>
+#include <aknmessagequerydialog.h>
 
 #include "buildno.h"
 
@@ -422,13 +423,22 @@
 
 void CPodcastListView::RunAboutDialogL()
 {
-	CAknNoteDialog* dlg = new(ELeave) CAknNoteDialog();
-	HBufC *aboutTextTemplate = iEikonEnv->AllocReadResourceLC(R_ABOUT_TEXT);
+	HBufC *aboutTextTitle = iEikonEnv->AllocReadResourceLC(R_ABOUT_TITLE);
+	
+	HBufC *aboutTextTemplate = iEikonEnv->AllocReadResourceLC(R_ABOUT_BODY);
 	TBuf<255> aboutText;
 	aboutText.Format(*aboutTextTemplate, BUILD_NO);
-	dlg->SetTextL(aboutText);
 	CleanupStack::PopAndDestroy(aboutTextTemplate);
-	dlg->ExecuteLD(R_DLG_ABOUT);
+	
+	HBufC *aboutTextBody = aboutText.AllocLC();
+	
+	CAknMessageQueryDialog* note = new ( ELeave ) CAknMessageQueryDialog(aboutTextBody, aboutTextTitle );
+						
+	note->PrepareLC( R_SHOW_INFO_NOTE ); // Adds to CleanupStack
+	note->RunLD();
+
+	CleanupStack::Pop(aboutTextBody);
+	CleanupStack::Pop(aboutTextTitle);
 }
 
 void CPodcastListView::SetEmptyTextL(TInt aResourceId)