comparison hgtabwidget.h @ 116:807c79350bf1

* Pull history tab out into its own widget
author Chris Cannam
date Fri, 26 Nov 2010 22:06:52 +0000
parents 78374cefa10f
children c92f5859c707
comparison
equal deleted inserted replaced
115:78374cefa10f 116:807c79350bf1
29 #include <QCheckBox> 29 #include <QCheckBox>
30 #include <QLabel> 30 #include <QLabel>
31 #include <QTabWidget> 31 #include <QTabWidget>
32 32
33 class FileStatusWidget; 33 class FileStatusWidget;
34 34 class HistoryWidget;
35 35
36 class HgTabWidget: public QTabWidget 36 class HgTabWidget: public QTabWidget
37 { 37 {
38 Q_OBJECT 38 Q_OBJECT
39 39
43 void updateWorkFolderFileList(QString fileList); 43 void updateWorkFolderFileList(QString fileList);
44 void updateLocalRepoHgLogList(QString hgLogList); 44 void updateLocalRepoHgLogList(QString hgLogList);
45 void setWorkFolderAndRepoNames(QString workFolderPath, QString remoteRepoPath); 45 void setWorkFolderAndRepoNames(QString workFolderPath, QString remoteRepoPath);
46 void setState(QString state); 46 void setState(QString state);
47 47
48 FileStates getFileStates() { return fileStates; } 48 FileStates getFileStates() { return m_fileStates; }
49 49
50 bool canCommit() const; 50 bool canCommit() const;
51 bool canRevert() const; 51 bool canRevert() const;
52 bool canAdd() const; 52 bool canAdd() const;
53 bool canRemove() const; 53 bool canRemove() const;
72 72
73 public slots: 73 public slots:
74 void clearSelections(); 74 void clearSelections();
75 75
76 private: 76 private:
77 FileStatusWidget *fileStatusWidget; 77 FileStatusWidget *m_fileStatusWidget;
78 78 HistoryWidget *m_historyWidget;
79 QWidget *historyGraphPageWidget; 79 FileStates m_fileStates;
80 QWidget *historyGraphWidget;
81 QWidget *historyGraphPanner;
82 QWidget *historyPageWidget;
83
84 FileStates fileStates;
85 80
86 Changesets parseChangeSets(QString changeSetsStr); 81 Changesets parseChangeSets(QString changeSetsStr);
87 }; 82 };
88 83
89 #endif // HGTABWIDGET_H 84 #endif // HGTABWIDGET_H