Marble
FileViewWidget.cpp
93 connect(this, SIGNAL(centerOn(GeoDataPlacemark, bool)), d->m_widget, SLOT(centerOn(GeoDataPlacemark, bool)));
94 connect(this, SIGNAL(centerOn(GeoDataLatLonBox, bool)), d->m_widget, SLOT(centerOn(GeoDataLatLonBox, bool)));
110 QObject::connect(m_fileViewUi.m_treeView, SIGNAL(expanded(QModelIndex)), &m_treeSortProxy, SLOT(trackExpandedState(QModelIndex)));
111 QObject::connect(m_fileViewUi.m_treeView, SIGNAL(collapsed(QModelIndex)), &m_treeSortProxy, SLOT(trackCollapsedState(QModelIndex)));
112 QObject::connect(m_fileViewUi.m_treeView->selectionModel(), SIGNAL(selectionChanged(QItemSelection, QItemSelection)), q, SLOT(enableFileViewActions()));
113 QObject::connect(m_fileViewUi.m_treeView, SIGNAL(activated(QModelIndex)), q, SLOT(mapCenterOnTreeViewModel(QModelIndex)));
114 QObject::connect(m_fileViewUi.m_treeView, SIGNAL(customContextMenuRequested(QPoint)), q, SLOT(contextMenu(QPoint)));
127 const GeoDataObject *object = index.model()->data(index, MarblePlacemarkModel::ObjectPointerRole).value<GeoDataObject *>();
130 const QString saveFileName = QFileDialog::getSaveFileName(q, QObject::tr("Select filename for KML document"));
131 GeoDataDocumentWriter::write(saveFileName, *document, QString::fromLatin1(kml::kmlTag_nameSpaceOgc22));
138 auto object = index.model()->data(index, MarblePlacemarkModel::ObjectPointerRole).value<GeoDataObject *>();
150 const GeoDataObject *object = index.model()->data(index, MarblePlacemarkModel::ObjectPointerRole).value<GeoDataObject *>();
165 const GeoDataObject *obj = model->data(index, MarblePlacemarkModel::ObjectPointerRole).value<GeoDataObject *>();
179 auto obj = model->data(index, MarblePlacemarkModel::ObjectPointerRole).value<GeoDataObject *>();
195 const GeoDataObject *object = index.model()->data(index, MarblePlacemarkModel::ObjectPointerRole).value<GeoDataObject *>();
197 d->m_widget->model()->placemarkSelectionModel()->select(index, QItemSelectionModel::ClearAndSelect);
This file contains the headers for MarbleModel.
This file contains the headers for MarbleWidget.
The EditPlacemarkDialog class deals with customizing placemarks.
Definition EditPlacemarkDialog.h:24
This class is responsible for loading the different files into Geodata model.
Definition FileManager.h:33
static bool write(QIODevice *device, const GeoDataDocument &document, const QString &documentIdentifier)
Write the content of the given GeoDataDocument to the given I/O device.
Definition GeoDataDocumentWriter.cpp:22
A class that defines a 3D bounding box for geographic data.
Definition GeoDataLatLonAltBox.h:40
A class that defines a 2D bounding box for geographic data.
Definition GeoDataLatLonBox.h:45
a class representing a point of interest on the map
Definition GeoDataPlacemark.h:47
The representation of GeoData in a model This class represents all available data given by kml-data f...
Definition GeoDataTreeModel.h:28
GeoDataTreeModel * treeModel()
Return the list of Placemarks as a QAbstractItemModel *.
Definition MarbleModel.cpp:460
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
T * geodata_cast(GeoDataObject *node)
Returns the given node cast to type T if the node was instantiated as type T; otherwise returns 0.
Definition GeoDataObject.h:103
virtual QVariant data(const QModelIndex &index, int role) const const=0
QString getSaveFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter, Options options)
ClearAndSelect
virtual void select(const QItemSelection &selection, QItemSelectionModel::SelectionFlags command)
bool isValid() const const
const QAbstractItemModel * model() const const
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QString tr(const char *sourceText, const char *disambiguation, int n)
void setDynamicSortFilter(bool enable)
virtual void setSourceModel(QAbstractItemModel *sourceModel) override
QString fromLatin1(QByteArrayView str)
CustomContextMenu
AscendingOrder
typedef WindowFlags
T value() const const
void setupUi(QWidget *widget)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.