Mercurial > hg > easyhg
comparison 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 |
comparison
equal
deleted
inserted
replaced
413:2a19d5706673 | 414:939701b848e5 |
---|---|
46 #include "settingsdialog.h" | 46 #include "settingsdialog.h" |
47 #include "moreinformationdialog.h" | 47 #include "moreinformationdialog.h" |
48 #include "annotatedialog.h" | 48 #include "annotatedialog.h" |
49 #include "version.h" | 49 #include "version.h" |
50 #include "workstatuswidget.h" | 50 #include "workstatuswidget.h" |
51 #include "hgignoredialog.h" | |
51 | 52 |
52 | 53 |
53 MainWindow::MainWindow(QString myDirPath) : | 54 MainWindow::MainWindow(QString myDirPath) : |
54 m_myDirPath(myDirPath), | 55 m_myDirPath(myDirPath), |
55 m_fsWatcherGeneralTimer(0), | 56 m_fsWatcherGeneralTimer(0), |
601 // extensions?) | 602 // extensions?) |
602 // | 603 // |
603 // Do we need different mechanisms based on whether we have glob | 604 // Do we need different mechanisms based on whether we have glob |
604 // or regex syntax? | 605 // or regex syntax? |
605 | 606 |
606 DEBUG << "MainWindow::hgIgnoreFiles: Not implemented" << endl; | 607 DEBUG << "MainWindow::hgIgnoreFiles: File names are:" << endl; |
608 foreach (QString file, files) DEBUG << file << endl; | |
609 | |
610 QSet<QString> suffixes; | |
611 foreach (QString file, files) { | |
612 QString s = QFileInfo(file).suffix(); | |
613 if (s != "") suffixes.insert(s); | |
614 } | |
615 | |
616 HgIgnoreDialog::IgnoreType itype = | |
617 HgIgnoreDialog::confirmIgnore(files, QStringList::fromSet(suffixes)); | |
618 | |
619 | |
620 | |
607 } | 621 } |
608 | 622 |
609 void MainWindow::hgUnIgnoreFiles(QStringList files) | 623 void MainWindow::hgUnIgnoreFiles(QStringList files) |
610 { | 624 { |
611 //!!! not implemented yet | 625 //!!! not implemented yet |