comparison mainwindow.h @ 285:769ab0fa125d

Merge from branch "mainwindow_member_tidy"
author Chris Cannam
date Mon, 21 Feb 2011 09:13:22 +0000
parents a68801b31ceb
children 3fbafca196e4 ca6edd303c9d
comparison
equal deleted inserted replaced
282:1ec306df738e 285:769ab0fa125d
38 { 38 {
39 Q_OBJECT 39 Q_OBJECT
40 40
41 public: 41 public:
42 MainWindow(QString myDirPath); 42 MainWindow(QString myDirPath);
43 HgTabWidget *hgTabs;
44 void writeSettings();
45
46 //Paths to remote repo & workfolder
47 //Local repo is directory "./hg/" under work folder
48 QString remoteRepoPath;
49 QString workFolderPath;
50 QString currentBranch;
51 Changesets currentHeads;
52 Changesets currentParents;
53 int commitsSincePush;
54 bool stateUnknown;
55 bool hgIsOK;
56 bool needNewLog;
57 43
58 protected: 44 protected:
59 void closeEvent(QCloseEvent *event); 45 void closeEvent(QCloseEvent *event);
60 46
61 public slots: 47 public slots:
124 void createStatusBar(); 110 void createStatusBar();
125 void readSettings(); 111 void readSettings();
126 void splitChangeSets(QStringList *list, QString hgLogOutput); 112 void splitChangeSets(QStringList *list, QString hgLogOutput);
127 void reportNewRemoteHeads(QString); 113 void reportNewRemoteHeads(QString);
128 void presentLongStdoutToUser(QString stdo); 114 void presentLongStdoutToUser(QString stdo);
115 void writeSettings();
129 116
130 QStringList listAllUpIpV4Addresses(); 117 QStringList listAllUpIpV4Addresses();
131 QString filterTag(QString tag); 118 QString filterTag(QString tag);
132 119
133 QString getUserInfo() const; 120 QString getUserInfo() const;
160 147
161 void updateFileSystemWatcher(); 148 void updateFileSystemWatcher();
162 void suspendFileSystemWatcher(); 149 void suspendFileSystemWatcher();
163 void restoreFileSystemWatcher(); 150 void restoreFileSystemWatcher();
164 151
165 bool firstStart; 152 HgTabWidget *m_hgTabs;
166 153
167 bool showAllFiles; 154 QString m_remoteRepoPath;
155 QString m_workFolderPath;
156 QString m_currentBranch;
157 Changesets m_currentHeads;
158 Changesets m_currentParents;
159 int m_commitsSincePush;
160 bool m_stateUnknown;
161 bool m_hgIsOK;
162 bool m_needNewLog;
163
164 bool m_firstStart;
165
166 bool m_showAllFiles;
168 167
169 //Actions enabled flags 168 //Actions enabled flags
170 bool remoteRepoActionsEnabled; 169 bool m_remoteRepoActionsEnabled;
171 bool localRepoActionsEnabled; 170 bool m_localRepoActionsEnabled;
172 171
173 QString m_myDirPath; 172 QString m_myDirPath;
174 173
175 //File menu actions 174 // File menu actions
176 QAction *openAct; 175 QAction *m_openAct;
177 QAction *changeRemoteRepoAct; 176 QAction *m_changeRemoteRepoAct;
178 QAction *settingsAct; 177 QAction *m_settingsAct;
179 QAction *exitAct; 178 QAction *m_exitAct;
180 179
181 //Repo actions 180 // Repo actions
182 QAction *hgIncomingAct; 181 QAction *m_hgIncomingAct;
183 QAction *hgPushAct; 182 QAction *m_hgPushAct;
184 QAction *hgPullAct; 183 QAction *m_hgPullAct;
185 QAction *hgRefreshAct; 184 QAction *m_hgRefreshAct;
186 QAction *hgFolderDiffAct; 185 QAction *m_hgFolderDiffAct;
187 QAction *hgChgSetDiffAct; 186 QAction *m_hgChgSetDiffAct;
188 QAction *hgRevertAct; 187 QAction *m_hgRevertAct;
189 QAction *hgAddAct; 188 QAction *m_hgAddAct;
190 QAction *hgRemoveAct; 189 QAction *m_hgRemoveAct;
191 QAction *hgUpdateAct; 190 QAction *m_hgUpdateAct;
192 QAction *hgCommitAct; 191 QAction *m_hgCommitAct;
193 QAction *hgMergeAct; 192 QAction *m_hgMergeAct;
194 QAction *hgUpdateToRevAct; 193 QAction *m_hgUpdateToRevAct;
195 QAction *hgAnnotateAct; 194 QAction *m_hgAnnotateAct;
196 QAction *hgIgnoreAct; 195 QAction *m_hgIgnoreAct;
197 QAction *hgServeAct; 196 QAction *m_hgServeAct;
198 197
199 //Menus 198 // Menus
200 QMenu *fileMenu; 199 QMenu *m_fileMenu;
201 QMenu *advancedMenu; 200 QMenu *m_advancedMenu;
202 QMenu *helpMenu; 201 QMenu *m_helpMenu;
203 202
204 //Help menu actions 203 // Help menu actions
205 QAction *aboutAct; 204 QAction *m_aboutAct;
206 205
207 QToolBar *fileToolBar; 206 QToolBar *m_fileToolBar;
208 QToolBar *repoToolBar; 207 QToolBar *m_repoToolBar;
209 QToolBar *workFolderToolBar; 208 QToolBar *m_workFolderToolBar;
210 209
211 HgRunner *runner; 210 HgRunner *m_runner;
212 211
213 bool shouldHgStat; 212 bool m_shouldHgStat;
214 213
215 QString getDiffBinaryName(); 214 QString getDiffBinaryName();
216 QString getMergeBinaryName(); 215 QString getMergeBinaryName();
217 QString getEditorBinaryName(); 216 QString getEditorBinaryName();
218 217
219 QFileSystemWatcher *fsWatcher; 218 QFileSystemWatcher *m_fsWatcher;
220 QTimer *m_fsWatcherGeneralTimer; 219 QTimer *m_fsWatcherGeneralTimer;
221 QTimer *m_fsWatcherRestoreTimer; 220 QTimer *m_fsWatcherRestoreTimer;
222 bool m_fsWatcherSuspended; 221 bool m_fsWatcherSuspended;
223 222
224 QString lastStatOutput; 223 QString m_lastStatOutput;
225 QStringList lastRevertedFiles; 224 QStringList m_lastRevertedFiles;
226 225
227 bool justMerged; 226 bool m_justMerged;
228 QString mergeTargetRevision; 227 QString m_mergeTargetRevision;
229 QString mergeCommitComment; 228 QString m_mergeCommitComment;
230 }; 229 };
231 230
232 #endif 231 #endif