Chris@414: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@414: Chris@414: /* Chris@414: EasyMercurial Chris@414: Chris@414: Based on hgExplorer by Jari Korhonen Chris@414: Copyright (c) 2010 Jari Korhonen Chris@414: Copyright (c) 2011 Chris Cannam Chris@414: Copyright (c) 2011 Queen Mary, University of London Chris@414: Chris@414: This program is free software; you can redistribute it and/or Chris@414: modify it under the terms of the GNU General Public License as Chris@414: published by the Free Software Foundation; either version 2 of the Chris@414: License, or (at your option) any later version. See the file Chris@414: COPYING included with this distribution for more information. Chris@414: */ Chris@414: Chris@414: #ifndef _HGIGNORE_DIALOG_H_ Chris@414: #define _HGIGNORE_DIALOG_H_ Chris@414: Chris@414: #include Chris@414: Chris@414: class HgIgnoreDialog : public QDialog Chris@414: { Chris@414: Q_OBJECT Chris@414: Chris@414: public: Chris@414: enum IgnoreType { Chris@414: IgnoreNothing, Chris@414: IgnoreGivenFilesOnly, Chris@414: IgnoreAllFilesOfGivenNames, Chris@414: IgnoreAllFilesOfGivenSuffixes Chris@414: }; Chris@414: Chris@415: static IgnoreType confirmIgnore(QWidget *parent, Chris@415: QStringList files, QStringList suffixes); Chris@414: Chris@416: private slots: Chris@416: void optionToggled(bool); Chris@416: Chris@415: private: Chris@415: HgIgnoreDialog(QWidget *parent, Chris@415: QString title, Chris@415: QString introText, Chris@415: QString question, Chris@415: QStringList options, Chris@415: QString okButtonText); Chris@415: Chris@416: QString getOption() const { return m_option; } Chris@416: Chris@416: QString m_option; Chris@414: }; Chris@414: Chris@414: #endif