Mercurial > hg > easyhg
diff src/mainwindow.cpp @ 414:939701b848e5 ignore
Start to introduce HgIgnoreDialog
author | Chris Cannam |
---|---|
date | Wed, 15 Jun 2011 16:32:21 +0100 |
parents | 2a19d5706673 |
children | 6d7dad48b13c |
line wrap: on
line diff
--- a/src/mainwindow.cpp Mon Jun 13 17:28:49 2011 +0100 +++ b/src/mainwindow.cpp Wed Jun 15 16:32:21 2011 +0100 @@ -48,6 +48,7 @@ #include "annotatedialog.h" #include "version.h" #include "workstatuswidget.h" +#include "hgignoredialog.h" MainWindow::MainWindow(QString myDirPath) : @@ -603,7 +604,20 @@ // Do we need different mechanisms based on whether we have glob // or regex syntax? - DEBUG << "MainWindow::hgIgnoreFiles: Not implemented" << endl; + DEBUG << "MainWindow::hgIgnoreFiles: File names are:" << endl; + foreach (QString file, files) DEBUG << file << endl; + + QSet<QString> suffixes; + foreach (QString file, files) { + QString s = QFileInfo(file).suffix(); + if (s != "") suffixes.insert(s); + } + + HgIgnoreDialog::IgnoreType itype = + HgIgnoreDialog::confirmIgnore(files, QStringList::fromSet(suffixes)); + + + } void MainWindow::hgUnIgnoreFiles(QStringList files)