Logo Search packages:      
Sourcecode: kdeaddons version File versions

Inode Class Reference

#include <inode.h>

Inheritance diagram for Inode:

TreeMapItem ScanListener DrawParams

List of all members.

Detailed Description

A specialized version of a TreeMapItem for representation of an Directory or File.

These are dynamically created on drawing. The real breadth-first scanning of the filesystem uses ScanDir:scan.

Definition at line 45 of file inode.h.

Public Types

enum  Position {
  TopLeft, TopCenter, TopRight, BottomLeft,
  BottomCenter, BottomRight, Default, Unknown
enum  SplitMode {
  Bisection, Columns, Rows, AlwaysBest,
  Best, HAlternate, VAlternate, Horizontal,

Public Member Functions

void addFreeRect (const QRect &r)
void addItem (TreeMapItem *)
QColor backColor () const
virtual int borderWidth () const
TreeMapItemList * children ()
void clear ()
void clearFreeRects ()
void clearItemRect ()
TreeMapItemcommonParent (TreeMapItem *item)
bool current () const
int depth () const
void destroyed (ScanFile *)
void destroyed (ScanDir *)
unsigned int dirCount () const
ScanDirdirPeer ()
int fieldCount () const
unsigned int fileCount () const
const QFileInfo & fileInfo () const
ScanFile * filePeer ()
virtual const QFont & font () const
QPtrList< QRect > * freeRects () const
int height () const
int index () const
void init (const QString &)
bool initialized ()
 Inode (ScanFile *, Inode *)
 Inode (ScanDir *, Inode *)
bool isChildOf (TreeMapItem *)
bool isDir ()
virtual bool isMarked (int) const
const QRect & itemRect () const
int maxLines (int) const
KMimeType::Ptr mimeType () const
TreeMapItemparent () const
QStringList path (int) const
QString path () const
QPixmap pixmap (int i) const
virtual Position position (int) const
void redraw ()
void refresh ()
void resort (bool recursive=true)
bool rotated () const
virtual int rtti () const
void scanFinished (ScanDir *)
virtual void scanStarted (ScanDir *)
bool selected () const
void setBackColor (QColor c)
void setCurrent (bool b)
void setField (int f, QString t, QPixmap pm=QPixmap(), Position p=Default, int maxLines=0)
void setIndex (int i)
void setItemRect (const QRect &r)
void setMaxLines (int f, int)
void setParent (TreeMapItem *p)
void setPeer (ScanDir *)
void setPixmap (int f, QPixmap)
void setPosition (int f, Position)
void setRotated (bool b)
void setSelected (bool b)
void setShaded (bool b)
void setSorting (int textNo, bool ascending=true)
void setSum (double s)
void setText (int f, QString)
void setValue (double s)
void setWidget (TreeMapWidget *w)
bool shaded () const
double size () const
void sizeChanged (ScanDir *)
virtual int sorting (bool *ascending) const
virtual SplitMode splitMode () const
virtual double sum () const
QString text (int i) const
double value () const
TreeMapWidgetwidget () const
int width () const

Protected Attributes

QColor _backColor
TreeMapItemList * _children
bool _current
bool _rotated
bool _selected
bool _shaded
double _sum
double _value

Private Member Functions

void setMetrics (double, unsigned int)

Private Attributes

unsigned int _dirCountEstimation
unsigned int _fileCountEstimation
ScanFile * _filePeer
QFileInfo _info
QPixmap _mimePixmap
bool _mimePixmapSet
bool _mimeSet
KMimeType::Ptr _mimeType
bool _resortNeeded
double _sizeEstimation

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index