[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[vidalia-svn] r3826: Add a "Send my crash report to the Vidalia developers" check (vidalia/branches/breakpad/src/crashreporter)



Author: edmanm
Date: 2009-06-08 22:36:55 -0400 (Mon, 08 Jun 2009)
New Revision: 3826

Modified:
   vidalia/branches/breakpad/src/crashreporter/CrashReportDialog.cpp
   vidalia/branches/breakpad/src/crashreporter/CrashReportDialog.ui
Log:

Add a "Send my crash report to the Vidalia developers" checkbox and make the
buttons at the bottom of the dialog be "Restart Vidalia" and "Don't Restart".
This way the user will still be able to restart Vidalia even if they don't want
to submit a crash report.


Modified: vidalia/branches/breakpad/src/crashreporter/CrashReportDialog.cpp
===================================================================
--- vidalia/branches/breakpad/src/crashreporter/CrashReportDialog.cpp	2009-06-09 02:26:33 UTC (rev 3825)
+++ vidalia/branches/breakpad/src/crashreporter/CrashReportDialog.cpp	2009-06-09 02:36:55 UTC (rev 3826)
@@ -18,10 +18,20 @@
 
 #include "CrashReportDialog.h"
 
+#include <QPushButton>
 
+
 CrashReportDialog::CrashReportDialog(QWidget *parent)
   : QDialog(parent)
 {
   ui.setupUi(this);
+
+  /* Tweak the text displayed on the buttons at the bottom of the dialog */
+  QPushButton *btn;
+  btn = ui.buttonBox->button(QDialogButtonBox::Ok);
+  btn->setText(tr("Restart Vidalia"));
+
+  btn = ui.buttonBox->button(QDialogButtonBox::Cancel);
+  btn->setText(tr("Don't Restart"));
 }
 

Modified: vidalia/branches/breakpad/src/crashreporter/CrashReportDialog.ui
===================================================================
--- vidalia/branches/breakpad/src/crashreporter/CrashReportDialog.ui	2009-06-09 02:26:33 UTC (rev 3825)
+++ vidalia/branches/breakpad/src/crashreporter/CrashReportDialog.ui	2009-06-09 02:36:55 UTC (rev 3826)
@@ -19,7 +19,7 @@
   </property>
   <layout class="QGridLayout" name="gridLayout">
    <item row="0" column="0" rowspan="2">
-    <widget class="QLabel" name="label_2">
+    <widget class="QLabel" name="lblHeaderImage">
      <property name="text">
       <string/>
      </property>
@@ -29,7 +29,7 @@
     </widget>
    </item>
    <item row="0" column="1">
-    <widget class="QLabel" name="lblCrashReport">
+    <widget class="QLabel" name="lblTitle">
      <property name="font">
       <font>
        <pointsize>9</pointsize>
@@ -49,7 +49,7 @@
     </widget>
    </item>
    <item row="1" column="1">
-    <widget class="QLabel" name="label">
+    <widget class="QLabel" name="lblHeader">
      <property name="text">
       <string>A crash report has been created that you can automatically send to the Vidalia developers to help identify and fix the problem. The submitted report does not contain any personally identifying information.</string>
      </property>
@@ -61,6 +61,13 @@
      </property>
     </widget>
    </item>
+   <item row="2" column="0" colspan="2">
+    <widget class="Line" name="line">
+     <property name="orientation">
+      <enum>Qt::Horizontal</enum>
+     </property>
+    </widget>
+   </item>
    <item row="3" column="0" colspan="2">
     <widget class="QLabel" name="lblDetails">
      <property name="text">
@@ -87,7 +94,17 @@
      </property>
     </widget>
    </item>
-   <item row="5" column="1">
+   <item row="5" column="0" colspan="2">
+    <widget class="QCheckBox" name="chkSubmitCrashReport">
+     <property name="text">
+      <string>Send my crash report to the Vidalia developers</string>
+     </property>
+     <property name="checked">
+      <bool>true</bool>
+     </property>
+    </widget>
+   </item>
+   <item row="6" column="1">
     <widget class="QDialogButtonBox" name="buttonBox">
      <property name="orientation">
       <enum>Qt::Horizontal</enum>
@@ -97,13 +114,6 @@
      </property>
     </widget>
    </item>
-   <item row="2" column="0" colspan="2">
-    <widget class="Line" name="line">
-     <property name="orientation">
-      <enum>Qt::Horizontal</enum>
-     </property>
-    </widget>
-   </item>
   </layout>
  </widget>
  <resources>