33 mButtonSelect->addAction( mActionSelect );
34 mButtonSelect->addAction( mActionAddToSelection );
35 mButtonSelect->addAction( mActionRemoveFromSelection );
36 mButtonSelect->addAction( mActionSelectInstersect );
37 mButtonSelect->setDefaultAction( mActionSelect );
39 mExpressionBuilder->setLayer( layer );
40 mExpressionBuilder->setExpressionText( startText );
41 mExpressionBuilder->loadFieldNames();
42 mExpressionBuilder->loadRecent(
"Selection" );
45 restoreGeometry( settings.value(
"/Windows/ExpressionSelectionDialog/geometry" ).toByteArray() );
50 return mExpressionBuilder;
55 mExpressionBuilder->setExpressionText( text );
60 return mExpressionBuilder->expressionText();
66 mExpressionBuilder->setGeomCalculator( da );
83 if ( expression->
evaluate( &feat, fields ).toBool() )
85 newSelection << feat.
id();
111 if ( expression->
evaluate( &feat, fields ).toBool() )
113 newSelection << feat.
id();
143 if ( expression->
evaluate( &feat, fields ).toBool() )
145 newSelection << feat.
id();
180 if ( expression->
evaluate( &feat, fields ).toBool() )
182 newSelection.remove( feat.
id() );
205 settings.setValue(
"/Windows/ExpressionSelectionDialog/geometry", saveGeometry() );
221 mExpressionBuilder->saveToRecent(
"Selection" );