ListView Class Reference

#include <listview.h>

List of all members.

Public Slots

void on_newRevsAdded (const FileHistory *fh, const QValueVector< QString > &shaVec)
void on_repaintListViews (const QFont &f)

Signals

void lanesContextMenuRequested (const QStringList &, const QStringList &)
void droppedRevisions (const QStringList &)
void contextMenu (const QString &, int)

Public Member Functions

 ListView (Domain *d, Git *g, QListView *l, FileHistory *f, const QFont &fnt)
 ~ListView ()
void clear ()
const QString getSha (int id)
void updateIdValues ()
void getSelectedItems (QStringList &selectedItems)
bool update ()
void addNewRevs (const QValueVector< QString > &shaVec)

Public Attributes

bool filterNextContextMenuRequest

Protected Member Functions

virtual bool eventFilter (QObject *obj, QEvent *ev)

Private Slots

void on_contextMenuRequested (QListViewItem *)
void on_currentChanged (QListViewItem *item)
void on_mouseButtonPressed (int, QListViewItem *, const QPoint &, int)
void on_clicked (QListViewItem *)
void on_onItem (QListViewItem *)

Private Member Functions

void setupListView (const QFont &fnt)
bool filterRightButtonPressed (QMouseEvent *e)
bool filterDropEvent (QDropEvent *e)
bool getLaneParentsChilds (ListViewItem *item, int x, SList p, SList c)
const QString getRefs (QListViewItem *item)
void setHighlight (SCRef diffToSha)
ListViewItemfindItemSha (SCRef sha) const

Private Attributes

Domaind
Gitgit
QListView * lv
StateInfost
FileHistoryfh
ListViewItemlastItem
ListViewItemdiffTarget
unsigned long secs
bool currentChangedEmitted


Detailed Description

Definition at line 52 of file listview.h.


Constructor & Destructor Documentation

ListView ( Domain d,
Git g,
QListView *  l,
FileHistory f,
const QFont &  fnt 
)

Definition at line 21 of file listview.cpp.

~ListView (  ) 

Definition at line 49 of file listview.cpp.


Member Function Documentation

void clear (  ) 

Definition at line 82 of file listview.cpp.

Referenced by RevsView::clear(), FileView::clear(), and ListView().

const QString getSha ( int  id  ) 

Definition at line 124 of file listview.cpp.

Referenced by FileView::on_spinBoxRevision_valueChanged().

void updateIdValues (  ) 

Definition at line 99 of file listview.cpp.

Referenced by FileView::on_loadCompleted().

void getSelectedItems ( QStringList &  selectedItems  ) 

Definition at line 112 of file listview.cpp.

Referenced by MainImpl::ActMailFormatPatch_activated(), MainImpl::ActPop_activated(), MainImpl::ActPush_activated(), MainImpl::on_customAction_activated(), and on_onItem().

bool update (  ) 

Definition at line 184 of file listview.cpp.

Referenced by RevsView::doUpdate(), and FileView::doUpdate().

void addNewRevs ( const QValueVector< QString > &  shaVec  ) 

void lanesContextMenuRequested ( const QStringList &  ,
const QStringList &   
) [signal]

Referenced by filterRightButtonPressed().

void droppedRevisions ( const QStringList &   )  [signal]

Referenced by filterDropEvent().

void contextMenu ( const QString &  ,
int   
) [signal]

Referenced by on_contextMenuRequested().

void on_newRevsAdded ( const FileHistory fh,
const QValueVector< QString > &  shaVec 
) [slot]

Definition at line 211 of file listview.cpp.

void on_repaintListViews ( const QFont &  f  )  [slot]

Definition at line 76 of file listview.cpp.

bool eventFilter ( QObject *  obj,
QEvent *  ev 
) [protected, virtual]

Definition at line 294 of file listview.cpp.

void on_contextMenuRequested ( QListViewItem *  item  )  [private, slot]

Definition at line 280 of file listview.cpp.

Referenced by ListView().

void on_currentChanged ( QListViewItem *  item  )  [private, slot]

Definition at line 229 of file listview.cpp.

Referenced by ListView(), and on_mouseButtonPressed().

void on_mouseButtonPressed ( int  b,
QListViewItem *  item,
const QPoint &  ,
int   
) [private, slot]

Definition at line 240 of file listview.cpp.

Referenced by ListView().

void on_clicked ( QListViewItem *   )  [private, slot]

Definition at line 257 of file listview.cpp.

Referenced by ListView().

void on_onItem ( QListViewItem *   )  [private, slot]

Definition at line 262 of file listview.cpp.

Referenced by ListView().

void setupListView ( const QFont &  fnt  )  [private]

Definition at line 54 of file listview.cpp.

Referenced by ListView().

bool filterRightButtonPressed ( QMouseEvent *  e  )  [private]

Definition at line 311 of file listview.cpp.

Referenced by eventFilter().

bool filterDropEvent ( QDropEvent *  e  )  [private]

Definition at line 375 of file listview.cpp.

Referenced by eventFilter().

bool getLaneParentsChilds ( ListViewItem item,
int  x,
SList  p,
SList  c 
) [private]

Definition at line 347 of file listview.cpp.

Referenced by filterRightButtonPressed().

const QString getRefs ( QListViewItem *  item  )  [private]

void setHighlight ( SCRef  diffToSha  )  [private]

Definition at line 166 of file listview.cpp.

Referenced by update().

ListViewItem * findItemSha ( SCRef  sha  )  const [private]

Definition at line 144 of file listview.cpp.

Referenced by setHighlight(), and update().


Member Data Documentation

bool filterNextContextMenuRequest

Definition at line 64 of file listview.h.

Referenced by filterRightButtonPressed(), ListView(), and on_contextMenuRequested().

Domain* d [private]

Definition at line 94 of file listview.h.

Referenced by filterRightButtonPressed(), ListView(), on_clicked(), on_currentChanged(), on_mouseButtonPressed(), and on_onItem().

Git* git [private]

Definition at line 95 of file listview.h.

Referenced by clear(), getLaneParentsChilds(), getSha(), ListView(), on_newRevsAdded(), setupListView(), update(), updateIdValues(), and ~ListView().

QListView* lv [private]

Definition at line 96 of file listview.h.

Referenced by clear(), eventFilter(), filterRightButtonPressed(), findItemSha(), getSelectedItems(), getSha(), ListView(), on_mouseButtonPressed(), on_newRevsAdded(), on_onItem(), on_repaintListViews(), setupListView(), update(), and updateIdValues().

StateInfo* st [private]

Definition at line 97 of file listview.h.

Referenced by filterRightButtonPressed(), ListView(), on_currentChanged(), and update().

FileHistory* fh [private]

Definition at line 98 of file listview.h.

Referenced by clear(), getSha(), ListView(), on_newRevsAdded(), setupListView(), update(), updateIdValues(), and ~ListView().

ListViewItem* lastItem [private]

Definition at line 99 of file listview.h.

Referenced by on_newRevsAdded().

ListViewItem* diffTarget [private]

Definition at line 100 of file listview.h.

Referenced by clear(), and setHighlight().

unsigned long secs [private]

Definition at line 101 of file listview.h.

Referenced by clear(), and on_newRevsAdded().

bool currentChangedEmitted [private]

Definition at line 102 of file listview.h.

Referenced by ListView(), on_currentChanged(), and on_mouseButtonPressed().


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