Mercurial > hg > easyhg-kdiff3
comparison kdiff3/src-QT4/directorymergewindow.h @ 80:fcd146072e0c
0.9.93
author | joachim99 |
---|---|
date | Tue, 06 Jan 2009 17:51:29 +0000 |
parents | 1184fc843210 |
children | 4e6ebbbae925 |
comparison
equal
deleted
inserted
replaced
79:881e47f5076b | 80:fcd146072e0c |
---|---|
17 | 17 |
18 #ifndef DIRECTORY_MERGE_WINDOW_H | 18 #ifndef DIRECTORY_MERGE_WINDOW_H |
19 #define DIRECTORY_MERGE_WINDOW_H | 19 #define DIRECTORY_MERGE_WINDOW_H |
20 | 20 |
21 #include <QTreeWidget> | 21 #include <QTreeWidget> |
22 #include <QEvent> | |
22 #include <list> | 23 #include <list> |
23 #include <map> | 24 #include <map> |
24 #include "common.h" | 25 #include "common.h" |
25 #include "fileaccess.h" | 26 #include "fileaccess.h" |
26 #include "diff.h" //TotalDiffStatus | 27 #include "diff.h" //TotalDiffStatus |
125 FileAccess& dirDest, | 126 FileAccess& dirDest, |
126 bool bDirectoryMerge, | 127 bool bDirectoryMerge, |
127 bool bReload = false | 128 bool bReload = false |
128 ); | 129 ); |
129 bool isFileSelected(); | 130 bool isFileSelected(); |
130 void allowResizeEvents(bool bAllowResizeEvents); | |
131 bool isDirectoryMergeInProgress() { return m_bRealMergeStarted; } | 131 bool isDirectoryMergeInProgress() { return m_bRealMergeStarted; } |
132 int totalColumnWidth(); | 132 int totalColumnWidth(); |
133 bool isSyncMode() { return m_bSyncMode; } | 133 bool isSyncMode() { return m_bSyncMode; } |
134 bool isScanning() { return m_bScanning; } | 134 bool isScanning() { return m_bScanning; } |
135 void initDirectoryMergeActions( QObject* pKDiff3App, KActionCollection* ac ); | 135 void initDirectoryMergeActions( QObject* pKDiff3App, KActionCollection* ac ); |
194 void slotLoadMergeState(); | 194 void slotLoadMergeState(); |
195 | 195 |
196 protected: | 196 protected: |
197 class DirMergeItemDelegate; | 197 class DirMergeItemDelegate; |
198 void mergeContinue( bool bStart, bool bVerbose ); | 198 void mergeContinue( bool bStart, bool bVerbose ); |
199 void resizeEvent(QResizeEvent* e); | |
200 bool m_bAllowResizeEvents; | |
201 | 199 |
202 void prepareListView(ProgressProxy& pp); | 200 void prepareListView(ProgressProxy& pp); |
203 void calcSuggestedOperation( MergeFileInfos& mfi, e_MergeOperation eDefaultOperation ); | 201 void calcSuggestedOperation( MergeFileInfos& mfi, e_MergeOperation eDefaultOperation ); |
204 void setAllMergeOperations( e_MergeOperation eDefaultOperation ); | 202 void setAllMergeOperations( e_MergeOperation eDefaultOperation ); |
205 friend class MergeFileInfos; | 203 friend class MergeFileInfos; |
213 void fastFileComparison( FileAccess& fi1, FileAccess& fi2, | 211 void fastFileComparison( FileAccess& fi1, FileAccess& fi2, |
214 bool& bEqual, bool& bError, QString& status ); | 212 bool& bEqual, bool& bError, QString& status ); |
215 void compareFilesAndCalcAges( MergeFileInfos& mfi ); | 213 void compareFilesAndCalcAges( MergeFileInfos& mfi ); |
216 | 214 |
217 QString fullNameA( const MergeFileInfos& mfi ) | 215 QString fullNameA( const MergeFileInfos& mfi ) |
218 { return mfi.m_bExistsInA ? mfi.m_fileInfoA.absFilePath() : m_dirA.absFilePath() + "/" + mfi.m_subPath; } | 216 { return mfi.m_bExistsInA ? mfi.m_fileInfoA.absoluteFilePath() : m_dirA.absoluteFilePath() + "/" + mfi.m_subPath; } |
219 QString fullNameB( const MergeFileInfos& mfi ) | 217 QString fullNameB( const MergeFileInfos& mfi ) |
220 { return mfi.m_bExistsInB ? mfi.m_fileInfoB.absFilePath() : m_dirB.absFilePath() + "/" + mfi.m_subPath; } | 218 { return mfi.m_bExistsInB ? mfi.m_fileInfoB.absoluteFilePath() : m_dirB.absoluteFilePath() + "/" + mfi.m_subPath; } |
221 QString fullNameC( const MergeFileInfos& mfi ) | 219 QString fullNameC( const MergeFileInfos& mfi ) |
222 { return mfi.m_bExistsInC ? mfi.m_fileInfoC.absFilePath() : m_dirC.absFilePath() + "/" + mfi.m_subPath; } | 220 { return mfi.m_bExistsInC ? mfi.m_fileInfoC.absoluteFilePath() : m_dirC.absoluteFilePath() + "/" + mfi.m_subPath; } |
223 QString fullNameDest( const MergeFileInfos& mfi ) | 221 QString fullNameDest( const MergeFileInfos& mfi ) |
224 { if ( m_dirDestInternal.prettyAbsPath() == m_dirC.prettyAbsPath() ) return fullNameC(mfi); | 222 { if ( m_dirDestInternal.prettyAbsPath() == m_dirC.prettyAbsPath() ) return fullNameC(mfi); |
225 else if ( m_dirDestInternal.prettyAbsPath() == m_dirB.prettyAbsPath() ) return fullNameB(mfi); | 223 else if ( m_dirDestInternal.prettyAbsPath() == m_dirB.prettyAbsPath() ) return fullNameB(mfi); |
226 else return m_dirDestInternal.absFilePath() + "/" + mfi.m_subPath; | 224 else return m_dirDestInternal.absoluteFilePath() + "/" + mfi.m_subPath; |
227 } | 225 } |
228 | 226 |
229 bool copyFLD( const QString& srcName, const QString& destName ); | 227 bool copyFLD( const QString& srcName, const QString& destName ); |
230 bool deleteFLD( const QString& name, bool bCreateBackup ); | 228 bool deleteFLD( const QString& name, bool bCreateBackup ); |
231 bool makeDir( const QString& name, bool bQuiet=false ); | 229 bool makeDir( const QString& name, bool bQuiet=false ); |