annotate confirmcommentdialog.h @ 104:af314dd436d5
* Slightly more useful commit dialog
author |
Chris Cannam |
date |
Thu, 25 Nov 2010 14:30:40 +0000 |
parents |
f70ccc15c9d0 |
children |
1928f9b408e6 |
rev |
line source |
Chris@102
|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
|
Chris@102
|
2
|
Chris@102
|
3 /*
|
Chris@102
|
4 EasyMercurial
|
Chris@102
|
5
|
Chris@102
|
6 Based on hgExplorer by Jari Korhonen
|
Chris@102
|
7 Copyright (c) 2010 Jari Korhonen
|
Chris@102
|
8 Copyright (c) 2010 Chris Cannam
|
Chris@102
|
9 Copyright (c) 2010 Queen Mary, University of London
|
Chris@102
|
10
|
Chris@102
|
11 This program is free software; you can redistribute it and/or
|
Chris@102
|
12 modify it under the terms of the GNU General Public License as
|
Chris@102
|
13 published by the Free Software Foundation; either version 2 of the
|
Chris@102
|
14 License, or (at your option) any later version. See the file
|
Chris@102
|
15 COPYING included with this distribution for more information.
|
Chris@102
|
16 */
|
Chris@102
|
17
|
Chris@102
|
18 #ifndef CONFIRMCOMMENTDIALOG_H
|
Chris@102
|
19 #define CONFIRMCOMMENTDIALOG_H
|
Chris@102
|
20
|
Chris@102
|
21 #include <QWidget>
|
Chris@102
|
22 #include <QString>
|
Chris@102
|
23 #include <QStringList>
|
Chris@102
|
24
|
Chris@102
|
25 class ConfirmCommentDialog
|
Chris@102
|
26 {
|
Chris@102
|
27 public:
|
Chris@102
|
28 static bool confirmFilesAction(QWidget *parent,
|
Chris@102
|
29 QString title,
|
Chris@102
|
30 QString introText,
|
Chris@102
|
31 QString introTextWithCount,
|
Chris@102
|
32 QStringList files);
|
Chris@102
|
33
|
Chris@102
|
34 static bool confirmAndComment(QWidget *parent,
|
Chris@102
|
35 QString title,
|
Chris@102
|
36 QString introText,
|
Chris@102
|
37 QString introTextWithCount,
|
Chris@102
|
38 QStringList files,
|
Chris@104
|
39 QString &comment,
|
Chris@104
|
40 bool longComment);
|
Chris@102
|
41
|
Chris@102
|
42 static bool confirmAndComment(QWidget *parent,
|
Chris@102
|
43 QString title,
|
Chris@102
|
44 QString introText,
|
Chris@104
|
45 QString &comment,
|
Chris@104
|
46 bool longComment);
|
Chris@102
|
47
|
Chris@102
|
48 };
|
Chris@102
|
49
|
Chris@102
|
50 #endif // CONFIRMCOMMENTDIALOG_H
|