Mercurial > hg > easyhg
annotate src/hgignoredialog.h @ 676:cb4f7c3c01dd
Toward some CI bits
author | Chris Cannam |
---|---|
date | Thu, 06 Dec 2018 13:45:23 +0000 |
parents | ae67ea0af696 |
children |
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@644 | 8 Copyright (c) 2013 Chris Cannam |
Chris@644 | 9 Copyright (c) 2013 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@419 | 32 IgnoreAllFilesOfGivenSuffixes, |
Chris@419 | 33 IgnoreWholeDirectory |
Chris@414 | 34 }; |
Chris@414 | 35 |
Chris@415 | 36 static IgnoreType confirmIgnore(QWidget *parent, |
Chris@419 | 37 QStringList files, |
Chris@419 | 38 QStringList suffixes, |
Chris@419 | 39 QString directory); |
Chris@414 | 40 |
Chris@416 | 41 private slots: |
Chris@416 | 42 void optionToggled(bool); |
Chris@416 | 43 |
Chris@415 | 44 private: |
Chris@415 | 45 HgIgnoreDialog(QWidget *parent, |
Chris@415 | 46 QString title, |
Chris@415 | 47 QString introText, |
Chris@415 | 48 QString question, |
Chris@415 | 49 QStringList options, |
Chris@415 | 50 QString okButtonText); |
Chris@415 | 51 |
Chris@416 | 52 QString getOption() const { return m_option; } |
Chris@416 | 53 |
Chris@416 | 54 QString m_option; |
Chris@414 | 55 }; |
Chris@414 | 56 |
Chris@414 | 57 #endif |