marble
#include <GeoDataTreeModel.h>

Public Slots | |
| int | addDocument (GeoDataDocument *document) |
| int | addFeature (GeoDataContainer *parent, GeoDataFeature *feature, int row=-1) |
| void | removeDocument (int index) |
| void | removeDocument (GeoDataDocument *document) |
| bool | removeFeature (GeoDataContainer *parent, int index) |
| int | removeFeature (const GeoDataFeature *feature) |
| GeoDataDocument * | rootDocument () |
| void | setRootDocument (GeoDataDocument *document) |
| void | update () |
| void | updateFeature (GeoDataFeature *feature) |
Signals | |
| void | added (GeoDataObject *object) |
| void | removed (GeoDataObject *object) |
Public Member Functions | |
| GeoDataTreeModel (QObject *parent=0) | |
| ~GeoDataTreeModel () | |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| QVariant | data (const QModelIndex &index, int role) const |
| Qt::ItemFlags | flags (const QModelIndex &index) const |
| virtual bool | hasChildren (const QModelIndex &parent) const |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
| QModelIndex | index (GeoDataObject *object) |
| QModelIndex | parent (const QModelIndex &index) const |
| void | reset () |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| QItemSelectionModel * | selectionModel () |
| bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
Detailed Description
The representation of GeoData in a model This class represents all available data given by kml-data files.
Definition at line 32 of file GeoDataTreeModel.h.
Constructor & Destructor Documentation
|
explicit |
Creates a new GeoDataTreeModel.
- Parameters
-
parent The parent object.
Definition at line 78 of file GeoDataTreeModel.cpp.
| GeoDataTreeModel::~GeoDataTreeModel | ( | ) |
Destroys the GeoDataModel.
Definition at line 84 of file GeoDataTreeModel.cpp.
Member Function Documentation
|
slot |
Definition at line 595 of file GeoDataTreeModel.cpp.
|
signal |
|
slot |
Definition at line 566 of file GeoDataTreeModel.cpp.
| int GeoDataTreeModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 419 of file GeoDataTreeModel.cpp.
| QVariant GeoDataTreeModel::data | ( | const QModelIndex & | index, |
| int | role | ||
| ) | const |
Definition at line 198 of file GeoDataTreeModel.cpp.
| Qt::ItemFlags GeoDataTreeModel::flags | ( | const QModelIndex & | index | ) | const |
Definition at line 455 of file GeoDataTreeModel.cpp.
|
virtual |
Definition at line 89 of file GeoDataTreeModel.cpp.
| QVariant GeoDataTreeModel::headerData | ( | int | section, |
| Qt::Orientation | orientation, | ||
| int | role = Qt::DisplayRole |
||
| ) | const |
Definition at line 175 of file GeoDataTreeModel.cpp.
| QModelIndex GeoDataTreeModel::index | ( | int | row, |
| int | column, | ||
| const QModelIndex & | parent = QModelIndex() |
||
| ) | const |
Definition at line 313 of file GeoDataTreeModel.cpp.
| QModelIndex GeoDataTreeModel::index | ( | GeoDataObject * | object | ) |
Definition at line 489 of file GeoDataTreeModel.cpp.
| QModelIndex GeoDataTreeModel::parent | ( | const QModelIndex & | index | ) | const |
parentObject can be a container, placemark or multigeometry
Definition at line 360 of file GeoDataTreeModel.cpp.
|
signal |
insert and remove row don't trigger any signal that proxies forward this signal will refresh geometry layer and placemark layout
|
slot |
Definition at line 646 of file GeoDataTreeModel.cpp.
|
slot |
Definition at line 651 of file GeoDataTreeModel.cpp.
|
slot |
Definition at line 600 of file GeoDataTreeModel.cpp.
|
slot |
Definition at line 613 of file GeoDataTreeModel.cpp.
|
inline |
Definition at line 75 of file GeoDataTreeModel.h.
|
slot |
Definition at line 675 of file GeoDataTreeModel.cpp.
| int GeoDataTreeModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Return the number of Items in the Model.
Definition at line 125 of file GeoDataTreeModel.cpp.
| QItemSelectionModel * GeoDataTreeModel::selectionModel | ( | ) |
Definition at line 561 of file GeoDataTreeModel.cpp.
| bool GeoDataTreeModel::setData | ( | const QModelIndex & | index, |
| const QVariant & | value, | ||
| int | role = Qt::EditRole |
||
| ) |
Definition at line 424 of file GeoDataTreeModel.cpp.
|
slot |
Sets the root document to use.
This replaces previously loaded data, if any.
- Parameters
-
document The new root document. Ownership retains with the caller, i.e. GeoDataTreeModel will not delete the passed document at its destruction.
Definition at line 663 of file GeoDataTreeModel.cpp.
|
slot |
Definition at line 656 of file GeoDataTreeModel.cpp.
|
slot |
Definition at line 638 of file GeoDataTreeModel.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference