#include <listview.h>
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_ |
| Git * | git |
| FileHistory * | fh |
| const QString | _sha |
| unsigned long | secs |
| bool | populated |
| bool | isEvenLine |
| bool | isHighlighted |
| bool | isDiffTarget |
Definition at line 18 of file listview.h.
| ListViewItem | ( | QListView * | p, | |
| ListViewItem * | a, | |||
| Git * | g, | |||
| SCRef | sha, | |||
| bool | e, | |||
| unsigned long | t, | |||
| FileHistory * | f | |||
| ) |
Definition at line 394 of file listview.cpp.
| 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 |
| void setDiffTarget | ( | bool | b | ) |
| 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] |
| bool highlighted | ( | ) | const [inline] |
| int laneWidth | ( | ) | const [inline] |
Definition at line 30 of file listview.h.
Referenced by ListView::getLaneParentsChilds(), and paintGraph().
| void setupData | ( | const Rev & | c | ) | [private] |
| void paintGraphLane | ( | QPainter * | p, | |
| int | t, | |||
| int | x1, | |||
| int | x2, | |||
| const QColor & | c, | |||
| const QBrush & | b | |||
| ) | [private] |
| void paintGraph | ( | const Rev & | c, | |
| QPainter * | p, | |||
| const QColorGroup & | cg, | |||
| int | width | |||
| ) | [private] |
| void paintTagMarks | ( | int | col | ) | [private] |
| void addBranchPixmap | ( | QPixmap ** | pp | ) | [private] |
| void addRefPixmap | ( | QPixmap ** | pp, | |
| SCList | refs, | |||
| const QColor & | color | |||
| ) | [private] |
| void addTextPixmap | ( | QPixmap ** | pp, | |
| SCRef | text, | |||
| const QColor & | color, | |||
| bool | bold | |||
| ) | [private] |
| const QString timeDiff | ( | unsigned long | secs | ) | const [private] |
| bool changedFiles | ( | SCRef | c | ) | [private] |
| QListView* myListView | ( | ) | const [inline, private] |
Definition at line 42 of file listview.h.
Referenced by addTextPixmap(), laneWidth(), and paintGraph().
QListView* listView_ [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] |
bool populated [private] |
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().
1.5.3