KDevelop API Documentation

filetreeview::FileTreeViewItem Class Reference

#include <fileitemfactory.h>

Inheritance diagram for filetreeview::FileTreeViewItem:

Inheritance graph
[legend]
Collaboration diagram for filetreeview::FileTreeViewItem:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int alignment)
FileTreeWidgetlistView () const
void hideOrShow ()
bool isProjectFile () const
bool setProjectFile (QString const &path, bool pf)

Protected Member Functions

 FileTreeViewItem (KFileTreeViewItem *parent, KFileItem *item, KFileTreeBranch *branch, bool pf)
 FileTreeViewItem (KFileTreeView *parent, KFileItem *item, KFileTreeBranch *branch)
virtual ~FileTreeViewItem ()
virtual int compare (QListViewItem *i, int col, bool ascending) const

Private Attributes

bool m_isProjectFile

Friends

class FileTreeBranchItem

Detailed Description

Author:
KDevelop Authors

Definition at line 27 of file fileitemfactory.h.


Constructor & Destructor Documentation

filetreeview::FileTreeViewItem::FileTreeViewItem KFileTreeViewItem parent,
KFileItem item,
KFileTreeBranch branch,
bool  pf
[inline, protected]
 

Definition at line 31 of file fileitemfactory.h.

filetreeview::FileTreeViewItem::FileTreeViewItem KFileTreeView parent,
KFileItem item,
KFileTreeBranch branch
[inline, protected]
 

Definition at line 36 of file fileitemfactory.h.

virtual filetreeview::FileTreeViewItem::~FileTreeViewItem  )  [inline, protected, virtual]
 

Definition at line 41 of file fileitemfactory.h.


Member Function Documentation

int FileTreeViewItem::compare QListViewItem i,
int  col,
bool  ascending
const [protected, virtual]
 

Definition at line 88 of file fileitemfactory.cpp.

References KFileTreeViewItem::isDir().

void FileTreeViewItem::hideOrShow  ) 
 

Definition at line 31 of file fileitemfactory.cpp.

References kdDebug(), listView(), and KFileTreeViewItem::path().

Referenced by FileTreeWidget::hideOrShow().

bool filetreeview::FileTreeViewItem::isProjectFile  )  const [inline]
 

Definition at line 47 of file fileitemfactory.h.

Referenced by paintCell(), and FileTreeWidget::shouldBeShown().

FileTreeWidget * FileTreeViewItem::listView  )  const
 

Definition at line 24 of file fileitemfactory.cpp.

Referenced by hideOrShow(), paintCell(), and setProjectFile().

void FileTreeViewItem::paintCell QPainter p,
const QColorGroup cg,
int  column,
int  width,
int  alignment
[virtual]
 

Reimplemented from KListViewItem.

Reimplemented in VCSFileTreeViewItem.

Definition at line 72 of file fileitemfactory.cpp.

References isProjectFile(), listView(), and FileTreeWidget::showNonProjectFiles().

bool FileTreeViewItem::setProjectFile QString const &  path,
bool  pf
 

Definition at line 47 of file fileitemfactory.cpp.

References kdDebug(), listView(), m_isProjectFile, and KFileTreeViewItem::path().

Referenced by FileTreeWidget::addProjectFiles(), and FileTreeWidget::removeProjectFiles().


Friends And Related Function Documentation

friend class FileTreeBranchItem [friend]
 

Definition at line 29 of file fileitemfactory.h.


Member Data Documentation

bool filetreeview::FileTreeViewItem::m_isProjectFile [private]
 

Definition at line 54 of file fileitemfactory.h.

Referenced by setProjectFile().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:50:25 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003