diff filestatuswidget.cpp @ 361:4cd753e083cc feature_91b

Add Rename and Copy to right-button menu on file status widget. (This is the real feature 91 -- I bungled the feature number with the earlier feature_91 branch, which actually addressed feature 106.)
author Chris Cannam
date Thu, 17 Mar 2011 17:34:23 +0000
parents 293d91cf44de
children
line wrap: on
line diff
--- a/filestatuswidget.cpp	Thu Mar 17 13:52:57 2011 +0000
+++ b/filestatuswidget.cpp	Thu Mar 17 17:34:23 2011 +0000
@@ -61,6 +61,8 @@
     m_actionLabels[FileStates::Diff] = tr("Diff to parent");
     m_actionLabels[FileStates::Commit] = tr("Commit...");
     m_actionLabels[FileStates::Revert] = tr("Revert to last committed state");
+    m_actionLabels[FileStates::Rename] = tr("Rename...");
+    m_actionLabels[FileStates::Copy] = tr("Copy...");
     m_actionLabels[FileStates::Add] = tr("Add to version control");
     m_actionLabels[FileStates::Remove] = tr("Remove from version control");
     m_actionLabels[FileStates::RedoMerge] = tr("Redo merge");
@@ -239,6 +241,8 @@
     case FileStates::Diff: emit diffFiles(files); break;
     case FileStates::Commit: emit commitFiles(files); break;
     case FileStates::Revert: emit revertFiles(files); break;
+    case FileStates::Rename: emit renameFiles(files); break;
+    case FileStates::Copy: emit copyFiles(files); break;
     case FileStates::Add: emit addFiles(files); break;
     case FileStates::Remove: emit removeFiles(files); break;
     case FileStates::RedoMerge: emit redoFileMerges(files); break;