casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Slots | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
casa::DirModel Class Reference

#include <dirmodel.qo.h>

List of all members.

Public Slots

void searchKeyChanged (const QString &key="")

Public Member Functions

 DirModel (QDir *data, QObject *parent=0)
 ~DirModel ()
QVariant data (const QModelIndex &index, int role) const
Qt::ItemFlags flags (const QModelIndex &index) const
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
QModelIndex parent (const QModelIndex &index) const
int rowCount (const QModelIndex &parent=QModelIndex()) const
int columnCount (const QModelIndex &parent=QModelIndex()) const
void writeData (QTextStream &os)
QString stringData ()
QString stringData (int row)
bool insert (int, const QString &)
virtual bool removeRows (int row, int count, const QModelIndex &parent=QModelIndex())
virtual bool insertRows (int row, int count, const QModelIndex &parent=QModelIndex())
void appendData (const QString &lines)
QStringList fileType (const QString pathname)
void goTo (QDir *)

Static Public Attributes

static const QStringList cols
static const QColor colors [24]

Private Member Functions

QColor itemColor (const DirItem *)
void setupModelData (QDir *lines, DirItem *parent)

Private Attributes

DirIteminsertItem
DirItemrootItem
QString searchKey

Detailed Description

Definition at line 44 of file dirmodel.qo.h.


Constructor & Destructor Documentation

casa::DirModel::DirModel ( QDir *  data,
QObject *  parent = 0 
)

Member Function Documentation

void casa::DirModel::appendData ( const QString &  lines)
int casa::DirModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
QVariant casa::DirModel::data ( const QModelIndex &  index,
int  role 
) const
QStringList casa::DirModel::fileType ( const QString  pathname)
Qt::ItemFlags casa::DirModel::flags ( const QModelIndex &  index) const
void casa::DirModel::goTo ( QDir *  )
QVariant casa::DirModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
QModelIndex casa::DirModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
bool casa::DirModel::insert ( int  ,
const QString &   
)
virtual bool casa::DirModel::insertRows ( int  row,
int  count,
const QModelIndex &  parent = QModelIndex() 
) [virtual]
QColor casa::DirModel::itemColor ( const DirItem ) [private]
QModelIndex casa::DirModel::parent ( const QModelIndex &  index) const
virtual bool casa::DirModel::removeRows ( int  row,
int  count,
const QModelIndex &  parent = QModelIndex() 
) [virtual]
int casa::DirModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
void casa::DirModel::searchKeyChanged ( const QString &  key = "") [slot]
void casa::DirModel::setupModelData ( QDir *  lines,
DirItem parent 
) [private]
QString casa::DirModel::stringData ( int  row)
void casa::DirModel::writeData ( QTextStream &  os)

Member Data Documentation

const QColor casa::DirModel::colors[24] [static]

Definition at line 53 of file dirmodel.qo.h.

const QStringList casa::DirModel::cols [static]

Definition at line 52 of file dirmodel.qo.h.

Definition at line 79 of file dirmodel.qo.h.

Definition at line 80 of file dirmodel.qo.h.

QString casa::DirModel::searchKey [private]

Definition at line 81 of file dirmodel.qo.h.


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