Mercurial > hg > easyhg
annotate src/workstatuswidget.h @ 655:68494beada6e
Ignore .msi files
author | Chris Cannam <chris.cannam@eecs.qmul.ac.uk> |
---|---|
date | Fri, 25 Jan 2013 15:33:35 +0000 |
parents | ae67ea0af696 |
children |
rev | line source |
---|---|
Chris@283 | 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ |
Chris@283 | 2 |
Chris@283 | 3 /* |
Chris@283 | 4 EasyMercurial |
Chris@283 | 5 |
Chris@283 | 6 Based on HgExplorer by Jari Korhonen |
Chris@283 | 7 Copyright (c) 2010 Jari Korhonen |
Chris@644 | 8 Copyright (c) 2013 Chris Cannam |
Chris@644 | 9 Copyright (c) 2013 Queen Mary, University of London |
Chris@283 | 10 |
Chris@283 | 11 This program is free software; you can redistribute it and/or |
Chris@283 | 12 modify it under the terms of the GNU General Public License as |
Chris@283 | 13 published by the Free Software Foundation; either version 2 of the |
Chris@283 | 14 License, or (at your option) any later version. See the file |
Chris@283 | 15 COPYING included with this distribution for more information. |
Chris@283 | 16 */ |
Chris@283 | 17 |
Chris@283 | 18 #ifndef WORKSTATUSWIDGET_H |
Chris@283 | 19 #define WORKSTATUSWIDGET_H |
Chris@283 | 20 |
Chris@283 | 21 #include <QWidget> |
Chris@283 | 22 |
Chris@523 | 23 class SqueezedLabel; |
Chris@523 | 24 |
Chris@283 | 25 class QLabel; |
Chris@283 | 26 class QPushButton; |
Chris@283 | 27 class QFileInfo; |
Chris@283 | 28 class ClickableLabel; |
Chris@283 | 29 class QCheckBox; |
Chris@283 | 30 |
Chris@283 | 31 class WorkStatusWidget : public QWidget |
Chris@283 | 32 { |
Chris@283 | 33 Q_OBJECT |
Chris@283 | 34 |
Chris@283 | 35 public: |
Chris@283 | 36 WorkStatusWidget(QWidget *parent = 0); |
Chris@283 | 37 ~WorkStatusWidget(); |
Chris@283 | 38 |
Chris@283 | 39 QString localPath() const { return m_localPath; } |
Chris@283 | 40 void setLocalPath(QString p); |
Chris@283 | 41 |
Chris@283 | 42 QString remoteURL() const { return m_remoteURL; } |
Chris@283 | 43 void setRemoteURL(QString u); |
Chris@283 | 44 |
Chris@283 | 45 QString state() const { return m_state; } |
Chris@283 | 46 void setState(QString b); |
Chris@283 | 47 |
Chris@283 | 48 private slots: |
Chris@283 | 49 void openButtonClicked(); |
Chris@283 | 50 |
Chris@283 | 51 private: |
Chris@283 | 52 QString m_localPath; |
Chris@283 | 53 ClickableLabel *m_openButton; |
Chris@283 | 54 |
Chris@283 | 55 QString m_remoteURL; |
Chris@523 | 56 SqueezedLabel *m_remoteURLLabel; |
Chris@283 | 57 |
Chris@283 | 58 QString m_state; |
Chris@283 | 59 QLabel *m_stateLabel; |
Chris@283 | 60 |
Chris@283 | 61 void updateStateLabel(); |
Chris@283 | 62 }; |
Chris@283 | 63 |
Chris@283 | 64 #endif |