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: #include "hgignoredialog.h" Chris@414: #include "common.h" Chris@414: #include "debug.h" Chris@414: Chris@414: HgIgnoreDialog::IgnoreType Chris@414: HgIgnoreDialog::confirmIgnore(QStringList files, QStringList suffixes) Chris@414: { Chris@414: QString text = ""; Chris@414: Chris@414: if (files.size() < 10) { Chris@414: text += tr("You have asked to ignore the following files:"); Chris@414: text += "

"; Chris@414: foreach (QString f, files) { Chris@414: text += "   " + xmlEncode(f) + "
"; Chris@414: } Chris@414: text += "
"; Chris@414: } else { Chris@414: text += "

"; Chris@414: text += tr("You have asked to ignore %1 file(s).", "", files.size()); Chris@414: text += "

"; Chris@414: } Chris@414: Chris@414: if (suffixes.size() > 0) { Chris@414: Chris@414: text += "

"; Chris@414: text += tr("Would you like to:"); Chris@414: text += "