Mercurial > hg > easyhg
comparison src/workstatuswidget.h @ 370:b9c153e00e84
Move source files to src/
author | Chris Cannam |
---|---|
date | Thu, 24 Mar 2011 10:27:51 +0000 |
parents | workstatuswidget.h@bc39f2e28da8 |
children | d869e6a18f63 |
comparison
equal
deleted
inserted
replaced
369:19cce6d2c470 | 370:b9c153e00e84 |
---|---|
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) 2011 Chris Cannam | |
9 Copyright (c) 2011 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 WORKSTATUSWIDGET_H | |
19 #define WORKSTATUSWIDGET_H | |
20 | |
21 #include <QWidget> | |
22 | |
23 class QLabel; | |
24 class QPushButton; | |
25 class QFileInfo; | |
26 class ClickableLabel; | |
27 class QCheckBox; | |
28 | |
29 class WorkStatusWidget : public QWidget | |
30 { | |
31 Q_OBJECT | |
32 | |
33 public: | |
34 WorkStatusWidget(QWidget *parent = 0); | |
35 ~WorkStatusWidget(); | |
36 | |
37 QString localPath() const { return m_localPath; } | |
38 void setLocalPath(QString p); | |
39 | |
40 QString remoteURL() const { return m_remoteURL; } | |
41 void setRemoteURL(QString u); | |
42 | |
43 QString state() const { return m_state; } | |
44 void setState(QString b); | |
45 | |
46 private slots: | |
47 void openButtonClicked(); | |
48 | |
49 private: | |
50 QString m_localPath; | |
51 ClickableLabel *m_openButton; | |
52 | |
53 QString m_remoteURL; | |
54 QLabel *m_remoteURLLabel; | |
55 | |
56 QString m_state; | |
57 QLabel *m_stateLabel; | |
58 | |
59 void updateStateLabel(); | |
60 }; | |
61 | |
62 #endif |