comparison src/filestatuswidget.cpp @ 413:2a19d5706673 ignore

Reconnect the ignore-related right-button menu entries (still not implemented yet though)
author Chris Cannam
date Mon, 13 Jun 2011 17:28:49 +0100
parents b6d36a17899d
children 653e9694a694
comparison
equal deleted inserted replaced
412:498c2ca0b367 413:2a19d5706673
65 m_actionLabels[FileStates::Copy] = tr("Copy..."); 65 m_actionLabels[FileStates::Copy] = tr("Copy...");
66 m_actionLabels[FileStates::Add] = tr("Add to version control"); 66 m_actionLabels[FileStates::Add] = tr("Add to version control");
67 m_actionLabels[FileStates::Remove] = tr("Remove from version control"); 67 m_actionLabels[FileStates::Remove] = tr("Remove from version control");
68 m_actionLabels[FileStates::RedoMerge] = tr("Redo merge"); 68 m_actionLabels[FileStates::RedoMerge] = tr("Redo merge");
69 m_actionLabels[FileStates::MarkResolved] = tr("Mark conflict as resolved"); 69 m_actionLabels[FileStates::MarkResolved] = tr("Mark conflict as resolved");
70 m_actionLabels[FileStates::Ignore] = tr("Ignore"); 70 m_actionLabels[FileStates::Ignore] = tr("Ignore...");
71 m_actionLabels[FileStates::UnIgnore] = tr("Stop ignoring"); 71 m_actionLabels[FileStates::UnIgnore] = tr("Stop ignoring...");
72 72
73 m_descriptions[FileStates::Clean] = tr("You have not changed these files."); 73 m_descriptions[FileStates::Clean] = tr("You have not changed these files.");
74 m_descriptions[FileStates::Modified] = tr("You have changed these files since you last committed them."); 74 m_descriptions[FileStates::Modified] = tr("You have changed these files since you last committed them.");
75 m_descriptions[FileStates::Added] = tr("These files will be added to version control next time you commit them."); 75 m_descriptions[FileStates::Added] = tr("These files will be added to version control next time you commit them.");
76 m_descriptions[FileStates::Removed] = tr("These files will be removed from version control next time you commit them.<br>" 76 m_descriptions[FileStates::Removed] = tr("These files will be removed from version control next time you commit them.<br>"
123 this, SLOT(itemDoubleClicked(QListWidgetItem *))); 123 this, SLOT(itemDoubleClicked(QListWidgetItem *)));
124 124
125 FileStates::Activities activities = m_fileStates.activitiesSupportedBy(s); 125 FileStates::Activities activities = m_fileStates.activitiesSupportedBy(s);
126 int prevGroup = -1; 126 int prevGroup = -1;
127 foreach (FileStates::Activity a, activities) { 127 foreach (FileStates::Activity a, activities) {
128 // Skip activities which are not yet implemented
129 if (a == FileStates::Ignore ||
130 a == FileStates::UnIgnore) {
131 continue;
132 }
133 int group = FileStates::activityGroup(a); 128 int group = FileStates::activityGroup(a);
134 if (group != prevGroup && prevGroup != -1) { 129 if (group != prevGroup && prevGroup != -1) {
135 QAction *sep = new QAction("", w); 130 QAction *sep = new QAction("", w);
136 sep->setSeparator(true); 131 sep->setSeparator(true);
137 w->insertAction(0, sep); 132 w->insertAction(0, sep);