annotate src/hgignoredialog.h @ 415:6d7dad48b13c
ignore
Make HgIgnoreDialog _look_ plausible (still doesn't do anything though!)
author |
Chris Cannam |
date |
Thu, 16 Jun 2011 14:32:35 +0100 |
parents |
939701b848e5 |
children |
8df07172d6da |
rev |
line source |
Chris@414
|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
|
Chris@414
|
2
|
Chris@414
|
3 /*
|
Chris@414
|
4 EasyMercurial
|
Chris@414
|
5
|
Chris@414
|
6 Based on hgExplorer by Jari Korhonen
|
Chris@414
|
7 Copyright (c) 2010 Jari Korhonen
|
Chris@414
|
8 Copyright (c) 2011 Chris Cannam
|
Chris@414
|
9 Copyright (c) 2011 Queen Mary, University of London
|
Chris@414
|
10
|
Chris@414
|
11 This program is free software; you can redistribute it and/or
|
Chris@414
|
12 modify it under the terms of the GNU General Public License as
|
Chris@414
|
13 published by the Free Software Foundation; either version 2 of the
|
Chris@414
|
14 License, or (at your option) any later version. See the file
|
Chris@414
|
15 COPYING included with this distribution for more information.
|
Chris@414
|
16 */
|
Chris@414
|
17
|
Chris@414
|
18 #ifndef _HGIGNORE_DIALOG_H_
|
Chris@414
|
19 #define _HGIGNORE_DIALOG_H_
|
Chris@414
|
20
|
Chris@414
|
21 #include <QDialog>
|
Chris@414
|
22
|
Chris@414
|
23 class HgIgnoreDialog : public QDialog
|
Chris@414
|
24 {
|
Chris@414
|
25 Q_OBJECT
|
Chris@414
|
26
|
Chris@414
|
27 public:
|
Chris@414
|
28 enum IgnoreType {
|
Chris@414
|
29 IgnoreNothing,
|
Chris@414
|
30 IgnoreGivenFilesOnly,
|
Chris@414
|
31 IgnoreAllFilesOfGivenNames,
|
Chris@414
|
32 IgnoreAllFilesOfGivenSuffixes
|
Chris@414
|
33 };
|
Chris@414
|
34
|
Chris@415
|
35 static IgnoreType confirmIgnore(QWidget *parent,
|
Chris@415
|
36 QStringList files, QStringList suffixes);
|
Chris@414
|
37
|
Chris@415
|
38 private:
|
Chris@415
|
39 HgIgnoreDialog(QWidget *parent,
|
Chris@415
|
40 QString title,
|
Chris@415
|
41 QString introText,
|
Chris@415
|
42 QString question,
|
Chris@415
|
43 QStringList options,
|
Chris@415
|
44 QString okButtonText);
|
Chris@415
|
45
|
Chris@415
|
46
|
Chris@414
|
47 };
|
Chris@414
|
48
|
Chris@414
|
49 #endif
|