src/hbwidgets/popups/hbprogressdialog.cpp
changeset 5 627c4a0fd0e7
parent 3 11d3954df52a
child 21 4633027730f5
child 34 ed14f46c0e55
--- a/src/hbwidgets/popups/hbprogressdialog.cpp	Thu May 27 13:10:59 2010 +0300
+++ b/src/hbwidgets/popups/hbprogressdialog.cpp	Fri Jun 11 13:58:22 2010 +0300
@@ -111,7 +111,7 @@
         mContentWidget->mProgressBar->setRange(0,100);
     }
     
-    HbAction *action = new HbAction(q->tr("Cancel"), q);
+    HbAction *action = new HbAction(hbTrId("txt_common_button_cancel"), q);
     QObject::connect(action, SIGNAL(triggered()), q, SLOT(_q_userCancel()));
     q->addAction(action);
     
@@ -231,21 +231,21 @@
     \class HbProgressDialog
     \brief HbProgressDialog provides feedback on the progress of a slow operation.
 
-    \image html progressdialog2.png  "A normal Progress Dialog with icon and text"
+    \image html progressdialog1.png  "A normal Progress Dialog with icon and text"
     \image html progressdialog2.png  "A wait Progress Dialog with icon and text"
 
-    ProgressDialog widget displays that a process is active and also the completion level of the process to the user.
+    ProgressDialog widget displays that an application is active and also the completion level of the process to the user.
 
     A progress dialog is used to give the user an indication of how long an operation is going to take, and 
     to demonstrate that the application has not frozen. It can also give the user an opportunity to abort the operation.
 
-    Progress dialog provides several types of notifications. The supported  types are:
+    Progress dialog provides 2 types of notifications. They are:
     
     \code
     enum ProgressDialogType { ProgressDialog, WaitDialog };
     \endcode
 
-    Progress dialog has the following mandatory elements:
+    Progress dialog has the following default elements:
     \li Progress bar (Determinate type) 
     \li Description
     \li Cancel button (for canceling the process) 
@@ -253,7 +253,6 @@
     Optionally, progress dialog may also includes:
     \li  Icon
     \li  Heading
-    \li  Close button (same as ‘Cancel’ button during active process, closes the dialog after successful process)
 
     Progress dialog is modal and requires user intervention to dismiss it. 
     \sa HbDialog
@@ -271,7 +270,7 @@
     \endcode
 
     The progress note is closed explicitly when the user clicks Cancel button or the application 
-    calls cancel().
+    calls cancel() API.
 
     Another use case is an application downloading a file. 
     \code
@@ -286,6 +285,13 @@
     }
 
     \endcode
+
+    Below sample code shows how the \a cancel() signal can be connected so that application  can terminate the task. 
+
+    \code
+    HbProgressDialog *pDialog = new HbProgressDialog(HbProgressDialog::ProgressDialog);
+    connect(pDialog,SIGNAL(cancelled()),this,SLOT(dialogCancelled()));
+    \endcode
 */
 
 /*!
@@ -310,7 +316,7 @@
 /*!
     \var HbProgressDialog::WaitDialog
 
-    TThis enum describes the type value as WaitDialog.
+    This enum describes the type value as WaitDialog.
  */