Mercurial > hg > easyhg
comparison src/hgignoredialog.h @ 422:2af4b5b0bf83
Merge from branch "ignore"
author | Chris Cannam <chris.cannam@eecs.qmul.ac.uk> |
---|---|
date | Wed, 22 Jun 2011 13:01:50 +0100 |
parents | 69b2338c06e1 |
children | 533519ebc0cb |
comparison
equal
deleted
inserted
replaced
412:498c2ca0b367 | 422:2af4b5b0bf83 |
---|---|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ | |
2 | |
3 /* | |
4 EasyMercurial | |
5 | |
6 Based on hgExplorer by Jari Korhonen | |
7 Copyright (c) 2010 Jari Korhonen | |
8 Copyright (c) 2011 Chris Cannam | |
9 Copyright (c) 2011 Queen Mary, University of London | |
10 | |
11 This program is free software; you can redistribute it and/or | |
12 modify it under the terms of the GNU General Public License as | |
13 published by the Free Software Foundation; either version 2 of the | |
14 License, or (at your option) any later version. See the file | |
15 COPYING included with this distribution for more information. | |
16 */ | |
17 | |
18 #ifndef _HGIGNORE_DIALOG_H_ | |
19 #define _HGIGNORE_DIALOG_H_ | |
20 | |
21 #include <QDialog> | |
22 | |
23 class HgIgnoreDialog : public QDialog | |
24 { | |
25 Q_OBJECT | |
26 | |
27 public: | |
28 enum IgnoreType { | |
29 IgnoreNothing, | |
30 IgnoreGivenFilesOnly, | |
31 IgnoreAllFilesOfGivenNames, | |
32 IgnoreAllFilesOfGivenSuffixes, | |
33 IgnoreWholeDirectory | |
34 }; | |
35 | |
36 static IgnoreType confirmIgnore(QWidget *parent, | |
37 QStringList files, | |
38 QStringList suffixes, | |
39 QString directory); | |
40 | |
41 private slots: | |
42 void optionToggled(bool); | |
43 | |
44 private: | |
45 HgIgnoreDialog(QWidget *parent, | |
46 QString title, | |
47 QString introText, | |
48 QString question, | |
49 QStringList options, | |
50 QString okButtonText); | |
51 | |
52 QString getOption() const { return m_option; } | |
53 | |
54 QString m_option; | |
55 }; | |
56 | |
57 #endif |