marble
GeoDataTreeModel.cpp
Go to the documentation of this file.
393 // << parentObject->nodeType() << "[" << greatparentContainer->childPosition( parentFeature ) << "](" << parentObject << ")";
399 // GeoDataPlacemark *greatparentPlacemark = static_cast<GeoDataPlacemark*>( greatParentObject );
407 GeoDataMultiGeometry *greatparentMultiGeo = static_cast<GeoDataMultiGeometry*>( greatParentObject );
410 // << parentObject->nodeType() << "[" << greatParentItem->childPosition( parentGeometry ) << "](" << parentObject << ")";
476 return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsUserCheckable | Qt::ItemIsEditable;;
525 itdown = index( d->m_rootDocument->childPosition( static_cast<GeoDataFeature*>( ancestors.last() ) ),0,QModelIndex());//Iterator to go top down
537 itdown = index( static_cast<GeoDataContainer*>(parent)->childPosition( static_cast<GeoDataFeature*>( ancestors.last() ) ) , 0, itdown );
550 itdown = index( static_cast<GeoDataMultiGeometry*>(parent)->childPosition( static_cast<GeoDataGeometry*>(ancestors.last()) ) , 0, itdown );
588 qWarning() << "GeoDataTreeModel::addFeature (parent " << parent << " - feature" << feature << ") : parent not found on the TreeModel";
591 qWarning() << "Null pointer in call to GeoDataTreeModel::addFeature (parent " << parent << " - feature" << feature << ")";
virtual const char * nodeType() const
Provides type information for downcasting a GeoData.
Definition: GeoDataGeometry.cpp:77
const char * GeoDataMultiGeometryType
Definition: GeoDataTypes.cpp:56
int addFeature(GeoDataContainer *parent, GeoDataFeature *feature, int row=-1)
Definition: GeoDataTreeModel.cpp:566
const char * GeoDataLinearRingType
Definition: GeoDataTypes.cpp:48
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:64
const char * GeoDataPolygonType
Definition: GeoDataTypes.cpp:65
GeoDataDocument * rootDocument()
Definition: GeoDataTreeModel.cpp:675
void setRootDocument(GeoDataDocument *document)
Sets the root document to use.
Definition: GeoDataTreeModel.cpp:663
GeoDataGeometry * child(int)
returns the requested child item
Definition: GeoDataMultiGeometry.cpp:154
int columnCount(const QModelIndex &parent=QModelIndex()) const
Definition: GeoDataTreeModel.cpp:419
const char * GeoDataPlacemarkType
Definition: GeoDataTypes.cpp:62
const char * GeoDataDocumentType
Definition: GeoDataTypes.cpp:34
bool removeFeature(GeoDataContainer *parent, int index)
Definition: GeoDataTreeModel.cpp:600
virtual GeoDataObject * parent() const
Provides the parent of the object in GeoDataContainers.
Definition: GeoDataObject.cpp:65
bool isVisible() const
Return whether this feature is visible or not.
Definition: GeoDataFeature.cpp:581
A base class that can hold GeoDataFeatures.
Definition: GeoDataContainer.h:47
QString description() const
Return the text description of the feature.
Definition: GeoDataFeature.cpp:513
GeoDataCoordinates coordinate(const QDateTime &dateTime=QDateTime(), bool *iconAtCoordinates=0) const
Return the coordinates of the placemark at time dateTime as a GeoDataCoordinates. ...
Definition: GeoDataPlacemark.cpp:78
const GeoDataStyle * style() const
Return the style assigned to the placemark.
Definition: GeoDataFeature.cpp:624
QVariant data(const QModelIndex &index, int role) const
Definition: GeoDataTreeModel.cpp:198
int zoomLevel() const
Return the popularity index of the placemark.
Definition: GeoDataFeature.cpp:707
void added(GeoDataObject *object)
The pointer to a specific object.
Definition: MarblePlacemarkModel.h:62
GeoDataGeometry * geometry() const
The geometry of the GeoDataPlacemark is to be rendered to the marble map along with the icon at the c...
Definition: GeoDataPlacemark.cpp:63
GeoDataTreeModel(QObject *parent=0)
Creates a new GeoDataTreeModel.
Definition: GeoDataTreeModel.cpp:78
int addDocument(GeoDataDocument *document)
Definition: GeoDataTreeModel.cpp:595
virtual const char * nodeType() const =0
Provides type information for downcasting a GeoNode.
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
Definition: GeoDataTreeModel.cpp:424
virtual bool hasChildren(const QModelIndex &parent) const
Definition: GeoDataTreeModel.cpp:89
void setName(const QString &value)
Set a new name for this feature.
Definition: GeoDataFeature.cpp:485
void removeDocument(int index)
Definition: GeoDataTreeModel.cpp:646
Definition: GeoDataDocument.h:42
const char * GeoDataFolderType
Definition: GeoDataTypes.cpp:38
DocumentRole documentRole() const
Definition: GeoDataDocument.cpp:57
void removed(GeoDataObject *object)
insert and remove row don't trigger any signal that proxies forward this signal will refresh geometry...
GeoDataIconStyle & iconStyle() const
Return the icon style of this style.
Definition: GeoDataStyle.cpp:113
QModelIndex parent(const QModelIndex &index) const
Definition: GeoDataTreeModel.cpp:360
void insert(GeoDataFeature *other, int index)
Definition: GeoDataContainer.cpp:158
const char * GeoDataLineStringType
Definition: GeoDataTypes.cpp:49
void updateFeature(GeoDataFeature *feature)
Definition: GeoDataTreeModel.cpp:638
int childPosition(const GeoDataFeature *child) const
returns the position of an item in the list
Definition: GeoDataContainer.cpp:145
bool isGloballyVisible() const
Return whether this feature is visible or not in the context of its parenting.
Definition: GeoDataFeature.cpp:592
The popularity index.
Definition: MarblePlacemarkModel.h:60
The GeoDataCoordinates coordinate.
Definition: MarblePlacemarkModel.h:53
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Definition: GeoDataTreeModel.cpp:175
QVector< GeoDataFeature * > featureList() const
A convenience function that returns all features in this container.
Definition: GeoDataContainer.cpp:124
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: GeoDataTreeModel.cpp:313
Qt::ItemFlags flags(const QModelIndex &index) const
Definition: GeoDataTreeModel.cpp:455
int rowCount(const QModelIndex &parent=QModelIndex()) const
Return the number of Items in the Model.
Definition: GeoDataTreeModel.cpp:125
int childPosition(GeoDataGeometry *child)
returns the position of an item in the list
Definition: GeoDataMultiGeometry.cpp:167
virtual const char * nodeType() const
Provides type information for downcasting a GeoData.
Definition: GeoDataFeature.cpp:94
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
QItemSelectionModel * selectionModel()
Definition: GeoDataTreeModel.cpp:561
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.