mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
84 lines
2.3 KiB
Plaintext
84 lines
2.3 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/locator/qgslocatorwidget.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
class QgsLocatorWidget : QWidget
|
|
{
|
|
%Docstring
|
|
A special locator widget which allows searching for matching results from a QgsLocator
|
|
and presenting them to users for selection.
|
|
|
|
.. seealso:: :py:class:`QgsLocator`
|
|
|
|
.. versionadded:: 3.0
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgslocatorwidget.h"
|
|
%End
|
|
public:
|
|
|
|
QgsLocatorWidget( QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsLocatorWidget.
|
|
%End
|
|
|
|
QgsLocator *locator();
|
|
%Docstring
|
|
Returns a pointer to the locator utilized by this widget.
|
|
%End
|
|
|
|
void setMapCanvas( QgsMapCanvas *canvas );
|
|
%Docstring
|
|
Sets a map ``canvas`` to associate with the widget. This allows the
|
|
widget to customise the searches performed by its locator(), such
|
|
as prioritizing results which are near the current canvas extent.
|
|
%End
|
|
|
|
public slots:
|
|
|
|
void search( const QString &string );
|
|
%Docstring
|
|
Triggers the locator widget to focus, open and start searching for a specified ``string``.
|
|
%End
|
|
|
|
void invalidateResults();
|
|
%Docstring
|
|
Invalidates the current search results, e.g. as a result of changes to the locator
|
|
filter settings.
|
|
%End
|
|
|
|
signals:
|
|
|
|
void configTriggered();
|
|
%Docstring
|
|
Emitted when the configure option is triggered in the widget.
|
|
%End
|
|
|
|
protected:
|
|
|
|
virtual bool eventFilter( QObject *obj, QEvent *event );
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/locator/qgslocatorwidget.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|