comparison filestatuswidget.h @ 93:dfb7a274b90f

* Highlight untracked files that are newer than last repo interaction
author Chris Cannam
date Wed, 24 Nov 2010 13:50:33 +0000
parents 06f4fffd5287
children 44ed7766d55a
comparison
equal deleted inserted replaced
92:06f4fffd5287 93:dfb7a274b90f
22 22
23 #include <QWidget> 23 #include <QWidget>
24 24
25 class QLabel; 25 class QLabel;
26 class QListWidget; 26 class QListWidget;
27 class QFileInfo;
27 28
28 class FileStatusWidget : public QWidget 29 class FileStatusWidget : public QWidget
29 { 30 {
30 Q_OBJECT 31 Q_OBJECT
31 32
32 public: 33 public:
33 FileStatusWidget(QWidget *parent = 0); 34 FileStatusWidget(QWidget *parent = 0);
35 ~FileStatusWidget();
34 36
35 QString localPath() const { return m_localPath; } 37 QString localPath() const { return m_localPath; }
36 void setLocalPath(QString p); 38 void setLocalPath(QString p);
37 39
38 QString remoteURL() const { return m_remoteURL; } 40 QString remoteURL() const { return m_remoteURL; }
60 QListWidget *m_addedList; 62 QListWidget *m_addedList;
61 QListWidget *m_unknownList; 63 QListWidget *m_unknownList;
62 QListWidget *m_removedList; 64 QListWidget *m_removedList;
63 QListWidget *m_missingList; 65 QListWidget *m_missingList;
64 66
67 QFileInfo *m_dateReference;
68
65 void updateWidgets(); 69 void updateWidgets();
70 void highlightFile(QListWidget *, int);
66 }; 71 };
67 72
68 #endif 73 #endif