annotate src/workstatuswidget.h @ 494:41a156d439d0

Start adding Help
author Chris Cannam
date Thu, 18 Aug 2011 16:37:27 +0100
parents b9c153e00e84
children d869e6a18f63
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@283 8 Copyright (c) 2011 Chris Cannam
Chris@283 9 Copyright (c) 2011 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@283 23 class QLabel;
Chris@283 24 class QPushButton;
Chris@283 25 class QFileInfo;
Chris@283 26 class ClickableLabel;
Chris@283 27 class QCheckBox;
Chris@283 28
Chris@283 29 class WorkStatusWidget : public QWidget
Chris@283 30 {
Chris@283 31 Q_OBJECT
Chris@283 32
Chris@283 33 public:
Chris@283 34 WorkStatusWidget(QWidget *parent = 0);
Chris@283 35 ~WorkStatusWidget();
Chris@283 36
Chris@283 37 QString localPath() const { return m_localPath; }
Chris@283 38 void setLocalPath(QString p);
Chris@283 39
Chris@283 40 QString remoteURL() const { return m_remoteURL; }
Chris@283 41 void setRemoteURL(QString u);
Chris@283 42
Chris@283 43 QString state() const { return m_state; }
Chris@283 44 void setState(QString b);
Chris@283 45
Chris@283 46 private slots:
Chris@283 47 void openButtonClicked();
Chris@283 48
Chris@283 49 private:
Chris@283 50 QString m_localPath;
Chris@283 51 ClickableLabel *m_openButton;
Chris@283 52
Chris@283 53 QString m_remoteURL;
Chris@283 54 QLabel *m_remoteURLLabel;
Chris@283 55
Chris@283 56 QString m_state;
Chris@283 57 QLabel *m_stateLabel;
Chris@283 58
Chris@283 59 void updateStateLabel();
Chris@283 60 };
Chris@283 61
Chris@283 62 #endif