diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-09-02 14:37:25 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-09-04 07:46:35 -0700 |
commit | 4bb180b1178d293de4c55099a23d70d385e517d9 (patch) | |
tree | edaaf92a914f94e093443e3bfef38b135d932b3d /desktop-widgets/marble | |
parent | a7d8e0d18748fdf72f5d43cceec945c6add74294 (diff) | |
download | subsurface-4bb180b1178d293de4c55099a23d70d385e517d9.tar.gz |
remove Marble from the source tree
In desktop-widgets, remove globe.cpp, globe.h and also remove
the NO_MARBLE macro usage.
At this point the MapWidget will always be created and there will
always be a map in the application.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'desktop-widgets/marble')
-rw-r--r-- | desktop-widgets/marble/GeoDataTreeModel.h | 119 |
1 files changed, 0 insertions, 119 deletions
diff --git a/desktop-widgets/marble/GeoDataTreeModel.h b/desktop-widgets/marble/GeoDataTreeModel.h deleted file mode 100644 index b6d36b5c3..000000000 --- a/desktop-widgets/marble/GeoDataTreeModel.h +++ /dev/null @@ -1,119 +0,0 @@ -// SPDX-License-Identifier: LGPL-2.1+ -// -// This file is part of the Marble Virtual Globe. -// -// This program is free software licensed under the GNU LGPL. You can -// find a copy of this license in LICENSE.txt in the top directory of -// the source code. -// -// Copyright 2010 Thibaut Gridel <tgridel@free.fr> -// - -#ifndef MARBLE_GEODATATREEMODEL_H -#define MARBLE_GEODATATREEMODEL_H - -// -> does not appear to be needed #include "marble_export.h" - -#include <QAbstractItemModel> - -class QItemSelectionModel; - -namespace Marble -{ -class GeoDataObject; -class GeoDataDocument; -class GeoDataFeature; -class GeoDataContainer; - - -/** - * @short The representation of GeoData in a model - * This class represents all available data given by kml-data files. - */ -class MARBLE_EXPORT GeoDataTreeModel : public QAbstractItemModel -{ - Q_OBJECT - - public: - - /** - * Creates a new GeoDataTreeModel. - * - * @param parent The parent object. - */ - explicit GeoDataTreeModel( QObject *parent = 0 ); - - /** - * Destroys the GeoDataModel. - */ - ~GeoDataTreeModel(); - - virtual bool hasChildren( const QModelIndex &parent ) const; - - /** - * Return the number of Items in the Model. - */ - int rowCount( const QModelIndex &parent = QModelIndex() ) const; - - QVariant headerData(int section, Qt::Orientation orientation, - int role = Qt::DisplayRole) const; - - QVariant data( const QModelIndex &index, int role ) const; - - QModelIndex index( int row, int column, - const QModelIndex &parent = QModelIndex() ) const; - - QModelIndex index( GeoDataObject* object ); - - QModelIndex parent( const QModelIndex &index ) const; - - int columnCount( const QModelIndex &parent = QModelIndex() ) const; - - Qt::ItemFlags flags ( const QModelIndex & index ) const; - - bool setData ( const QModelIndex & index, const QVariant & value, int role = Qt::EditRole ); - - void reset(); - - QItemSelectionModel *selectionModel(); - -public Q_SLOTS: - - /** - * Sets the root document to use. This replaces previously loaded data, if any. - * @param document The new root document. Ownership retains with the caller, - * i.e. GeoDataTreeModel will not delete the passed document at its destruction. - */ - void setRootDocument( GeoDataDocument *document ); - GeoDataDocument* rootDocument(); - - int addFeature( GeoDataContainer *parent, GeoDataFeature *feature, int row = -1 ); - - bool removeFeature( GeoDataContainer *parent, int index ); - - int removeFeature( const GeoDataFeature *feature ); - - void updateFeature( GeoDataFeature *feature ); - - int addDocument( GeoDataDocument *document ); - - void removeDocument( int index ); - - void removeDocument( GeoDataDocument* document ); - - void update(); - -Q_SIGNALS: - /// insert and remove row don't trigger any signal that proxies forward - /// this signal will refresh geometry layer and placemark layout - void removed( GeoDataObject *object ); - void added( GeoDataObject *object ); - private: - Q_DISABLE_COPY( GeoDataTreeModel ) - class Private; - Private* const d; -}; - -} - -#endif // MARBLE_GEODATATREEMODEL_H |