Mercurial > hg > easyhg
diff filestatuswidget.cpp @ 103:0bd32aedc6f6
* Start to use the confirm-comment dialog for commits; much work still needed
author | Chris Cannam |
---|---|
date | Wed, 24 Nov 2010 22:44:40 +0000 |
parents | f70ccc15c9d0 |
children | 729438d70af8 |
line wrap: on
line diff
--- a/filestatuswidget.cpp Wed Nov 24 22:24:55 2010 +0000 +++ b/filestatuswidget.cpp Wed Nov 24 22:44:40 2010 +0000 @@ -175,6 +175,15 @@ return files; } +QStringList FileStatusWidget::getAllCommittableFiles() const +{ + QStringList files; + files << m_fileStates.getFilesInState(FileStates::Modified); + files << m_fileStates.getFilesInState(FileStates::Added); + files << m_fileStates.getFilesInState(FileStates::Removed); + return files; +} + QStringList FileStatusWidget::getSelectedAddableFiles() const { QStringList files; @@ -190,6 +199,14 @@ return files; } +QStringList FileStatusWidget::getAllAddableFiles() const +{ + QStringList files; + files << m_fileStates.getFilesInState(FileStates::Removed); + files << m_fileStates.getFilesInState(FileStates::Unknown); + return files; +} + QStringList FileStatusWidget::getSelectedRemovableFiles() const { QStringList files; @@ -207,6 +224,16 @@ return files; } +QStringList FileStatusWidget::getAllRemovableFiles() const +{ + QStringList files; + files << m_fileStates.getFilesInState(FileStates::Clean); + files << m_fileStates.getFilesInState(FileStates::Added); + files << m_fileStates.getFilesInState(FileStates::Modified); + files << m_fileStates.getFilesInState(FileStates::Missing); + return files; +} + void FileStatusWidget::setLocalPath(QString p) {