marble
GeoDataTreeModel.cpp
  
Go to the documentation of this file.
  245                         return QVariant( QString( "%1 (%2)" ).arg( placemark->name() ).arg( placemark->countryCode() ) );
  416                 return container->customStyle() ? QVariant( QBrush( container->customStyle()->listStyle().backgroundColor() )) : QVariant();
  516 //                    << parentObject->nodeType() << "[" << greatparentContainer->childPosition( parentFeature ) << "](" << parentObject << ")";
  522 //            GeoDataPlacemark *greatparentPlacemark = static_cast<GeoDataPlacemark*>( greatParentObject );
  530             GeoDataMultiGeometry *greatparentMultiGeo = static_cast<GeoDataMultiGeometry*>( greatParentObject );
  533 //                        << parentObject->nodeType() << "[" << greatParentItem->childPosition( parentGeometry ) << "](" << parentObject << ")";
  637             } else if ( parentfolder->style()->listStyle().listItemType() == GeoDataListStyle::CheckHideChildren ) {
  660         } else if ( folder->style()->listStyle().listItemType() == GeoDataListStyle::CheckHideChildren) {
  673             return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsUserCheckable | Qt::ItemIsEditable;;
  739         itdown = index( d->m_rootDocument->childPosition( static_cast<GeoDataFeature*>( ancestors.last() ) ),0,QModelIndex());//Iterator to go top down
  749                 itdown = index( static_cast<GeoDataContainer*>(parent)->childPosition( static_cast<GeoDataFeature*>( ancestors.last() ) ) , 0, itdown );
  762                 itdown = index( static_cast<GeoDataMultiGeometry*>(parent)->childPosition( static_cast<GeoDataGeometry*>(ancestors.last()) ) , 0, itdown );
  814             qWarning() << "GeoDataTreeModel::addFeature (parent " << parent << " - feature" << feature << ") : parent not found on the TreeModel";
  817         qWarning() << "Null pointer in call to GeoDataTreeModel::addFeature (parent " << parent << " - feature" << feature << ")";
bool hasIndex(int row, int column, const QModelIndex &parent) const
const GeoDataStyle * customStyle() const 
Return the style assigned to the placemark with setStyle (can be 0) 
Definition: GeoDataFeature.cpp:730
virtual const char * nodeType() const 
Provides type information for downcasting a GeoData. 
Definition: GeoDataGeometry.cpp:77
const char * GeoDataMultiGeometryType
Definition: GeoDataTypes.cpp:60
int addFeature(GeoDataContainer *parent, GeoDataFeature *feature, int row=-1)
Definition: GeoDataTreeModel.cpp:792
const char * GeoDataLinearRingType
Definition: GeoDataTypes.cpp:52
A container for Features, Styles and in the future Schemas. 
Definition: GeoDataDocument.h:65
const char * GeoDataLookAtType
Definition: GeoDataTypes.cpp:58
GeoDataTourPrimitive * primitive(int index)
Definition: GeoDataPlaylist.cpp:87
const char * GeoDataPolygonType
Definition: GeoDataTypes.cpp:69
GeoDataDocument * rootDocument()
Definition: GeoDataTreeModel.cpp:901
void setRootDocument(GeoDataDocument *document)
Sets the root document to use. 
Definition: GeoDataTreeModel.cpp:889
GeoDataCoordinates coordinates() const 
retrieve the lat/lon/alt triple as a GeoDataCoordinates object 
Definition: GeoDataCamera.cpp:111
GeoDataGeometry * child(int)
returns the requested child item 
Definition: GeoDataMultiGeometry.cpp:159
int columnCount(const QModelIndex &parent=QModelIndex()) const 
Definition: GeoDataTreeModel.cpp:548
QVector< GeoDataFeature * >::Iterator begin()
Definition: GeoDataContainer.cpp:331
const char * GeoDataPlacemarkType
Definition: GeoDataTypes.cpp:66
const char * GeoDataDocumentType
Definition: GeoDataTypes.cpp:38
bool removeFeature(GeoDataContainer *parent, int index)
Definition: GeoDataTreeModel.cpp:826
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:656
A base class that can hold GeoDataFeatures. 
Definition: GeoDataContainer.h:47
QString description() const 
Return the text description of the feature. 
Definition: GeoDataFeature.cpp:588
Definition: GeoDataCamera.h:22
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:172
const GeoDataStyle * style() const 
Return the style assigned to the placemark, or a default style if none has been set. 
Definition: GeoDataFeature.cpp:709
QVariant data(const QModelIndex &index, int role) const 
Definition: GeoDataTreeModel.cpp:230
int zoomLevel() const 
Return the popularity index of the placemark. 
Definition: GeoDataFeature.cpp:797
Definition: GeoDataTour.h:25
void added(GeoDataObject *object)
The pointer to a specific object. 
Definition: MarblePlacemarkModel.h:62
GeoDataTreeModel(QObject *parent=0)
Creates a new GeoDataTreeModel. 
Definition: GeoDataTreeModel.cpp:85
QString tr(const char *sourceText, const char *disambiguation, int n)
int addDocument(GeoDataDocument *document)
Definition: GeoDataTreeModel.cpp:821
virtual const char * nodeType() const =0
Provides type information for downcasting a GeoNode. 
int size() const
GeoDataGeometry * geometry()
The geometry of the GeoDataPlacemark is to be rendered to the marble map along with the icon at the c...
Definition: GeoDataPlacemark.cpp:152
void beginResetModel()
bool isValid() const
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
Definition: GeoDataTreeModel.cpp:553
void append(const T &value)
virtual bool hasChildren(const QModelIndex &parent) const 
Definition: GeoDataTreeModel.cpp:96
void setName(const QString &value)
Set a new name for this feature. 
Definition: GeoDataFeature.cpp:549
void endInsertRows()
void removeDocument(int index)
Definition: GeoDataTreeModel.cpp:872
Definition: GeoDataFlyTo.h:23
Definition: GeoDataDocument.h:42
bool isEmpty() const
bool isEmpty() const
QColor backgroundColor() const 
Definition: GeoDataListStyle.cpp:100
void beginRemoveRows(const QModelIndex &parent, int first, int last)
const char * GeoDataFolderType
Definition: GeoDataTypes.cpp:42
DocumentRole documentRole() const 
Definition: GeoDataDocument.cpp:81
void removed(GeoDataObject *object)
insert and remove row don't trigger any signal that proxies forward this signal will refresh geometry...
void * internalPointer() const
Definition: GeoDataPlaylist.h:22
void insert(GeoDataFeature *other, int index)
Definition: GeoDataContainer.cpp:265
const char * GeoDataLineStringType
Definition: GeoDataTypes.cpp:53
const char * GeoDataPlaylistType
Definition: GeoDataTypes.cpp:67
void updateFeature(GeoDataFeature *feature)
Definition: GeoDataTreeModel.cpp:864
Definition: GeoDataFolder.h:50
int childPosition(const GeoDataFeature *child) const 
returns the position of an item in the list 
Definition: GeoDataContainer.cpp:252
bool isGloballyVisible() const 
Return whether this feature is visible or not in the context of its parenting. 
Definition: GeoDataFeature.cpp:667
QModelIndex createIndex(int row, int column, void *ptr) const
void beginInsertRows(const QModelIndex &parent, int first, int last)
The popularity index. 
Definition: MarblePlacemarkModel.h:60
Definition: GeoDataLookAt.h:23
The GeoDataCoordinates coordinate. 
Definition: MarblePlacemarkModel.h:53
const char * GeoDataCameraType
Definition: GeoDataTypes.cpp:31
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const 
Definition: GeoDataTreeModel.cpp:207
QVector< GeoDataFeature * >::Iterator end()
Definition: GeoDataContainer.cpp:336
const QString countryCode() const 
Return the country code of the placemark. 
Definition: GeoDataPlacemark.cpp:271
int childPosition(const GeoDataGeometry *child) const 
returns the position of an item in the list 
Definition: GeoDataMultiGeometry.cpp:172
QVector< GeoDataFeature * > featureList() const 
A convenience function that returns all features in this container. 
Definition: GeoDataContainer.cpp:231
ListItemType listItemType() const 
Definition: GeoDataListStyle.cpp:90
T & last()
void removeLast()
int column() const
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const 
Definition: GeoDataTreeModel.cpp:424
bool toBool() const
Qt::ItemFlags flags(const QModelIndex &index) const 
Definition: GeoDataTreeModel.cpp:617
int rowCount(const QModelIndex &parent=QModelIndex()) const 
Return the number of Items in the Model. 
Definition: GeoDataTreeModel.cpp:142
void endRemoveRows()
GeoDataCoordinates coordinates() const 
retrieve the lat/lon/alt triple as a GeoDataCoordinates object 
Definition: GeoDataLookAt.cpp:109
void endResetModel()
QObject * parent() const
virtual const char * nodeType() const 
Provides type information for downcasting a GeoData. 
Definition: GeoDataFeature.cpp:158
QString toString() const
a class representing a point of interest on the map 
Definition: GeoDataPlacemark.h:54
QItemSelectionModel * selectionModel()
Definition: GeoDataTreeModel.cpp:787
typedef ItemFlags
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
            Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
    KDE API Reference