Marble

SearchWidget.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2012 Dennis Nienhüser <[email protected]>
4 //
5 
6 #ifndef MARBLE_SEARCHWIDGET_H
7 #define MARBLE_SEARCHWIDGET_H
8 
9 #include "marble_export.h"
10 
11 #include <QWidget>
12 
13 namespace Marble {
14 
15 class GeoDataPlacemark;
16 class MarbleWidget;
17 class SearchWidgetPrivate;
18 
19 class MARBLE_EXPORT SearchWidget : public QWidget
20 {
21  Q_OBJECT
22 public:
23  explicit SearchWidget( QWidget * parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags() );
24 
25  void setMarbleWidget( MarbleWidget* widget );
26 
27  ~SearchWidget() override;
28 
29 private:
30  Q_PRIVATE_SLOT( d, void setSearchResult( const QVector<GeoDataPlacemark*>& ) )
31  Q_PRIVATE_SLOT( d, void search( const QString &searchTerm, SearchMode searchMode ) )
32  Q_PRIVATE_SLOT( d, void centerMapOn( const QModelIndex &index ) )
33  Q_PRIVATE_SLOT( d, void handlePlanetChange() )
34 
35  SearchWidgetPrivate* const d;
36 
37 };
38 
39 }
40 
41 #endif
SearchMode
Search mode: Global (worldwide) versus area (local, regional) search.
Definition: MarbleGlobal.h:172
typedef WindowFlags
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Oct 4 2023 04:09:43 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.