comparison filestatuswidget.cpp @ 202:3d4291d4226c

* Treat command failure on hg heads as a success, so that following actions happen properly (hg heads fails on empty repo) * Hide no-modifications-yet label when widget is first created, show it only if it would actually be true * Set directory name to window title * Various textual fixes
author Chris Cannam
date Tue, 04 Jan 2011 14:31:22 +0000
parents f16fe0db11f3
children c77c4d00a4fe
comparison
equal deleted inserted replaced
200:8c8c04bdf0fa 202:3d4291d4226c
68 68
69 layout->addWidget(new QLabel("<qt><hr></qt>"), ++row, 0, 1, 3); 69 layout->addWidget(new QLabel("<qt><hr></qt>"), ++row, 0, 1, 3);
70 70
71 ++row; 71 ++row;
72 m_noModificationsLabel = new QLabel 72 m_noModificationsLabel = new QLabel
73 (tr("You have no uncommitted changes.")); 73 (tr("<qt>This area will list files in your working folder that you have changed.<br>At the moment you have no uncommitted changes.<br><br>To see changes made to the repository previously,<br>switch to the History tab.<br><br>%1</qt>")
74 #if defined Q_OS_MAC
75 .arg(tr("To open the working folder in Finder,<br>click on the &ldquo;Local&rdquo; folder path shown above."))
76 #elif defined Q_OS_WIN32
77 .arg(tr("To open the working folder in Windows Explorer,<br>click on the &ldquo;Local&rdquo; folder path shown above."))
78 #else
79 .arg(tr("To open the working folder in your system file manager,<br>click the &ldquo;Local&rdquo; folder path shown above."))
80 #endif
81 );
74 layout->addWidget(m_noModificationsLabel, row, 1, 1, 2); 82 layout->addWidget(m_noModificationsLabel, row, 1, 1, 2);
83 m_noModificationsLabel->hide();
75 84
76 m_simpleLabels[FileStates::Clean] = tr("Unmodified:"); 85 m_simpleLabels[FileStates::Clean] = tr("Unmodified:");
77 m_simpleLabels[FileStates::Modified] = tr("Modified:"); 86 m_simpleLabels[FileStates::Modified] = tr("Modified:");
78 m_simpleLabels[FileStates::Added] = tr("Added:"); 87 m_simpleLabels[FileStates::Added] = tr("Added:");
79 m_simpleLabels[FileStates::Removed] = tr("Removed:"); 88 m_simpleLabels[FileStates::Removed] = tr("Removed:");