• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • Marble
  • GeoDataTreeModel
Public Slots | Signals | Public Member Functions | List of all members
Marble::GeoDataTreeModel Class Reference

#include <GeoDataTreeModel.h>

Inheritance diagram for Marble::GeoDataTreeModel:
Inheritance graph
[legend]

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

GeoDataTreeModel::GeoDataTreeModel ( QObject *  parent = 0)
explicit

Creates a new GeoDataTreeModel.

Parameters
parentThe 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

int GeoDataTreeModel::addDocument ( GeoDataDocument *  document)
slot

Definition at line 595 of file GeoDataTreeModel.cpp.

void Marble::GeoDataTreeModel::added ( GeoDataObject *  object)
signal
int GeoDataTreeModel::addFeature ( GeoDataContainer *  parent,
GeoDataFeature *  feature,
int  row = -1 
)
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.

bool GeoDataTreeModel::hasChildren ( const QModelIndex &  parent) const
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.

void Marble::GeoDataTreeModel::removed ( GeoDataObject *  object)
signal

insert and remove row don't trigger any signal that proxies forward this signal will refresh geometry layer and placemark layout

void GeoDataTreeModel::removeDocument ( int  index)
slot

Definition at line 646 of file GeoDataTreeModel.cpp.

void GeoDataTreeModel::removeDocument ( GeoDataDocument *  document)
slot

Definition at line 651 of file GeoDataTreeModel.cpp.

bool GeoDataTreeModel::removeFeature ( GeoDataContainer *  parent,
int  index 
)
slot

Definition at line 600 of file GeoDataTreeModel.cpp.

int GeoDataTreeModel::removeFeature ( const GeoDataFeature *  feature)
slot

Definition at line 613 of file GeoDataTreeModel.cpp.

void Marble::GeoDataTreeModel::reset ( )
inline

Definition at line 75 of file GeoDataTreeModel.h.

GeoDataDocument * GeoDataTreeModel::rootDocument ( )
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.

void GeoDataTreeModel::setRootDocument ( GeoDataDocument *  document)
slot

Sets the root document to use.

This replaces previously loaded data, if any.

Parameters
documentThe 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.

void GeoDataTreeModel::update ( )
slot

Definition at line 656 of file GeoDataTreeModel.cpp.

void GeoDataTreeModel::updateFeature ( GeoDataFeature *  feature)
slot

Definition at line 638 of file GeoDataTreeModel.cpp.


The documentation for this class was generated from the following files:
  • GeoDataTreeModel.h
  • GeoDataTreeModel.cpp
This file is part of the KDE documentation.
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.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal