Mercurial > hg > easyhg
comparison filestatuswidget.h @ 88:c5e34ed5b791
* Start work on new file-status widget
author | Chris Cannam |
---|---|
date | Tue, 23 Nov 2010 11:33:15 +0000 |
parents | |
children | b43355c2473a |
comparison
equal
deleted
inserted
replaced
87:a7904378ac6a | 88:c5e34ed5b791 |
---|---|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ | |
2 | |
3 /* | |
4 EasyMercurial | |
5 | |
6 Based on HgExplorer by Jari Korhonen | |
7 Copyright (c) 2010 Jari Korhonen | |
8 Copyright (c) 2010 Chris Cannam | |
9 Copyright (c) 2010 Queen Mary, University of London | |
10 | |
11 This program is free software; you can redistribute it and/or | |
12 modify it under the terms of the GNU General Public License as | |
13 published by the Free Software Foundation; either version 2 of the | |
14 License, or (at your option) any later version. See the file | |
15 COPYING included with this distribution for more information. | |
16 */ | |
17 | |
18 #ifndef FILESTATUSWIDGET_H | |
19 #define FILESTATUSWIDGET_H | |
20 | |
21 #include "statparser.h" | |
22 | |
23 #include <QWidget> | |
24 | |
25 class QLabel; | |
26 class QListWidget; | |
27 | |
28 class FileStatusWidget : public QWidget | |
29 { | |
30 Q_OBJECT | |
31 | |
32 public: | |
33 FileStatusWidget(QWidget *parent = 0); | |
34 | |
35 QString localPath() const { return m_localPath; } | |
36 void setLocalPath(QString p); | |
37 | |
38 QString remoteURL() const { return m_remoteURL; } | |
39 void setRemoteURL(QString u); | |
40 | |
41 StatParser statParser() const { return m_statParser; } | |
42 void setStatParser(StatParser sp); | |
43 | |
44 private: | |
45 QString m_localPath; | |
46 QLabel *m_localPathLabel; | |
47 | |
48 QString m_remoteURL; | |
49 QLabel *m_remoteURLLabel; | |
50 | |
51 StatParser m_statParser; | |
52 | |
53 QListWidget *m_modifiedList; | |
54 QListWidget *m_addedList; | |
55 QListWidget *m_unknownList; | |
56 QListWidget *m_removedList; | |
57 QListWidget *m_missingList; | |
58 | |
59 void updateWidgets(); | |
60 }; | |
61 | |
62 #endif |