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