annotate src/hgignoredialog.h @ 416:8df07172d6da
ignore
Return ignore type from ignore dialog
author |
Chris Cannam |
date |
Thu, 16 Jun 2011 14:53:06 +0100 |
parents |
6d7dad48b13c |
children |
69b2338c06e1 |
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@416
|
38 private slots:
|
Chris@416
|
39 void optionToggled(bool);
|
Chris@416
|
40
|
Chris@415
|
41 private:
|
Chris@415
|
42 HgIgnoreDialog(QWidget *parent,
|
Chris@415
|
43 QString title,
|
Chris@415
|
44 QString introText,
|
Chris@415
|
45 QString question,
|
Chris@415
|
46 QStringList options,
|
Chris@415
|
47 QString okButtonText);
|
Chris@415
|
48
|
Chris@416
|
49 QString getOption() const { return m_option; }
|
Chris@416
|
50
|
Chris@416
|
51 QString m_option;
|
Chris@414
|
52 };
|
Chris@414
|
53
|
Chris@414
|
54 #endif
|