QGIS API Documentation  2.99.0-Master (37c43df)
Public Member Functions | Protected Attributes | List of all members
QgsCptCityColorRampItem Class Reference

Item that represents a layer that can be opened with one of the providers. More...

#include <qgscptcityarchive.h>

Inheritance diagram for QgsCptCityColorRampItem:
Inheritance graph
[legend]

Public Member Functions

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

Protected Attributes

QList< QIcon > mIcons
 
bool mInitialised
 
QgsCptCityColorRamp mRamp
 
- Protected Attributes inherited from QgsCptCityDataItem
QVector< QgsCptCityDataItem * > mChildren
 
QIcon mIcon
 
QString mInfo
 
QString mName
 
QgsCptCityDataItemmParent
 
QString mPath
 
bool mPopulated
 
QString mShortInfo
 
QString mToolTip
 
Type mType
 
bool mValid
 

Additional Inherited Members

- Public Types inherited from QgsCptCityDataItem
enum  Type {
  ColorRamp, Collection, Directory, Selection,
  AllRamps
}
 
- Signals inherited from QgsCptCityDataItem
void beginInsertItems (QgsCptCityDataItem *parent, int first, int last)
 
void beginRemoveItems (QgsCptCityDataItem *parent, int first, int last)
 
void endInsertItems ()
 
void endRemoveItems ()
 
- Static Public Member Functions inherited from QgsCptCityDataItem
static int findItem (QVector< QgsCptCityDataItem *> items, QgsCptCityDataItem *item)
 

Detailed Description

Item that represents a layer that can be opened with one of the providers.

Definition at line 201 of file qgscptcityarchive.h.

Constructor & Destructor Documentation

§ QgsCptCityColorRampItem() [1/2]

QgsCptCityColorRampItem::QgsCptCityColorRampItem ( QgsCptCityDataItem parent,
const QString &  name,
const QString &  path,
const QString &  variantName = QString(),
bool  initialize = false 
)

Definition at line 687 of file qgscptcityarchive.cpp.

§ QgsCptCityColorRampItem() [2/2]

QgsCptCityColorRampItem::QgsCptCityColorRampItem ( QgsCptCityDataItem parent,
const QString &  name,
const QString &  path,
const QStringList &  variantList,
bool  initialize = false 
)

Definition at line 699 of file qgscptcityarchive.cpp.

§ ~QgsCptCityColorRampItem()

QgsCptCityColorRampItem::~QgsCptCityColorRampItem ( )
inline

Definition at line 213 of file qgscptcityarchive.h.

Member Function Documentation

§ equal()

bool QgsCptCityColorRampItem::equal ( const QgsCptCityDataItem other)
overridevirtual

Reimplemented from QgsCptCityDataItem.

Definition at line 767 of file qgscptcityarchive.cpp.

§ icon() [1/2]

QIcon QgsCptCityColorRampItem::icon ( )
overridevirtual

Reimplemented from QgsCptCityDataItem.

Definition at line 782 of file qgscptcityarchive.cpp.

§ icon() [2/2]

QIcon QgsCptCityColorRampItem::icon ( QSize  size)
overridevirtual

Reimplemented from QgsCptCityDataItem.

Definition at line 787 of file qgscptcityarchive.cpp.

§ init()

void QgsCptCityColorRampItem::init ( )

Definition at line 712 of file qgscptcityarchive.cpp.

§ leafCount()

virtual int QgsCptCityColorRampItem::leafCount ( ) const
inlineoverridevirtual

Reimplemented from QgsCptCityDataItem.

Definition at line 218 of file qgscptcityarchive.h.

§ ramp()

const QgsCptCityColorRamp& QgsCptCityColorRampItem::ramp ( ) const
inline

Definition at line 221 of file qgscptcityarchive.h.

Member Data Documentation

§ mIcons

QList< QIcon > QgsCptCityColorRampItem::mIcons
protected

Definition at line 230 of file qgscptcityarchive.h.

§ mInitialised

bool QgsCptCityColorRampItem::mInitialised
protected

Definition at line 228 of file qgscptcityarchive.h.

§ mRamp

QgsCptCityColorRamp QgsCptCityColorRampItem::mRamp
protected

Definition at line 229 of file qgscptcityarchive.h.


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