Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #8404 from 3nids/locator_core
Move parts of QgsLocatorFilter to core
- Loading branch information
Showing
12 changed files
with
530 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
104 changes: 104 additions & 0 deletions
104
python/core/auto_generated/locator/qgslocatormodelbridge.sip.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,104 @@ | |||
/************************************************************************ | |||
* This file has been generated automatically from * | |||
* * | |||
* src/core/locator/qgslocatormodelbridge.h * | |||
* * | |||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | |||
************************************************************************/ | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
class QgsLocatorModelBridge : QObject | |||
{ | |||
%Docstring | |||
The QgsLocatorModelBridge class provides the core functionality | |||
to be used in a locator widget. | |||
|
|||
.. versionadded:: 3.6 | |||
%End | |||
|
|||
%TypeHeaderCode | |||
#include "qgslocatormodelbridge.h" | |||
%End | |||
public: | |||
explicit QgsLocatorModelBridge( QObject *parent = 0 ); | |||
%Docstring | |||
Constructor of QgsLocatorModelBridge | |||
%End | |||
virtual ~QgsLocatorModelBridge(); | |||
|
|||
void performSearch( const QString &text ); | |||
%Docstring | |||
Perform a search | |||
%End | |||
|
|||
QgsLocator *locator() const; | |||
%Docstring | |||
Returns the locator | |||
%End | |||
|
|||
QgsLocatorProxyModel *proxyModel() const; | |||
%Docstring | |||
Returns the proxy model | |||
%End | |||
|
|||
bool hasQueueRequested() const; | |||
%Docstring | |||
Returns true if some text to be search is pending in the queue | |||
%End | |||
|
|||
bool isRunning() const; | |||
%Docstring | |||
Returns true if the a search is currently running | |||
%End | |||
|
|||
void triggerResult( const QModelIndex &index ); | |||
%Docstring | |||
Triggers the result at given index | |||
%End | |||
|
|||
signals: | |||
void resultAdded(); | |||
%Docstring | |||
Emitted when a result is added | |||
%End | |||
|
|||
void isRunningChanged(); | |||
%Docstring | |||
Emitted when the running status changes | |||
%End | |||
|
|||
void resultsCleared(); | |||
%Docstring | |||
Emitted when the results are cleared | |||
%End | |||
|
|||
public slots: | |||
void invalidateResults(); | |||
%Docstring | |||
This will invalidate current search results | |||
%End | |||
|
|||
void updateCanvasExtent( const QgsRectangle &extent ); | |||
%Docstring | |||
Update the canvas extent used to create search context | |||
%End | |||
|
|||
void updateCanvasCrs( const QgsCoordinateReferenceSystem &crs ); | |||
%Docstring | |||
Update the canvas CRS used to create search context | |||
%End | |||
|
|||
}; | |||
|
|||
/************************************************************************ | |||
* This file has been generated automatically from * | |||
* * | |||
* src/core/locator/qgslocatormodelbridge.h * | |||
* * | |||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | |||
************************************************************************/ |
98 changes: 98 additions & 0 deletions
98
python/core/auto_generated/locator/qgslocatorwidgetcore.sip.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,98 @@ | |||
/************************************************************************ | |||
* This file has been generated automatically from * | |||
* * | |||
* src/core/locator/qgslocatormodelbridge.h * | |||
* * | |||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | |||
************************************************************************/ | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
class QgsLocatorModelBridge : QObject | |||
{ | |||
%Docstring | |||
The QgsLocatorModelBridge class provides the core functionality | |||
to be used in a locator widget. | |||
|
|||
.. versionadded:: 3.6 | |||
%End | |||
|
|||
%TypeHeaderCode | |||
#include "qgslocatormodelbridge.h" | |||
%End | |||
public: | |||
explicit QgsLocatorModelBridge( QObject *parent = 0 ); | |||
%Docstring | |||
Constructor of QgsLocatorModelBridge | |||
%End | |||
|
|||
void performSearch( const QString &text ); | |||
%Docstring | |||
Perform a search | |||
%End | |||
|
|||
QgsLocator *locator() const; | |||
%Docstring | |||
Returns the locator | |||
%End | |||
|
|||
QgsLocatorProxyModel *proxyModel() const; | |||
%Docstring | |||
Returns the proxy model | |||
%End | |||
|
|||
bool hasQueueRequested() const; | |||
%Docstring | |||
Returns true if some text to be search is pending in the queue | |||
%End | |||
|
|||
bool isRunning() const; | |||
%Docstring | |||
Returns true if the a search is currently running | |||
%End | |||
|
|||
signals: | |||
void resultAdded(); | |||
%Docstring | |||
Emitted when a result is added | |||
%End | |||
|
|||
void isRunningChanged(); | |||
%Docstring | |||
Emitted when the running status changes | |||
%End | |||
|
|||
void resultsCleared(); | |||
%Docstring | |||
Emitted when the results are cleared | |||
%End | |||
|
|||
public slots: | |||
void invalidateResults(); | |||
%Docstring | |||
This will invalidate current search results | |||
%End | |||
|
|||
void updateCanvasExtent( const QgsRectangle &extent ); | |||
%Docstring | |||
Update the canvas extent used to create search context | |||
%End | |||
|
|||
void updateCanvasCrs( const QgsCoordinateReferenceSystem &crs ); | |||
%Docstring | |||
Update the canvas CRS used to create search context | |||
%End | |||
|
|||
}; | |||
|
|||
/************************************************************************ | |||
* This file has been generated automatically from * | |||
* * | |||
* src/core/locator/qgslocatormodelbridge.h * | |||
* * | |||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | |||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.