QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
QgsCptCityArchive Class Reference

#include <qgscptcityarchive.h>

Public Member Functions

 QgsCptCityArchive (QString archiveName=DEFAULT_CPTCITY_ARCHIVE, QString baseDir=QString())
 ~QgsCptCityArchive ()
QString baseDir () const
void setBaseDir (QString dirName)
QString copyingFileName (const QString &dirName) const
QString descFileName (const QString &dirName) const
bool isEmpty ()
QString archiveName () const
QVector< QgsCptCityDataItem * > rootItems () const
QVector< QgsCptCityDataItem * > selectionItems () const

Static Public Member Functions

static QString baseDir (QString archiveName)
static QString defaultBaseDir ()
static QString findFileName (const QString &target, const QString &startDir, const QString &baseDir)
static QMap< QString, QString > copyingInfo (const QString &fileName)
static QMap< QString, QString > description (const QString &fileName)
static QMap< double, QPair
< QColor, QColor > > 
gradientColorMap (const QString &fileName)
 note not available in python bindings
static void initArchives (bool loadAll=false)
static void initArchive (QString archiveName, QString archiveBaseDir)
static void initDefaultArchive ()
static void clearArchives ()
static QgsCptCityArchivedefaultArchive ()
static QMap< QString,
QgsCptCityArchive * > 
archiveRegistry ()

Protected Attributes

QString mArchiveName
QString mBaseDir
QVector< QgsCptCityDataItem * > mRootItems
QVector< QgsCptCityDataItem * > mSelectionItems

Static Protected Attributes

static QString mDefaultArchiveName
static QMap< QString,
QgsCptCityArchive * > 
mArchiveRegistry
static QMap< QString, QMap
< QString, QString > > 
mCopyingInfoMap

Detailed Description

Definition at line 33 of file qgscptcityarchive.h.

Constructor & Destructor Documentation

QgsCptCityArchive::QgsCptCityArchive ( QString  archiveName = DEFAULT_CPTCITY_ARCHIVE,
QString  baseDir = QString() 
)

Definition at line 45 of file qgscptcityarchive.cpp.

References QgsCptCityDataItem::isValid(), mBaseDir, mRootItems, mSelectionItems, QgsDebugMsg, and tr.

Referenced by initArchive().

QgsCptCityArchive::~QgsCptCityArchive ( )

Definition at line 90 of file qgscptcityarchive.cpp.

References mRootItems, and mSelectionItems.

Member Function Documentation

QString QgsCptCityArchive::archiveName ( ) const
inline
QMap< QString, QgsCptCityArchive * > QgsCptCityArchive::archiveRegistry ( )
static

Definition at line 42 of file qgscptcityarchive.cpp.

References mArchiveRegistry.

QString QgsCptCityArchive::baseDir ( ) const
QString QgsCptCityArchive::baseDir ( QString  archiveName)
static
void QgsCptCityArchive::clearArchives ( )
static

Definition at line 485 of file qgscptcityarchive.cpp.

References mArchiveRegistry.

QString QgsCptCityArchive::copyingFileName ( const QString &  dirName) const

Definition at line 157 of file qgscptcityarchive.cpp.

References baseDir(), and findFileName().

QgsStringMap QgsCptCityArchive::copyingInfo ( const QString &  fileName)
static

Definition at line 169 of file qgscptcityarchive.cpp.

References mCopyingInfoMap, and QgsDebugMsg.

QgsCptCityArchive * QgsCptCityArchive::defaultArchive ( )
static
QString QgsCptCityArchive::defaultBaseDir ( )
static
QString QgsCptCityArchive::descFileName ( const QString &  dirName) const

Definition at line 163 of file qgscptcityarchive.cpp.

References baseDir(), and findFileName().

QgsStringMap QgsCptCityArchive::description ( const QString &  fileName)
static

Definition at line 270 of file qgscptcityarchive.cpp.

References QgsDebugMsg.

Referenced by QgsCptCityDirectoryItem::QgsCptCityDirectoryItem().

QString QgsCptCityArchive::findFileName ( const QString &  target,
const QString &  startDir,
const QString &  baseDir 
)
static
QMap< double, QPair< QColor, QColor > > QgsCptCityArchive::gradientColorMap ( const QString &  fileName)
static

note not available in python bindings

Definition at line 319 of file qgscptcityarchive.cpp.

References QgsSymbolLayerV2Utils::parseColor(), and QgsDebugMsg.

Referenced by QgsCptCityColorRampV2::loadFile().

void QgsCptCityArchive::initArchive ( QString  archiveName,
QString  archiveBaseDir 
)
static
void QgsCptCityArchive::initArchives ( bool  loadAll = false)
static
void QgsCptCityArchive::initDefaultArchive ( )
static
bool QgsCptCityArchive::isEmpty ( )

Definition at line 407 of file qgscptcityarchive.cpp.

References mRootItems.

QVector< QgsCptCityDataItem* > QgsCptCityArchive::rootItems ( ) const
inline

Definition at line 66 of file qgscptcityarchive.h.

Referenced by QgsCptCityBrowserModel::addRootItems().

QVector<QgsCptCityDataItem*> QgsCptCityArchive::selectionItems ( ) const
inline

Definition at line 67 of file qgscptcityarchive.h.

Referenced by QgsCptCityBrowserModel::addRootItems().

void QgsCptCityArchive::setBaseDir ( QString  dirName)
inline

Definition at line 44 of file qgscptcityarchive.h.

Member Data Documentation

QString QgsCptCityArchive::mArchiveName
protected

Definition at line 71 of file qgscptcityarchive.h.

QMap< QString, QgsCptCityArchive * > QgsCptCityArchive::mArchiveRegistry
staticprotected
QString QgsCptCityArchive::mBaseDir
protected

Definition at line 72 of file qgscptcityarchive.h.

Referenced by baseDir(), and QgsCptCityArchive().

QMap< QString, QMap< QString, QString > > QgsCptCityArchive::mCopyingInfoMap
staticprotected

Definition at line 79 of file qgscptcityarchive.h.

Referenced by copyingInfo().

QString QgsCptCityArchive::mDefaultArchiveName
staticprotected

Definition at line 73 of file qgscptcityarchive.h.

Referenced by defaultArchive(), and initArchives().

QVector< QgsCptCityDataItem* > QgsCptCityArchive::mRootItems
protected

Definition at line 76 of file qgscptcityarchive.h.

Referenced by isEmpty(), QgsCptCityArchive(), and ~QgsCptCityArchive().

QVector<QgsCptCityDataItem*> QgsCptCityArchive::mSelectionItems
protected

Definition at line 77 of file qgscptcityarchive.h.

Referenced by QgsCptCityArchive(), and ~QgsCptCityArchive().


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