comparison 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
comparison
equal deleted inserted replaced
192:702ca6dafcbe 193:ef5feb0d648f
28 class ConfirmCommentDialog : public QDialog 28 class ConfirmCommentDialog : public QDialog
29 { 29 {
30 Q_OBJECT 30 Q_OBJECT
31 31
32 public: 32 public:
33 static bool confirm(QWidget *parent,
34 QString title,
35 QString text,
36 QString okButtonText);
37
38 static bool confirmDangerous(QWidget *parent,
39 QString title,
40 QString text,
41 QString okButtonText);
42
33 static bool confirmFilesAction(QWidget *parent, 43 static bool confirmFilesAction(QWidget *parent,
34 QString title, 44 QString title,
35 QString introText, 45 QString introText,
36 QString introTextWithCount, 46 QString introTextWithCount,
37 QStringList files); 47 QStringList files,
48 QString okButtonText);
38 49
39 static bool confirmDangerousFilesAction(QWidget *parent, 50 static bool confirmDangerousFilesAction(QWidget *parent,
40 QString title, 51 QString title,
41 QString introText, 52 QString introText,
42 QString introTextWithCount, 53 QString introTextWithCount,
43 QStringList files); 54 QStringList files,
55 QString okButtonText);
44 56
45 static bool confirmAndGetShortComment(QWidget *parent, 57 static bool confirmAndGetShortComment(QWidget *parent,
46 QString title, 58 QString title,
47 QString introText, 59 QString introText,
48 QString introTextWithCount, 60 QString introTextWithCount,
49 QStringList files, 61 QStringList files,
50 QString &comment); 62 QString &comment,
63 QString okButtonText);
51 64
52 static bool confirmAndGetLongComment(QWidget *parent, 65 static bool confirmAndGetLongComment(QWidget *parent,
53 QString title, 66 QString title,
54 QString introText, 67 QString introText,
55 QString introTextWithCount, 68 QString introTextWithCount,
56 QStringList files, 69 QStringList files,
57 QString &comment); 70 QString &comment,
71 QString okButtonText);
58 72
59 static bool confirmAndGetShortComment(QWidget *parent, 73 static bool confirmAndGetShortComment(QWidget *parent,
60 QString title, 74 QString title,
61 QString introText, 75 QString introText,
62 QString &comment); 76 QString &comment,
77 QString okButtonText);
63 78
64 static bool confirmAndGetLongComment(QWidget *parent, 79 static bool confirmAndGetLongComment(QWidget *parent,
65 QString title, 80 QString title,
66 QString introText, 81 QString introText,
67 QString &comment); 82 QString &comment,
83 QString okButtonText);
68 84
69 private slots: 85 private slots:
70 void commentChanged(); 86 void commentChanged();
71 87
72 private: 88 private:
73 ConfirmCommentDialog(QWidget *parent, 89 ConfirmCommentDialog(QWidget *parent,
74 QString title, 90 QString title,
75 QString introText, 91 QString introText,
76 QString initialComment); 92 QString initialComment,
93 QString okButtonText);
77 94
78 static bool confirmAndComment(QWidget *parent, 95 static bool confirmAndComment(QWidget *parent,
79 QString title, 96 QString title,
80 QString introText, 97 QString introText,
81 QString introTextWithCount, 98 QString introTextWithCount,
82 QStringList files, 99 QStringList files,
83 QString &comment, 100 QString &comment,
84 bool longComment); 101 bool longComment,
102 QString okButtonText);
85 103
86 static bool confirmAndComment(QWidget *parent, 104 static bool confirmAndComment(QWidget *parent,
87 QString title, 105 QString title,
88 QString introText, 106 QString introText,
89 QString &comment, 107 QString &comment,
90 bool longComment); 108 bool longComment,
109 QString okButtonText);
91 110
92 static QString buildFilesText(QString intro, QStringList files); 111 static QString buildFilesText(QString intro, QStringList files);
93 112
94 QString getComment() const; 113 QString getComment() const;
95 114