ListViewItem Class Reference

#include <listview.h>

List of all members.

Public Member Functions

 ListViewItem (QListView *p, ListViewItem *a, Git *g, SCRef sha, bool e, unsigned long t, FileHistory *f)
SCRef sha () const
int getLaneType (uint pos) const
void setDiffTarget (bool b)
virtual void paintCell (QPainter *p, const QColorGroup &cg, int c, int w, int a)
void setEven (bool b)
void setHighlighted (bool b)
bool highlighted () const
int laneWidth () const

Private Member Functions

void setupData (const Rev &c)
void paintGraphLane (QPainter *p, int t, int x1, int x2, const QColor &c, const QBrush &b)
void paintGraph (const Rev &c, QPainter *p, const QColorGroup &cg, int width)
void paintTagMarks (int col)
void addBranchPixmap (QPixmap **pp)
void addRefPixmap (QPixmap **pp, SCList refs, const QColor &color)
void addTextPixmap (QPixmap **pp, SCRef text, const QColor &color, bool bold)
const QString timeDiff (unsigned long secs) const
bool changedFiles (SCRef c)
QListView * myListView () const

Private Attributes

QListView * listView_
Gitgit
FileHistoryfh
const QString _sha
unsigned long secs
bool populated
bool isEvenLine
bool isHighlighted
bool isDiffTarget


Detailed Description

Definition at line 18 of file listview.h.


Constructor & Destructor Documentation

ListViewItem ( QListView *  p,
ListViewItem a,
Git g,
SCRef  sha,
bool  e,
unsigned long  t,
FileHistory f 
)

Definition at line 394 of file listview.cpp.


Member Function Documentation

SCRef sha (  )  const [inline]

Definition at line 23 of file listview.h.

Referenced by FileView::filterOnRange(), ListView::filterRightButtonPressed(), ListView::findItemSha(), ListView::getLaneParentsChilds(), MainImpl::passFilter(), ListView::setHighlight(), and ListView::update().

int getLaneType ( uint  pos  )  const

Definition at line 401 of file listview.cpp.

Referenced by ListView::getLaneParentsChilds().

void setDiffTarget ( bool  b  ) 

Definition at line 407 of file listview.cpp.

Referenced by ListView::setHighlight().

void paintCell ( QPainter *  p,
const QColorGroup &  cg,
int  c,
int  w,
int  a 
) [virtual]

Definition at line 590 of file listview.cpp.

void setEven ( bool  b  )  [inline]

Definition at line 27 of file listview.h.

Referenced by MainImpl::filterList(), and FileView::filterOnRange().

void setHighlighted ( bool  b  )  [inline]

Definition at line 28 of file listview.h.

Referenced by MainImpl::filterList().

bool highlighted (  )  const [inline]

Definition at line 29 of file listview.h.

Referenced by MainImpl::goMatch().

int laneWidth (  )  const [inline]

Definition at line 30 of file listview.h.

Referenced by ListView::getLaneParentsChilds(), and paintGraph().

void setupData ( const Rev c  )  [private]

Definition at line 726 of file listview.cpp.

Referenced by paintCell().

void paintGraphLane ( QPainter *  p,
int  t,
int  x1,
int  x2,
const QColor &  c,
const QBrush &  b 
) [private]

Definition at line 415 of file listview.cpp.

Referenced by paintGraph().

void paintGraph ( const Rev c,
QPainter *  p,
const QColorGroup &  cg,
int  width 
) [private]

Definition at line 543 of file listview.cpp.

Referenced by paintCell().

void paintTagMarks ( int  col  )  [private]

Definition at line 640 of file listview.cpp.

Referenced by paintCell().

void addBranchPixmap ( QPixmap **  pp  )  [private]

Definition at line 667 of file listview.cpp.

Referenced by paintTagMarks().

void addRefPixmap ( QPixmap **  pp,
SCList  refs,
const QColor &  color 
) [private]

Definition at line 678 of file listview.cpp.

Referenced by paintTagMarks().

void addTextPixmap ( QPixmap **  pp,
SCRef  text,
const QColor &  color,
bool  bold 
) [private]

Definition at line 684 of file listview.cpp.

Referenced by addBranchPixmap(), and addRefPixmap().

const QString timeDiff ( unsigned long  secs  )  const [private]

Definition at line 745 of file listview.cpp.

Referenced by setupData().

bool changedFiles ( SCRef  c  )  [private]

Definition at line 716 of file listview.cpp.

Referenced by paintCell().

QListView* myListView (  )  const [inline, private]

Definition at line 42 of file listview.h.

Referenced by addTextPixmap(), laneWidth(), and paintGraph().


Member Data Documentation

QListView* listView_ [private]

Definition at line 44 of file listview.h.

Referenced by myListView().

Git* git [private]

Definition at line 45 of file listview.h.

Referenced by addBranchPixmap(), changedFiles(), getLaneType(), paintCell(), paintTagMarks(), and setupData().

FileHistory* fh [private]

Definition at line 46 of file listview.h.

Referenced by getLaneType(), paintCell(), and setupData().

const QString _sha [private]

Definition at line 47 of file listview.h.

Referenced by addBranchPixmap(), getLaneType(), paintCell(), paintTagMarks(), setupData(), and sha().

unsigned long secs [private]

Definition at line 48 of file listview.h.

Referenced by setupData().

bool populated [private]

Definition at line 49 of file listview.h.

Referenced by ListViewItem(), and paintCell().

bool isEvenLine [private]

Definition at line 49 of file listview.h.

Referenced by addTextPixmap(), paintCell(), and setEven().

bool isHighlighted [private]

Definition at line 49 of file listview.h.

Referenced by highlighted(), ListViewItem(), paintCell(), and setHighlighted().

bool isDiffTarget [private]

Definition at line 49 of file listview.h.

Referenced by ListViewItem(), paintCell(), and setDiffTarget().


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