#include <filecontent.h>
Public Slots | |
void | on_doubleClicked (int, int) |
void | on_annotateReady (Annotate *, const QString &, bool, const QString &) |
void | on_procDataReady (const QByteArray &) |
void | on_eof (bool emitSignal=true) |
Signals | |
void | annotationAvailable (bool) |
void | fileAvailable (bool) |
void | revIdSelected (int) |
Public Member Functions | |
FileContent (Domain *parent, Git *git, QTextEdit *f) | |
~FileContent () | |
void | update (bool force=false) |
bool | annotateAvailable () |
void | clear () |
void | copySelection () |
void | goToAnnotation (int id) |
bool | goToRangeStart () |
bool | rangeFilter (bool b) |
bool | getRange (SCRef sha, RangeInfo *r) |
void | startAnnotate (FileHistory *fh) |
void | setShowAnnotate (bool b) |
void | setHighlightSource (bool b) |
Private Member Functions | |
void | clearAnnotate () |
void | clearText (bool emitSignal=true) |
void | findInFile (SCRef str) |
bool | lookupAnnotation () |
uint | annotateLength (const FileAnnotation *curAnn) |
void | saveScreenState () |
void | restoreScreenState () |
uint | processData (const QByteArray &fileChunk) |
Private Attributes | |
Domain * | d |
Git * | git |
QTextEdit * | ft |
StateInfo * | st |
RangeInfo * | rangeInfo |
FileHighlighter * | fileHighlighter |
QGuardedPtr< Annotate > | annotateObj |
QGuardedPtr< MyProcess > | proc |
const FileAnnotation * | curAnn |
QByteArray | fileRowData |
QString | fileProcessedData |
QString | halfLine |
uint | curLine |
QStringList::const_iterator | curAnnIt |
uint | annoLen |
bool | isFileAvailable |
bool | isAnnotationAvailable |
bool | isAnnotationAppended |
bool | isRangeFilterActive |
bool | isShowAnnotate |
bool | isHtmlSource |
ScreenState | ss |
Static Private Attributes | |
static const QString | HTML_HEAD = "<font color=\"#C0C0C0\">" |
static const QString | HTML_TAIL = "</font>" |
static const QString | HTML_FILE_START = "<pre><tt>" |
static const QString | HTML_FILE_END = "</tt></pre>" |
Friends | |
class | FileHighlighter |
Classes | |
struct | ScreenState |
Definition at line 25 of file filecontent.h.
FileContent | ( | Domain * | parent, | |
Git * | git, | |||
QTextEdit * | f | |||
) |
Definition at line 59 of file filecontent.cpp.
~FileContent | ( | ) |
Definition at line 81 of file filecontent.cpp.
void update | ( | bool | force = false |
) |
Definition at line 152 of file filecontent.cpp.
Referenced by FileView::doUpdate(), FileView::on_toolButtonPin_toggled(), and setHighlightSource().
bool annotateAvailable | ( | ) | [inline] |
Definition at line 31 of file filecontent.h.
Referenced by FileView::on_toolButtonRangeFilter_toggled().
void clear | ( | ) |
Definition at line 113 of file filecontent.cpp.
Referenced by FileView::clear(), update(), and ~FileContent().
void copySelection | ( | ) |
Definition at line 241 of file filecontent.cpp.
Referenced by FileView::on_toolButtonCopy_clicked().
void goToAnnotation | ( | int | id | ) |
bool goToRangeStart | ( | ) |
Definition at line 227 of file filecontent.cpp.
Referenced by FileView::on_fileAvailable(), and rangeFilter().
bool rangeFilter | ( | bool | b | ) |
Definition at line 270 of file filecontent.cpp.
Referenced by FileView::on_toolButtonRangeFilter_toggled().
Definition at line 200 of file filecontent.cpp.
Referenced by FileView::filterOnRange(), rangeFilter(), and update().
void startAnnotate | ( | FileHistory * | fh | ) |
void setShowAnnotate | ( | bool | b | ) |
Definition at line 119 of file filecontent.cpp.
Referenced by FileView::on_toolButtonShowAnnotate_toggled(), and FileView::showAnnotation().
void setHighlightSource | ( | bool | b | ) |
Definition at line 141 of file filecontent.cpp.
Referenced by FileView::on_toolButtonHighlightText_toggled().
void annotationAvailable | ( | bool | ) | [signal] |
Referenced by clearAnnotate(), and on_annotateReady().
void fileAvailable | ( | bool | ) | [signal] |
Referenced by clearText(), and on_eof().
void revIdSelected | ( | int | ) | [signal] |
Referenced by on_doubleClicked().
void on_doubleClicked | ( | int | para, | |
int | ||||
) | [slot] |
void on_annotateReady | ( | Annotate * | readyAnn, | |
const QString & | fileName, | |||
bool | ok, | |||
const QString & | msg | |||
) | [slot] |
void on_procDataReady | ( | const QByteArray & | fileChunk | ) | [slot] |
Definition at line 438 of file filecontent.cpp.
void on_eof | ( | bool | emitSignal = true |
) | [slot] |
void clearAnnotate | ( | ) | [private] |
Definition at line 88 of file filecontent.cpp.
Referenced by clear(), FileContent(), lookupAnnotation(), and processData().
void clearText | ( | bool | emitSignal = true |
) | [private] |
Definition at line 98 of file filecontent.cpp.
Referenced by clear(), FileContent(), setShowAnnotate(), and update().
void findInFile | ( | SCRef | str | ) | [private] |
bool lookupAnnotation | ( | ) | [private] |
uint annotateLength | ( | const FileAnnotation * | curAnn | ) | [private] |
void saveScreenState | ( | ) | [private] |
void restoreScreenState | ( | ) | [private] |
uint processData | ( | const QByteArray & | fileChunk | ) | [private] |
Definition at line 459 of file filecontent.cpp.
Referenced by on_eof(), on_procDataReady(), and setShowAnnotate().
friend class FileHighlighter [friend] |
Definition at line 65 of file filecontent.h.
Referenced by FileContent(), lookupAnnotation(), on_annotateReady(), rangeFilter(), and startAnnotate().
Definition at line 66 of file filecontent.h.
Referenced by clearAnnotate(), clearText(), FileContent(), lookupAnnotation(), setHighlightSource(), startAnnotate(), and update().
QTextEdit* ft [private] |
Definition at line 67 of file filecontent.h.
Referenced by clearText(), copySelection(), FileContent(), goToAnnotation(), goToRangeStart(), on_doubleClicked(), on_eof(), rangeFilter(), restoreScreenState(), saveScreenState(), and setHighlightSource().
Definition at line 68 of file filecontent.h.
Referenced by FileContent(), lookupAnnotation(), on_annotateReady(), rangeFilter(), and update().
Definition at line 69 of file filecontent.h.
Referenced by FileContent(), goToRangeStart(), FileHighlighter::highlightParagraph(), rangeFilter(), update(), and ~FileContent().
FileHighlighter* fileHighlighter [private] |
Definition at line 70 of file filecontent.h.
Referenced by FileContent(), rangeFilter(), and ~FileContent().
QGuardedPtr<Annotate> annotateObj [private] |
Definition at line 71 of file filecontent.h.
Referenced by clearAnnotate(), getRange(), lookupAnnotation(), on_annotateReady(), rangeFilter(), startAnnotate(), and update().
const FileAnnotation* curAnn [private] |
Definition at line 73 of file filecontent.h.
Referenced by annotateAvailable(), clearAnnotate(), clearText(), goToAnnotation(), goToRangeStart(), lookupAnnotation(), processData(), setShowAnnotate(), and update().
QByteArray fileRowData [private] |
Definition at line 74 of file filecontent.h.
Referenced by clearText(), on_eof(), on_procDataReady(), and setShowAnnotate().
QString fileProcessedData [private] |
Definition at line 75 of file filecontent.h.
Referenced by clearText(), on_eof(), and processData().
QString halfLine [private] |
uint curLine [private] |
QStringList::const_iterator curAnnIt [private] |
Definition at line 78 of file filecontent.h.
Referenced by clearText(), lookupAnnotation(), and processData().
uint annoLen [private] |
Definition at line 79 of file filecontent.h.
Referenced by clearAnnotate(), copySelection(), FileHighlighter::highlightParagraph(), lookupAnnotation(), processData(), restoreScreenState(), and saveScreenState().
bool isFileAvailable [private] |
Definition at line 80 of file filecontent.h.
Referenced by clearText(), on_eof(), and setShowAnnotate().
bool isAnnotationAvailable [private] |
Definition at line 81 of file filecontent.h.
Referenced by clearAnnotate(), lookupAnnotation(), and on_annotateReady().
bool isAnnotationAppended [private] |
Definition at line 82 of file filecontent.h.
Referenced by clearText(), copySelection(), FileContent(), goToAnnotation(), FileHighlighter::highlightParagraph(), processData(), restoreScreenState(), saveScreenState(), and setShowAnnotate().
bool isRangeFilterActive [private] |
Definition at line 83 of file filecontent.h.
Referenced by FileContent(), goToRangeStart(), FileHighlighter::highlightParagraph(), rangeFilter(), and update().
bool isShowAnnotate [private] |
Definition at line 84 of file filecontent.h.
Referenced by FileContent(), processData(), and setShowAnnotate().
bool isHtmlSource [private] |
Definition at line 85 of file filecontent.h.
Referenced by FileContent(), FileHighlighter::highlightParagraph(), processData(), setHighlightSource(), and update().
ScreenState ss [private] |
Definition at line 91 of file filecontent.h.
Referenced by on_eof(), restoreScreenState(), saveScreenState(), and update().
const QString HTML_HEAD = "<font color=\"#C0C0C0\">" [static, private] |
const QString HTML_TAIL = "</font>" [static, private] |
const QString HTML_FILE_START = "<pre><tt>" [static, private] |
const QString HTML_FILE_END = "</tt></pre>" [static, private] |