QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
QgsCptCityDataItem Class Reference

base class for all items in the model More...

#include <qgscptcityarchive.h>

Inheritance diagram for QgsCptCityDataItem:
Inheritance graph
[legend]

Public Types

enum  Type {
  ColorRamp, Collection, Directory, Selection,
  AllRamps
}

Public Slots

void emitBeginInsertItems (QgsCptCityDataItem *parent, int first, int last)
void emitEndInsertItems ()
void emitBeginRemoveItems (QgsCptCityDataItem *parent, int first, int last)
void emitEndRemoveItems ()

Signals

void beginInsertItems (QgsCptCityDataItem *parent, int first, int last)
void endInsertItems ()
void beginRemoveItems (QgsCptCityDataItem *parent, int first, int last)
void endRemoveItems ()

Public Member Functions

 QgsCptCityDataItem (QgsCptCityDataItem::Type type, QgsCptCityDataItem *parent, QString name, QString path)
virtual ~QgsCptCityDataItem ()
bool hasChildren ()
int rowCount ()
virtual int leafCount () const
virtual void refresh ()
virtual QVector
< QgsCptCityDataItem * > 
createChildren ()
virtual void populate ()
bool isPopulated ()
virtual void addChildItem (QgsCptCityDataItem *child, bool refresh=false)
virtual void deleteChildItem (QgsCptCityDataItem *child)
virtual QgsCptCityDataItemremoveChildItem (QgsCptCityDataItem *child)
virtual bool equal (const QgsCptCityDataItem *other)
virtual QWidget * paramWidget ()
virtual QList< QAction * > actions ()
virtual bool acceptDrop ()
virtual bool handleDrop (const QMimeData *, Qt::DropAction)
Type type () const
QgsCptCityDataItemparent () const
void setParent (QgsCptCityDataItem *parent)
QVector< QgsCptCityDataItem * > children () const
virtual QIcon icon ()
virtual QIcon icon (const QSize &size)
QString name () const
QString path () const
QString info () const
QString shortInfo () const
void setIcon (QIcon icon)
void setToolTip (QString msg)
QString toolTip () const
bool isValid ()

Static Public Member Functions

static int findItem (QVector< QgsCptCityDataItem * > items, QgsCptCityDataItem *item)

Protected Attributes

Type mType
QgsCptCityDataItemmParent
QVector< QgsCptCityDataItem * > mChildren
bool mPopulated
QString mName
QString mPath
QString mInfo
QString mShortInfo
QString mToolTip
QIcon mIcon
bool mValid

Detailed Description

base class for all items in the model

Member Enumeration Documentation

Enumerator:
ColorRamp 
Collection 
Directory 
Selection 
AllRamps 

Constructor & Destructor Documentation

QgsCptCityDataItem::QgsCptCityDataItem ( QgsCptCityDataItem::Type  type,
QgsCptCityDataItem parent,
QString  name,
QString  path 
)
QgsCptCityDataItem::~QgsCptCityDataItem ( )
virtual

Member Function Documentation

virtual bool QgsCptCityDataItem::acceptDrop ( )
inlinevirtual
virtual QList<QAction*> QgsCptCityDataItem::actions ( )
inlinevirtual
void QgsCptCityDataItem::addChildItem ( QgsCptCityDataItem child,
bool  refresh = false 
)
virtual
void QgsCptCityDataItem::beginInsertItems ( QgsCptCityDataItem parent,
int  first,
int  last 
)
signal
void QgsCptCityDataItem::beginRemoveItems ( QgsCptCityDataItem parent,
int  first,
int  last 
)
signal
QVector<QgsCptCityDataItem*> QgsCptCityDataItem::children ( ) const
inline
QVector< QgsCptCityDataItem * > QgsCptCityDataItem::createChildren ( )
virtual
void QgsCptCityDataItem::deleteChildItem ( QgsCptCityDataItem child)
virtual
void QgsCptCityDataItem::emitBeginInsertItems ( QgsCptCityDataItem parent,
int  first,
int  last 
)
slot
void QgsCptCityDataItem::emitBeginRemoveItems ( QgsCptCityDataItem parent,
int  first,
int  last 
)
slot
void QgsCptCityDataItem::emitEndInsertItems ( )
slot
void QgsCptCityDataItem::emitEndRemoveItems ( )
slot
void QgsCptCityDataItem::endInsertItems ( )
signal
void QgsCptCityDataItem::endRemoveItems ( )
signal
bool QgsCptCityDataItem::equal ( const QgsCptCityDataItem other)
virtual
int QgsCptCityDataItem::findItem ( QVector< QgsCptCityDataItem * >  items,
QgsCptCityDataItem item 
)
static
virtual bool QgsCptCityDataItem::handleDrop ( const QMimeData *  ,
Qt::DropAction   
)
inlinevirtual
bool QgsCptCityDataItem::hasChildren ( )
virtual QIcon QgsCptCityDataItem::icon ( )
inlinevirtual

Reimplemented in QgsCptCityColorRampItem.

virtual QIcon QgsCptCityDataItem::icon ( const QSize &  size)
inlinevirtual

Reimplemented in QgsCptCityColorRampItem.

QString QgsCptCityDataItem::info ( ) const
inline
bool QgsCptCityDataItem::isPopulated ( )
inline
bool QgsCptCityDataItem::isValid ( )
inline
int QgsCptCityDataItem::leafCount ( ) const
virtual

Reimplemented in QgsCptCityColorRampItem.

QString QgsCptCityDataItem::name ( ) const
inline
virtual QWidget* QgsCptCityDataItem::paramWidget ( )
inlinevirtual
QgsCptCityDataItem* QgsCptCityDataItem::parent ( ) const
inline
QString QgsCptCityDataItem::path ( ) const
inline
void QgsCptCityDataItem::populate ( )
virtual
void QgsCptCityDataItem::refresh ( )
virtual
QgsCptCityDataItem * QgsCptCityDataItem::removeChildItem ( QgsCptCityDataItem child)
virtual
int QgsCptCityDataItem::rowCount ( )
void QgsCptCityDataItem::setIcon ( QIcon  icon)
inline
void QgsCptCityDataItem::setParent ( QgsCptCityDataItem parent)
inline
void QgsCptCityDataItem::setToolTip ( QString  msg)
inline
QString QgsCptCityDataItem::shortInfo ( ) const
inline
QString QgsCptCityDataItem::toolTip ( ) const
inline
Type QgsCptCityDataItem::type ( ) const
inline

Member Data Documentation

QVector<QgsCptCityDataItem*> QgsCptCityDataItem::mChildren
protected
QIcon QgsCptCityDataItem::mIcon
protected
QString QgsCptCityDataItem::mInfo
protected
QString QgsCptCityDataItem::mName
protected
QgsCptCityDataItem* QgsCptCityDataItem::mParent
protected
QString QgsCptCityDataItem::mPath
protected
bool QgsCptCityDataItem::mPopulated
protected
QString QgsCptCityDataItem::mShortInfo
protected
QString QgsCptCityDataItem::mToolTip
protected
Type QgsCptCityDataItem::mType
protected
bool QgsCptCityDataItem::mValid
protected

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