Mercurial > hg > easyhg
comparison hgtabwidget.h @ 96:87ef2fa9ee8b
* Rename HgExpWidget to HgTabWidget
author | Chris Cannam |
---|---|
date | Wed, 24 Nov 2010 16:40:57 +0000 |
parents | hgexpwidget.h@d1be9712818a |
children | 0bd32aedc6f6 |
comparison
equal
deleted
inserted
replaced
95:d1be9712818a | 96:87ef2fa9ee8b |
---|---|
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) 2010 Chris Cannam | |
9 Copyright (c) 2010 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 HGTABWIDGET_H | |
19 #define HGTABWIDGET_H | |
20 | |
21 #include "changeset.h" | |
22 #include "common.h" | |
23 #include "filestates.h" | |
24 | |
25 #include <QMenu> | |
26 #include <QListWidget> | |
27 #include <QGroupBox> | |
28 #include <QVBoxLayout> | |
29 #include <QCheckBox> | |
30 #include <QLabel> | |
31 #include <QTabWidget> | |
32 | |
33 class FileStatusWidget; | |
34 | |
35 | |
36 class HgTabWidget: public QTabWidget | |
37 { | |
38 Q_OBJECT | |
39 | |
40 public: | |
41 HgTabWidget(QWidget *parent, QString remoteRepo, QString workFolderPath); | |
42 | |
43 void updateWorkFolderFileList(QString fileList); | |
44 void updateLocalRepoHgLogList(QString hgLogList); | |
45 void setWorkFolderAndRepoNames(QString workFolderPath, QString remoteRepoPath); | |
46 | |
47 FileStates getFileStates() { return fileStates; } | |
48 | |
49 bool canCommit() const; | |
50 bool canAdd() const; | |
51 bool canRemove() const; | |
52 bool canDoDiff() const; | |
53 | |
54 QStringList getAllSelectedFiles() const; | |
55 QStringList getSelectedCommittableFiles() const; | |
56 QStringList getSelectedAddableFiles() const; | |
57 QStringList getSelectedRemovableFiles() const; | |
58 | |
59 signals: | |
60 void selectionChanged(); | |
61 | |
62 public slots: | |
63 void clearSelections(); | |
64 | |
65 private: | |
66 FileStatusWidget *fileStatusWidget; | |
67 | |
68 QWidget *historyGraphPageWidget; | |
69 QWidget *historyGraphWidget; | |
70 QWidget *historyGraphPanner; | |
71 QWidget *historyPageWidget; | |
72 | |
73 FileStates fileStates; | |
74 | |
75 Changesets parseChangeSets(QString changeSetsStr); | |
76 }; | |
77 | |
78 #endif // HGTABWIDGET_H |