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();
44 restoreGeometry( settings.value(
"/Windows/ExpressionSelectionDialog/geometry" ).toByteArray() );
49 return mExpressionBuilder;
54 mExpressionBuilder->setExpressionText( text );
59 return mExpressionBuilder->expressionText();
65 mExpressionBuilder->setGeomCalculator( da );
82 if ( expression->
evaluate( &feat, fields ).toBool() )
84 newSelection << feat.
id();
109 if ( expression->
evaluate( &feat, fields ).toBool() )
111 newSelection << feat.
id();
140 if ( expression->
evaluate( &feat, fields ).toBool() )
142 newSelection << feat.
id();
176 if ( expression->
evaluate( &feat, fields ).toBool() )
178 newSelection.remove( feat.
id() );
199 settings.setValue(
"/Windows/ExpressionSelectionDialog/geometry", saveGeometry() );