Mercurial > hg > easyhg
comparison mainwindow.h @ 106:729438d70af8
* Retrieve and store current branch and heads; some refactoring
author | Chris Cannam |
---|---|
date | Thu, 25 Nov 2010 17:54:35 +0000 |
parents | 0bd32aedc6f6 |
children | 8ae3b44c0073 |
comparison
equal
deleted
inserted
replaced
105:1928f9b408e6 | 106:729438d70af8 |
---|---|
19 #define MAINWINDOW_H | 19 #define MAINWINDOW_H |
20 | 20 |
21 #include "hgtabwidget.h" | 21 #include "hgtabwidget.h" |
22 #include "hgrunner.h" | 22 #include "hgrunner.h" |
23 #include "common.h" | 23 #include "common.h" |
24 #include "changeset.h" | |
24 | 25 |
25 #include <QMainWindow> | 26 #include <QMainWindow> |
26 #include <QListWidget> | 27 #include <QListWidget> |
27 #include <QFileSystemWatcher> | 28 #include <QFileSystemWatcher> |
28 | 29 |
33 | 34 |
34 enum HGACTIONS | 35 enum HGACTIONS |
35 { | 36 { |
36 ACT_NONE, | 37 ACT_NONE, |
37 ACT_PATHS, | 38 ACT_PATHS, |
39 ACT_BRANCH, | |
38 ACT_STAT, | 40 ACT_STAT, |
39 ACT_HEADS, | 41 ACT_HEADS, |
40 ACT_PARENTS, | 42 ACT_PARENTS, |
41 ACT_LOG, | 43 ACT_LOG, |
42 ACT_REMOVE, | 44 ACT_REMOVE, |
74 | 76 |
75 //Paths to remote repo & workfolder | 77 //Paths to remote repo & workfolder |
76 //Local repo is directory "./hg/" under work folder | 78 //Local repo is directory "./hg/" under work folder |
77 QString remoteRepoPath; | 79 QString remoteRepoPath; |
78 QString workFolderPath; | 80 QString workFolderPath; |
81 QString currentBranch; | |
82 Changesets currentHeads; | |
79 | 83 |
80 protected: | 84 protected: |
81 void closeEvent(QCloseEvent *event); | 85 void closeEvent(QCloseEvent *event); |
82 | 86 |
83 public slots: | 87 public slots: |
120 | 124 |
121 void fsDirectoryChanged(QString); | 125 void fsDirectoryChanged(QString); |
122 void fsFileChanged(QString); | 126 void fsFileChanged(QString); |
123 | 127 |
124 private: | 128 private: |
129 void hgBranch(); | |
125 void hgHeads(); | 130 void hgHeads(); |
126 void hgParents(); | 131 void hgParents(); |
127 void hgLog(); | 132 void hgLog(); |
128 void createActions(); | 133 void createActions(); |
129 void connectActions(); | 134 void connectActions(); |