#include <annotate.h>
Public Member Functions | |
| Annotate (Git *parent, QObject *guiObj) | |
| void | deleteWhenDone () |
| const FileAnnotation * | lookupAnnotation (SCRef sha, SCRef fileName) |
| bool | start (const FileHistory *fh) |
| bool | isValid () |
| bool | isCanceled () |
| int | count () |
| int | elapsed () |
| const QString | file () |
| const QString | getAncestor (SCRef sha, SCRef fileName, int *shaIdx) |
| bool | getRange (SCRef sha, RangeInfo *r) |
| bool | seekPosition (int *rangeStart, int *rangeEnd, SCRef fromSha, SCRef toSha) |
| const QString | computeRanges (SCRef sha, int rStart, int rEnd, SCRef target="") |
Private Types | |
| typedef QMap < QString, FileAnnotation > | AnnotateHistory |
| typedef QPair < QString, uint > | Key |
Private Slots | |
| void | on_patchProc_readFromStdout () |
| void | on_patchProc_processExited () |
| void | on_progressTimer_timeout () |
| void | on_deleteWhenDone () |
| void | slotComputeDiffs () |
Private Member Functions | |
| void | annotateFileHistory (SCRef fileName, bool buildPatchScript) |
| void | doAnnotate (SCRef fileName, SCRef sha, bool buildPatchScript) |
| FileAnnotation * | getFileAnnotation (SCRef sha) |
| void | setInitialAnnotation (SCRef fileName, SCRef sha, FileAnnotation *fa) |
| const QString | setupAuthor (SCRef origAuthor, int annId) |
| void | setAnnotation (SCRef diff, SCRef aut, SCList pAnn, QStringList &nAnn, int ofs=0) |
| bool | getNextLine (SCRef d, int &idx, QString &line) |
| void | updatePatchScript (SCRef sha, SCRef par) |
| bool | startPatchProc (SCRef buf, SCRef fileName) |
| const QString | getNextPatch (QString &patchFile, SCRef fileName, SCRef sha) |
| bool | getNextSection (SCRef d, int &idx, QString &sec, SCRef target) |
| void | updateRange (RangeInfo *r, SCRef diff, bool reverse) |
| void | updateCrossRanges (SCRef cnk, bool rev, int oStart, int oLineCnt, RangeInfo *r) |
| bool | isDescendant (SCRef sha, SCRef target) |
| EM_DECLARE (exAnnCanceled) | |
Static Private Member Functions | |
| static void | unify (SList dst, SCList src) |
Private Attributes | |
| Git * | git |
| QObject * | gui |
| const FileHistory * | fh |
| AnnotateHistory | ah |
| bool | cancelingAnnotate |
| bool | annotateRunning |
| bool | annotateActivity |
| bool | isError |
| int | annNumLen |
| int | annId |
| int | annFilesNum |
| QString | patchScript |
| QString | fileName |
| StrVect | histRevOrder |
| QProcess | patchProc |
| QString | patchProcBuf |
| QString | nextFileSha |
| bool | valid |
| bool | canceled |
| QTime | processingTime |
| QTimer | progressTimer |
| QMap< Key, QString > | diffMap |
| QMap< QString, RangeInfo > | rangeMap |
Definition at line 39 of file annotate.h.
typedef QMap<QString, FileAnnotation> AnnotateHistory [private] |
Definition at line 64 of file annotate.h.
typedef QPair<QString, uint> Key [private] |
Definition at line 106 of file annotate.h.
Definition at line 15 of file annotate.cpp.
| void deleteWhenDone | ( | ) |
Definition at line 72 of file annotate.cpp.
Referenced by Git::cancelAnnotate(), and slotComputeDiffs().
| const FileAnnotation * lookupAnnotation | ( | SCRef | sha, | |
| SCRef | fileName | |||
| ) |
| bool start | ( | const FileHistory * | fh | ) |
Definition at line 102 of file annotate.cpp.
Referenced by getNextPatch(), Git::startAnnotate(), and updateRange().
| bool isValid | ( | ) | [inline] |
| bool isCanceled | ( | ) | [inline] |
Definition at line 47 of file annotate.h.
| int count | ( | ) | [inline] |
| int elapsed | ( | ) | [inline] |
| const QString file | ( | ) | [inline] |
Definition at line 473 of file annotate.cpp.
Definition at line 891 of file annotate.cpp.
| void on_patchProc_readFromStdout | ( | ) | [private, slot] |
| void on_patchProc_processExited | ( | ) | [private, slot] |
| void on_progressTimer_timeout | ( | ) | [private, slot] |
| void on_deleteWhenDone | ( | ) | [private, slot] |
| void slotComputeDiffs | ( | ) | [private, slot] |
Definition at line 148 of file annotate.cpp.
Referenced by on_patchProc_processExited(), and start().
| void annotateFileHistory | ( | SCRef | fileName, | |
| bool | buildPatchScript | |||
| ) | [private] |
| FileAnnotation * getFileAnnotation | ( | SCRef | sha | ) | [private] |
| void setInitialAnnotation | ( | SCRef | fileName, | |
| SCRef | sha, | |||
| FileAnnotation * | fa | |||
| ) | [private] |
| const QString setupAuthor | ( | SCRef | origAuthor, | |
| int | annId | |||
| ) | [private] |
| bool getNextLine | ( | SCRef | d, | |
| int & | idx, | |||
| QString & | line | |||
| ) | [private] |
| EM_DECLARE | ( | exAnnCanceled | ) | [private] |
Definition at line 84 of file annotate.h.
Referenced by Annotate(), computeRanges(), doAnnotate(), getAncestor(), getNextPatch(), isDescendant(), setInitialAnnotation(), slotComputeDiffs(), and startPatchProc().
QObject* gui [private] |
const FileHistory* fh [private] |
Definition at line 86 of file annotate.h.
Referenced by computeRanges(), doAnnotate(), isDescendant(), and start().
AnnotateHistory ah [private] |
Definition at line 87 of file annotate.h.
Referenced by count(), getAncestor(), getFileAnnotation(), getNextPatch(), lookupAnnotation(), setInitialAnnotation(), slotComputeDiffs(), and start().
bool cancelingAnnotate [private] |
Definition at line 88 of file annotate.h.
Referenced by Annotate(), annotateFileHistory(), deleteWhenDone(), doAnnotate(), getNextPatch(), on_progressTimer_timeout(), setInitialAnnotation(), slotComputeDiffs(), and start().
bool annotateRunning [private] |
Definition at line 89 of file annotate.h.
Referenced by Annotate(), deleteWhenDone(), on_deleteWhenDone(), slotComputeDiffs(), and start().
bool annotateActivity [private] |
bool isError [private] |
Definition at line 91 of file annotate.h.
Referenced by annotateFileHistory(), doAnnotate(), getFileAnnotation(), on_progressTimer_timeout(), setAnnotation(), setInitialAnnotation(), slotComputeDiffs(), and start().
int annNumLen [private] |
int annId [private] |
int annFilesNum [private] |
Definition at line 94 of file annotate.h.
Referenced by on_patchProc_readFromStdout(), on_progressTimer_timeout(), and start().
QString patchScript [private] |
QString fileName [private] |
Definition at line 96 of file annotate.h.
Referenced by computeRanges(), lookupAnnotation(), slotComputeDiffs(), and start().
StrVect histRevOrder [private] |
Definition at line 97 of file annotate.h.
Referenced by annotateFileHistory(), computeRanges(), getAncestor(), on_patchProc_readFromStdout(), and start().
QProcess patchProc [private] |
Definition at line 98 of file annotate.h.
Referenced by Annotate(), deleteWhenDone(), on_patchProc_readFromStdout(), and startPatchProc().
QString patchProcBuf [private] |
Definition at line 99 of file annotate.h.
Referenced by Annotate(), doAnnotate(), on_patchProc_readFromStdout(), slotComputeDiffs(), and startPatchProc().
QString nextFileSha [private] |
bool valid [private] |
Definition at line 101 of file annotate.h.
Referenced by Annotate(), computeRanges(), getRange(), isValid(), lookupAnnotation(), slotComputeDiffs(), and start().
bool canceled [private] |
Definition at line 102 of file annotate.h.
Referenced by Annotate(), computeRanges(), getRange(), isCanceled(), and slotComputeDiffs().
QTime processingTime [private] |
QTimer progressTimer [private] |
Definition at line 107 of file annotate.h.
Referenced by computeRanges(), getNextPatch(), and slotComputeDiffs().
Definition at line 108 of file annotate.h.
Referenced by computeRanges(), getRange(), and seekPosition().
1.5.3