FileContent Class Reference

#include <filecontent.h>

List of all members.

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

Domaind
Gitgit
QTextEdit * ft
StateInfost
RangeInforangeInfo
FileHighlighterfileHighlighter
QGuardedPtr< AnnotateannotateObj
QGuardedPtr< MyProcessproc
const FileAnnotationcurAnn
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


Detailed Description

Definition at line 25 of file filecontent.h.


Constructor & Destructor Documentation

FileContent ( Domain parent,
Git git,
QTextEdit *  f 
)

Definition at line 59 of file filecontent.cpp.

~FileContent (  ) 

Definition at line 81 of file filecontent.cpp.


Member Function Documentation

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  ) 

Definition at line 208 of file filecontent.cpp.

Referenced by FileView::goToCurrentAnnotation().

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().

bool getRange ( SCRef  sha,
RangeInfo r 
)

Definition at line 200 of file filecontent.cpp.

Referenced by FileView::filterOnRange(), rangeFilter(), and update().

void startAnnotate ( FileHistory fh  ) 

Definition at line 185 of file filecontent.cpp.

Referenced by FileView::on_loadCompleted().

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]

Definition at line 410 of file filecontent.cpp.

Referenced by FileContent().

void on_annotateReady ( Annotate readyAnn,
const QString &  fileName,
bool  ok,
const QString &  msg 
) [slot]

Definition at line 417 of file filecontent.cpp.

Referenced by FileContent().

void on_procDataReady ( const QByteArray &  fileChunk  )  [slot]

Definition at line 438 of file filecontent.cpp.

void on_eof ( bool  emitSignal = true  )  [slot]

Definition at line 444 of file filecontent.cpp.

Referenced by setShowAnnotate().

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]

Definition at line 324 of file filecontent.cpp.

Referenced by on_annotateReady(), and update().

uint annotateLength ( const FileAnnotation curAnn  )  [private]

Definition at line 190 of file filecontent.cpp.

Referenced by lookupAnnotation().

void saveScreenState (  )  [private]

Definition at line 366 of file filecontent.cpp.

Referenced by setShowAnnotate(), and update().

void restoreScreenState (  )  [private]

Definition at line 382 of file filecontent.cpp.

Referenced by on_eof().

uint processData ( const QByteArray &  fileChunk  )  [private]

Definition at line 459 of file filecontent.cpp.

Referenced by on_eof(), on_procDataReady(), and setShowAnnotate().


Friends And Related Function Documentation

friend class FileHighlighter [friend]

Definition at line 54 of file filecontent.h.

Referenced by FileContent().


Member Data Documentation

Domain* d [private]

Definition at line 65 of file filecontent.h.

Referenced by FileContent(), lookupAnnotation(), on_annotateReady(), rangeFilter(), and startAnnotate().

Git* git [private]

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().

StateInfo* st [private]

Definition at line 68 of file filecontent.h.

Referenced by FileContent(), lookupAnnotation(), on_annotateReady(), rangeFilter(), and update().

RangeInfo* rangeInfo [private]

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().

QGuardedPtr<MyProcess> proc [private]

Definition at line 72 of file filecontent.h.

Referenced by clearText(), 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]

Definition at line 76 of file filecontent.h.

Referenced by clearText(), and processData().

uint curLine [private]

Definition at line 77 of file filecontent.h.

Referenced by clearText(), and processData().

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]

Definition at line 93 of file filecontent.h.

Referenced by processData().

const QString HTML_TAIL = "</font>" [static, private]

Definition at line 94 of file filecontent.h.

Referenced by processData().

const QString HTML_FILE_START = "<pre><tt>" [static, private]

Definition at line 95 of file filecontent.h.

Referenced by processData().

const QString HTML_FILE_END = "</tt></pre>" [static, private]

Definition at line 96 of file filecontent.h.

Referenced by processData().


The documentation for this class was generated from the following files:
Generated on Fri Dec 7 21:57:39 2007 for QGit by  doxygen 1.5.3