Chris@283: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@283: Chris@283: /* Chris@283: EasyMercurial Chris@283: Chris@283: Based on HgExplorer by Jari Korhonen Chris@283: Copyright (c) 2010 Jari Korhonen Chris@560: Copyright (c) 2012 Chris Cannam Chris@560: Copyright (c) 2012 Queen Mary, University of London Chris@283: Chris@283: This program is free software; you can redistribute it and/or Chris@283: modify it under the terms of the GNU General Public License as Chris@283: published by the Free Software Foundation; either version 2 of the Chris@283: License, or (at your option) any later version. See the file Chris@283: COPYING included with this distribution for more information. Chris@283: */ Chris@283: Chris@283: #ifndef WORKSTATUSWIDGET_H Chris@283: #define WORKSTATUSWIDGET_H Chris@283: Chris@283: #include Chris@283: Chris@523: class SqueezedLabel; Chris@523: Chris@283: class QLabel; Chris@283: class QPushButton; Chris@283: class QFileInfo; Chris@283: class ClickableLabel; Chris@283: class QCheckBox; Chris@283: Chris@283: class WorkStatusWidget : public QWidget Chris@283: { Chris@283: Q_OBJECT Chris@283: Chris@283: public: Chris@283: WorkStatusWidget(QWidget *parent = 0); Chris@283: ~WorkStatusWidget(); Chris@283: Chris@283: QString localPath() const { return m_localPath; } Chris@283: void setLocalPath(QString p); Chris@283: Chris@283: QString remoteURL() const { return m_remoteURL; } Chris@283: void setRemoteURL(QString u); Chris@283: Chris@283: QString state() const { return m_state; } Chris@283: void setState(QString b); Chris@283: Chris@283: private slots: Chris@283: void openButtonClicked(); Chris@283: Chris@283: private: Chris@283: QString m_localPath; Chris@283: ClickableLabel *m_openButton; Chris@283: Chris@283: QString m_remoteURL; Chris@523: SqueezedLabel *m_remoteURLLabel; Chris@283: Chris@283: QString m_state; Chris@283: QLabel *m_stateLabel; Chris@283: Chris@283: void updateStateLabel(); Chris@283: }; Chris@283: Chris@283: #endif