diff filestatuswidget.h @ 115:78374cefa10f

* Add useful state message to file status page. Also add shouldBeFast() method to HgAction; use it to avoid showing progress bar for fast actions
author Chris Cannam
date Fri, 26 Nov 2010 21:48:25 +0000
parents 1721c580c10e
children 5c262ac73948
line wrap: on
line diff
--- a/filestatuswidget.h	Fri Nov 26 21:17:24 2010 +0000
+++ b/filestatuswidget.h	Fri Nov 26 21:48:25 2010 +0000
@@ -24,6 +24,7 @@
 
 class QLabel;
 class QListWidget;
+class QPushButton;
 class QFileInfo;
 
 class FileStatusWidget : public QWidget
@@ -40,8 +41,8 @@
     QString remoteURL() const { return m_remoteURL; }
     void setRemoteURL(QString u);
 
-    QString branch() const { return m_branch; }
-    void setBranch(QString b);
+    QString state() const { return m_state; }
+    void setState(QString b);
 
     FileStates fileStates() const { return m_fileStates; }
     void setFileStates(FileStates sp);
@@ -79,8 +80,10 @@
     QString m_remoteURL;
     QLabel *m_remoteURLLabel;
 
-    QString m_branch;
-    QLabel *m_branchLabel;
+    QString m_state;
+    QLabel *m_stateLabel;
+    
+    QLabel *m_noModificationsLabel;
 
     FileStates m_fileStates;
     QMap<FileStates::State, QString> m_simpleLabels;
@@ -92,6 +95,7 @@
     QStringList m_selectedFiles;
 
     void updateWidgets();
+    void updateStateLabel();
     QString labelFor(FileStates::State, bool addHighlightExplanation = false);
     void setLabelFor(QWidget *w, FileStates::State, bool addHighlightExplanation);
 };