diff confirmcommentdialog.h @ 193:ef5feb0d648f

* Give all of the substantial confirmation dialogs meaningful labels for their OK buttons
author Chris Cannam
date Mon, 20 Dec 2010 22:37:42 +0000
parents 1721c580c10e
children 8fd71f570884
line wrap: on
line diff
--- a/confirmcommentdialog.h	Mon Dec 20 21:33:42 2010 +0000
+++ b/confirmcommentdialog.h	Mon Dec 20 22:37:42 2010 +0000
@@ -30,41 +30,57 @@
     Q_OBJECT
 
 public:
+    static bool confirm(QWidget *parent,
+                        QString title,
+                        QString text,
+                        QString okButtonText);
+    
+    static bool confirmDangerous(QWidget *parent,
+                                 QString title,
+                                 QString text,
+                                 QString okButtonText);
+    
     static bool confirmFilesAction(QWidget *parent,
                                    QString title,
                                    QString introText,
                                    QString introTextWithCount,
-                                   QStringList files);
+                                   QStringList files,
+                                   QString okButtonText);
 
     static bool confirmDangerousFilesAction(QWidget *parent,
                                             QString title,
                                             QString introText,
                                             QString introTextWithCount,
-                                            QStringList files);
+                                            QStringList files,
+                                            QString okButtonText);
 
     static bool confirmAndGetShortComment(QWidget *parent,
                                           QString title,
                                           QString introText,
                                           QString introTextWithCount,
                                           QStringList files,
-                                          QString &comment);
+                                          QString &comment,
+                                          QString okButtonText);
 
     static bool confirmAndGetLongComment(QWidget *parent,
                                          QString title,
                                          QString introText,
                                          QString introTextWithCount,
                                          QStringList files,
-                                         QString &comment);
+                                         QString &comment,
+                                         QString okButtonText);
 
     static bool confirmAndGetShortComment(QWidget *parent,
                                           QString title,
                                           QString introText,
-                                          QString &comment);
+                                          QString &comment,
+                                          QString okButtonText);
 
     static bool confirmAndGetLongComment(QWidget *parent,
                                          QString title,
                                          QString introText,
-                                         QString &comment);
+                                         QString &comment,
+                                         QString okButtonText);
 
 private slots:
     void commentChanged();
@@ -73,7 +89,8 @@
     ConfirmCommentDialog(QWidget *parent,
                          QString title,
                          QString introText,
-                         QString initialComment);
+                         QString initialComment,
+                         QString okButtonText);
 
     static bool confirmAndComment(QWidget *parent,
                                   QString title,
@@ -81,13 +98,15 @@
                                   QString introTextWithCount,
                                   QStringList files,
                                   QString &comment,
-                                  bool longComment);
+                                  bool longComment,
+                                  QString okButtonText);
 
     static bool confirmAndComment(QWidget *parent,
                                   QString title,
                                   QString introText,
                                   QString &comment,
-                                  bool longComment);
+                                  bool longComment,
+                                  QString okButtonText);
 
     static QString buildFilesText(QString intro, QStringList files);