Skip to content

Commit 67aefb3

Browse files
author
jef
committedDec 8, 2010
move QgsSearchQuery builder from app to gui
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14867 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

6 files changed

+22
-3
lines changed

6 files changed

+22
-3
lines changed
 

‎python/gui/gui.sip

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@
3232
%Include qgsrubberband.sip
3333
%Include qgstextannotationitem.sip
3434
%Include qgsvertexmarker.sip
35+
%Include qgssearchquerybuilder.sip
3536

3637
%Include symbology-ng-gui.sip

‎python/gui/qgssearchquerybuilder.sip

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
class QgsSearchQueryBuilder : QDialog
2+
{
3+
%TypeHeaderCode
4+
#include <qgssearchquerybuilder.h>
5+
%End
6+
7+
public:
8+
QgsSearchQueryBuilder( QgsVectorLayer* layer, QWidget *parent = 0, Qt::WFlags fl = QgisGui::ModalDialogFlags );
9+
~QgsSearchQueryBuilder();
10+
11+
//! returns newly created search string
12+
QString searchString();
13+
14+
//! change search string shown in text field
15+
void setSearchString( QString searchString );
16+
};

‎src/app/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ SET(QGIS_APP_SRCS
7878
qgsprojectproperties.cpp
7979
qgsrastercalcdialog.cpp
8080
qgsrasterlayerproperties.cpp
81-
qgssearchquerybuilder.cpp
8281
qgstextannotationdialog.cpp
8382
qgswmssourceselect.cpp
8483
qgsshortcutsmanager.cpp
@@ -214,7 +213,6 @@ SET (QGIS_APP_MOC_HDRS
214213
qgsprojectproperties.h
215214
qgsrastercalcdialog.h
216215
qgsrasterlayerproperties.h
217-
qgssearchquerybuilder.h
218216
qgstextannotationdialog.h
219217
qgswmssourceselect.h
220218
qgssinglesymboldialog.h

‎src/gui/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ qgsrubberband.cpp
5555
qgstextannotationitem.cpp
5656
qgsvertexmarker.cpp
5757
qgsludialog.cpp
58+
qgssearchquerybuilder.cpp
5859
)
5960

6061
SET(QGIS_GUI_MOC_HDRS
@@ -98,6 +99,7 @@ qgsquickprint.h
9899
qgsludialog.h
99100
qgsprojectbadlayerguihandler.h
100101
qgslonglongvalidator.h
102+
qgssearchquerybuilder.h
101103
)
102104

103105
QT4_WRAP_CPP(QGIS_GUI_MOC_SRCS ${QGIS_GUI_MOC_HDRS})
@@ -187,12 +189,14 @@ qgsprojectionselector.h
187189
qgsrubberband.h
188190
qgsvertexmarker.h
189191
qgsmaptip.h
192+
qgssearchquerybuilder.h
190193

191194
${CMAKE_CURRENT_BINARY_DIR}/../ui/ui_qgsdetaileditemwidgetbase.h
192195
${CMAKE_CURRENT_BINARY_DIR}/../ui/ui_qgsgenericprojectionselectorbase.h
193196
${CMAKE_CURRENT_BINARY_DIR}/../ui/ui_qgsmessageviewer.h
194197
${CMAKE_CURRENT_BINARY_DIR}/../ui/ui_qgscredentialdialog.h
195198
${CMAKE_CURRENT_BINARY_DIR}/../ui/ui_qgsprojectionselectorbase.h
199+
${CMAKE_CURRENT_BINARY_DIR}/../ui/ui_qgsquerybuilderbase.h
196200
)
197201

198202

File renamed without changes.

‎src/app/qgssearchquerybuilder.h renamed to ‎src/gui/qgssearchquerybuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class QgsVectorLayer;
3333
* \brief Query Builder for search strings
3434
*
3535
*/
36-
class QgsSearchQueryBuilder : public QDialog, private Ui::QgsQueryBuilderBase
36+
class GUI_EXPORT QgsSearchQueryBuilder : public QDialog, private Ui::QgsQueryBuilderBase
3737
{
3838
Q_OBJECT
3939

0 commit comments

Comments
 (0)
Please sign in to comment.