diff confirmcommentdialog.h @ 109:1721c580c10e

* Add a queueing mechanism for Hg actions, instead of refusing to start an action if something else is already happening. This is essential now that actions can be prompted by asynchronous events (e.g. filesystem watcher). * Make Revert behave sensibly
author Chris Cannam
date Fri, 26 Nov 2010 12:48:29 +0000
parents 1928f9b408e6
children ef5feb0d648f
line wrap: on
line diff
--- a/confirmcommentdialog.h	Thu Nov 25 21:08:17 2010 +0000
+++ b/confirmcommentdialog.h	Fri Nov 26 12:48:29 2010 +0000
@@ -36,6 +36,45 @@
                                    QString introTextWithCount,
                                    QStringList files);
 
+    static bool confirmDangerousFilesAction(QWidget *parent,
+                                            QString title,
+                                            QString introText,
+                                            QString introTextWithCount,
+                                            QStringList files);
+
+    static bool confirmAndGetShortComment(QWidget *parent,
+                                          QString title,
+                                          QString introText,
+                                          QString introTextWithCount,
+                                          QStringList files,
+                                          QString &comment);
+
+    static bool confirmAndGetLongComment(QWidget *parent,
+                                         QString title,
+                                         QString introText,
+                                         QString introTextWithCount,
+                                         QStringList files,
+                                         QString &comment);
+
+    static bool confirmAndGetShortComment(QWidget *parent,
+                                          QString title,
+                                          QString introText,
+                                          QString &comment);
+
+    static bool confirmAndGetLongComment(QWidget *parent,
+                                         QString title,
+                                         QString introText,
+                                         QString &comment);
+
+private slots:
+    void commentChanged();
+
+private:
+    ConfirmCommentDialog(QWidget *parent,
+                         QString title,
+                         QString introText,
+                         QString initialComment);
+
     static bool confirmAndComment(QWidget *parent,
                                   QString title,
                                   QString introText,
@@ -50,14 +89,7 @@
                                   QString &comment,
                                   bool longComment);
 
-private slots:
-    void commentChanged();
-
-private:
-    ConfirmCommentDialog(QWidget *parent,
-                         QString title,
-                         QString introText,
-                         QString initialComment);
+    static QString buildFilesText(QString intro, QStringList files);
 
     QString getComment() const;