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

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • lib
  • marble
SearchInputWidget.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2012 Dennis Nienhüser <earthwings@gentoo.org>
9 // Copyright 2012 Bernhard Beschow <bbeschow@cs.tu-berlin.de>
10 //
11 
12 #ifndef MARBLE_SEARCHINPUTWIDGET_H
13 #define MARBLE_SEARCHINPUTWIDGET_H
14 
15 #include <QModelIndex>
16 #include <QSortFilterProxyModel>
17 
18 #include "MarbleLineEdit.h"
19 #include "MarbleGlobal.h"
20 #include "marble_export.h"
21 
22 class QAbstractItemModel;
23 class QCompleter;
24 
25 namespace Marble {
26 
27 class GeoDataCoordinates;
28 
29 class MARBLE_EXPORT SearchInputWidget : public MarbleLineEdit
30 {
31  Q_OBJECT
32 
33 public:
34  explicit SearchInputWidget( QWidget* parent = 0 );
35 
36  void setCompletionModel( QAbstractItemModel *completionModel );
37 
38 public Q_SLOTS:
39  void disableSearchAnimation();
40 
41 Q_SIGNALS:
42  void search( const QString &searchTerm, SearchMode searchMode );
43 
44  void centerOn( const GeoDataCoordinates &coordinates );
45 
46 private Q_SLOTS:
47  void search();
48 
49  void centerOnSearchSuggestion( const QModelIndex &suggestionIndex );
50 
51  void showDropDownMenu();
52 
53  void setGlobalSearch();
54 
55  void setAreaSearch();
56 
57 private:
58  void updatePlaceholderText();
59 
60  QSortFilterProxyModel m_sortFilter;
61  QCompleter *const m_completer;
62  bool m_areaSearch;
63 };
64 
65 }
66 
67 #endif
Marble::SearchMode
SearchMode
Search mode: Global (worldwide) versus area (local, regional) search.
Definition: MarbleGlobal.h:179
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
search
Definition: google-search.qml:12
QWidget
Marble::MarbleLineEdit
A QLineEdit with an embedded clear button.
Definition: MarbleLineEdit.h:32
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
MarbleGlobal.h
QAbstractItemModel
MarbleLineEdit.h
marble_export.h
Marble::SearchInputWidget
Definition: SearchInputWidget.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:52 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