Re: [QGIS-Developer] Disable/commenting provider filter?

2021-05-12 Thread Richard Duivenvoorde
On 5/12/21 8:07 AM, Andreas Neumann wrote:
> Hi Richard and all,
> 
> Speaking of the little "Filter icon". Couldn't this icon be used to toggle 
> the filter state "on"/"off"?
> 
> A single click would toggle on/off state, a double click would open the 
> dialog?

Currently clicking on it will pop up the query builder dialog.

I've been thinking about what you propose too, but do not want to break current 
behaviour,
That is why I thought about a context menu or so.

But easiest probably is: click on icon (which optionally will have two 
versions: an active/inactive one), to show dialog and a checkbox there.

Richard
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Disable/commenting provider filter?

2021-05-12 Thread Andreas Neumann

Hi Richard and all,

Speaking of the little "Filter icon". Couldn't this icon be used to 
toggle the filter state "on"/"off"?


A single click would toggle on/off state, a double click would open the 
dialog?


Just an idea. Not sure if it is doable.

Thanks for working on this,
Andreas

On 2021-05-12 08:04, Richard Duivenvoorde wrote:


On 5/11/21 10:45 PM, Jorge Gustavo Rocha wrote:


Hi,

Another workaround is layer duplication. You can have an instance
without filters and one with filters. Then switch between them.

But a filter history for the layer (like the one in the old DB manager
where you can save queries), could be useful.


I'd probably go for the checkbox in the query dialog then. Clicking the 
little 'filter' icon in the layer manager will popup the query dialog.


Duplicating a layer is an option, but messes up your project, if all 
you want to do is go over some specific ID's.
A 'Recent' item IS available, so history IS available, it's just not 
convenient enough for me.


Regards & thanks for input.

Richard Duivenvoorde

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Disable/commenting provider filter?

2021-05-12 Thread Richard Duivenvoorde
On 5/11/21 10:45 PM, Jorge Gustavo Rocha wrote:
> Hi,
> 
> Another workaround is layer duplication. You can have an instance
> without filters and one with filters. Then switch between them.
> 
> But a filter history for the layer (like the one in the old DB manager
> where you can save queries), could be useful.

I'd probably go for the checkbox in the query dialog then. Clicking the little 
'filter' icon in the layer manager will popup the query dialog.

Duplicating a layer is an option, but messes up your project, if all you want 
to do is go over some specific ID's.
A 'Recent' item IS available, so history IS available, it's just not convenient 
enough for me.

Regards & thanks for input.

Richard Duivenvoorde

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Disable/commenting provider filter?

2021-05-11 Thread Jorge Gustavo Rocha
Hi,

Another workaround is layer duplication. You can have an instance
without filters and one with filters. Then switch between them.

But a filter history for the layer (like the one in the old DB manager
where you can save queries), could be useful.

Regards,

Jorge

On 11/05/21 21:31, Alexandre Neto wrote:
> Bad workaround then :-p
> 
> A terça, 11/05/2021, 21:10, Matthias Kuhn  > escreveu:
> 
> Unfortunately, that won't work, filters are not part of the style.
> 
> On Tue, May 11, 2021 at 9:24 PM Alexandre Neto
> mailto:senhor.n...@gmail.com>> wrote:
> 
> As an workaround, can't you just create a new style and remove
> the filter? Then go back to the default style?
> 
> Obviously a checkbox would be much more user friendly.
> 
> Alexandre Neto
> 
> A terça, 11/05/2021, 09:52, Andreas Neumann  > escreveu:
> 
> Hi Richard,
> 
> Yes - I think this would be very useful. I would prefer the
> checkbox for enabling/disabling without losing the filter
> string.
> 
> Thanks,
> Andreas
> 
> On Mon, 10 May 2021 at 16:41, Richard Duivenvoorde
> mailto:rdmaili...@duif.net>> wrote:
> 
> Hi List,
> 
> When I add a filter to a layer, I often want to
> temporarily disable that
> filter (just to see what the full view is).
> 
> Working a lot with sql scripts recently, in which you
> comment out (a
> part) of a sql query by putting '--' in front of it, I
> tried that also
> in the Query builder, and though it looks like I'm
> commenting out my
> query (the query is greyed-out), it's not working, I get
> a parsing
> error.
> 
> So usability question:
> - would other people be interested in temporarily
> disabling the layer
> filter query, or am I the only one :-)
> 
> If yes:
> 
> - should it be implemented by 'commenting' out part of
> the query?
> - or should there be some 'temporarily disable' checkbox
> in the query
> builder)
> - should it be a context menu (either the layer, or the
> little filter
> overlay icon in the layermanager)
> 
> Tech question:
> - any forseeing issues with such thing?
> 
> Regards,
> 
> Richard Duivenvoorde
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> 
> List info:
> https://lists.osgeo.org/mailman/listinfo/qgis-developer
> 
> Unsubscribe:
> https://lists.osgeo.org/mailman/listinfo/qgis-developer
> 
> 
> 
> 
> -- 
> 
> --
> Andreas Neumann
> QGIS.ORG  board member (treasurer)
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> 
> List info:
> https://lists.osgeo.org/mailman/listinfo/qgis-developer
> 
> Unsubscribe:
> https://lists.osgeo.org/mailman/listinfo/qgis-developer
> 
> 
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> 
> List info:
> https://lists.osgeo.org/mailman/listinfo/qgis-developer
> 
> Unsubscribe:
> https://lists.osgeo.org/mailman/listinfo/qgis-developer
> 
> 
> 
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> 

J. Gustavo
-- 
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Gabinete 3.29 (Piso 3)
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor

Re: [QGIS-Developer] Disable/commenting provider filter?

2021-05-11 Thread Alexandre Neto
Bad workaround then :-p

A terça, 11/05/2021, 21:10, Matthias Kuhn  escreveu:

> Unfortunately, that won't work, filters are not part of the style.
>
> On Tue, May 11, 2021 at 9:24 PM Alexandre Neto 
> wrote:
>
>> As an workaround, can't you just create a new style and remove the
>> filter? Then go back to the default style?
>>
>> Obviously a checkbox would be much more user friendly.
>>
>> Alexandre Neto
>>
>> A terça, 11/05/2021, 09:52, Andreas Neumann  escreveu:
>>
>>> Hi Richard,
>>>
>>> Yes - I think this would be very useful. I would prefer the checkbox for
>>> enabling/disabling without losing the filter string.
>>>
>>> Thanks,
>>> Andreas
>>>
>>> On Mon, 10 May 2021 at 16:41, Richard Duivenvoorde 
>>> wrote:
>>>
 Hi List,

 When I add a filter to a layer, I often want to temporarily disable
 that
 filter (just to see what the full view is).

 Working a lot with sql scripts recently, in which you comment out (a
 part) of a sql query by putting '--' in front of it, I tried that also
 in the Query builder, and though it looks like I'm commenting out my
 query (the query is greyed-out), it's not working, I get a parsing
 error.

 So usability question:
 - would other people be interested in temporarily disabling the layer
 filter query, or am I the only one :-)

 If yes:

 - should it be implemented by 'commenting' out part of the query?
 - or should there be some 'temporarily disable' checkbox in the query
 builder)
 - should it be a context menu (either the layer, or the little filter
 overlay icon in the layermanager)

 Tech question:
 - any forseeing issues with such thing?

 Regards,

 Richard Duivenvoorde
 ___
 QGIS-Developer mailing list
 QGIS-Developer@lists.osgeo.org
 List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
 Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

>>>
>>>
>>> --
>>>
>>> --
>>> Andreas Neumann
>>> QGIS.ORG board member (treasurer)
>>> ___
>>> QGIS-Developer mailing list
>>> QGIS-Developer@lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>>
>> ___
>> QGIS-Developer mailing list
>> QGIS-Developer@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Disable/commenting provider filter?

2021-05-11 Thread Matthias Kuhn
Unfortunately, that won't work, filters are not part of the style.

On Tue, May 11, 2021 at 9:24 PM Alexandre Neto 
wrote:

> As an workaround, can't you just create a new style and remove the filter?
> Then go back to the default style?
>
> Obviously a checkbox would be much more user friendly.
>
> Alexandre Neto
>
> A terça, 11/05/2021, 09:52, Andreas Neumann  escreveu:
>
>> Hi Richard,
>>
>> Yes - I think this would be very useful. I would prefer the checkbox for
>> enabling/disabling without losing the filter string.
>>
>> Thanks,
>> Andreas
>>
>> On Mon, 10 May 2021 at 16:41, Richard Duivenvoorde 
>> wrote:
>>
>>> Hi List,
>>>
>>> When I add a filter to a layer, I often want to temporarily disable that
>>> filter (just to see what the full view is).
>>>
>>> Working a lot with sql scripts recently, in which you comment out (a
>>> part) of a sql query by putting '--' in front of it, I tried that also
>>> in the Query builder, and though it looks like I'm commenting out my
>>> query (the query is greyed-out), it's not working, I get a parsing
>>> error.
>>>
>>> So usability question:
>>> - would other people be interested in temporarily disabling the layer
>>> filter query, or am I the only one :-)
>>>
>>> If yes:
>>>
>>> - should it be implemented by 'commenting' out part of the query?
>>> - or should there be some 'temporarily disable' checkbox in the query
>>> builder)
>>> - should it be a context menu (either the layer, or the little filter
>>> overlay icon in the layermanager)
>>>
>>> Tech question:
>>> - any forseeing issues with such thing?
>>>
>>> Regards,
>>>
>>> Richard Duivenvoorde
>>> ___
>>> QGIS-Developer mailing list
>>> QGIS-Developer@lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>>
>>
>>
>> --
>>
>> --
>> Andreas Neumann
>> QGIS.ORG board member (treasurer)
>> ___
>> QGIS-Developer mailing list
>> QGIS-Developer@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Disable/commenting provider filter?

2021-05-11 Thread Alexandre Neto
As an workaround, can't you just create a new style and remove the filter?
Then go back to the default style?

Obviously a checkbox would be much more user friendly.

Alexandre Neto

A terça, 11/05/2021, 09:52, Andreas Neumann  escreveu:

> Hi Richard,
>
> Yes - I think this would be very useful. I would prefer the checkbox for
> enabling/disabling without losing the filter string.
>
> Thanks,
> Andreas
>
> On Mon, 10 May 2021 at 16:41, Richard Duivenvoorde 
> wrote:
>
>> Hi List,
>>
>> When I add a filter to a layer, I often want to temporarily disable that
>> filter (just to see what the full view is).
>>
>> Working a lot with sql scripts recently, in which you comment out (a
>> part) of a sql query by putting '--' in front of it, I tried that also
>> in the Query builder, and though it looks like I'm commenting out my
>> query (the query is greyed-out), it's not working, I get a parsing
>> error.
>>
>> So usability question:
>> - would other people be interested in temporarily disabling the layer
>> filter query, or am I the only one :-)
>>
>> If yes:
>>
>> - should it be implemented by 'commenting' out part of the query?
>> - or should there be some 'temporarily disable' checkbox in the query
>> builder)
>> - should it be a context menu (either the layer, or the little filter
>> overlay icon in the layermanager)
>>
>> Tech question:
>> - any forseeing issues with such thing?
>>
>> Regards,
>>
>> Richard Duivenvoorde
>> ___
>> QGIS-Developer mailing list
>> QGIS-Developer@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>
>
> --
>
> --
> Andreas Neumann
> QGIS.ORG board member (treasurer)
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Disable/commenting provider filter?

2021-05-11 Thread Andreas Neumann
Hi Richard,

Yes - I think this would be very useful. I would prefer the checkbox for
enabling/disabling without losing the filter string.

Thanks,
Andreas

On Mon, 10 May 2021 at 16:41, Richard Duivenvoorde 
wrote:

> Hi List,
>
> When I add a filter to a layer, I often want to temporarily disable that
> filter (just to see what the full view is).
>
> Working a lot with sql scripts recently, in which you comment out (a
> part) of a sql query by putting '--' in front of it, I tried that also
> in the Query builder, and though it looks like I'm commenting out my
> query (the query is greyed-out), it's not working, I get a parsing
> error.
>
> So usability question:
> - would other people be interested in temporarily disabling the layer
> filter query, or am I the only one :-)
>
> If yes:
>
> - should it be implemented by 'commenting' out part of the query?
> - or should there be some 'temporarily disable' checkbox in the query
> builder)
> - should it be a context menu (either the layer, or the little filter
> overlay icon in the layermanager)
>
> Tech question:
> - any forseeing issues with such thing?
>
> Regards,
>
> Richard Duivenvoorde
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>


-- 

--
Andreas Neumann
QGIS.ORG board member (treasurer)
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Disable/commenting provider filter?

2021-05-10 Thread Matthias Kuhn
Hi Richard,

An enable/disable checkbox that works without deleting the filter would be
very nice. Just like data defined symbology where you can disable it
without losing the expression.

Short term workaround for you:

  TRUE /* [yourfilter here] */

Matthias

On Mon, May 10, 2021 at 4:42 PM Richard Duivenvoorde 
wrote:

> Hi List,
>
> When I add a filter to a layer, I often want to temporarily disable that
> filter (just to see what the full view is).
>
> Working a lot with sql scripts recently, in which you comment out (a
> part) of a sql query by putting '--' in front of it, I tried that also
> in the Query builder, and though it looks like I'm commenting out my
> query (the query is greyed-out), it's not working, I get a parsing
> error.
>
> So usability question:
> - would other people be interested in temporarily disabling the layer
> filter query, or am I the only one :-)
>
> If yes:
>
> - should it be implemented by 'commenting' out part of the query?
> - or should there be some 'temporarily disable' checkbox in the query
> builder)
> - should it be a context menu (either the layer, or the little filter
> overlay icon in the layermanager)
>
> Tech question:
> - any forseeing issues with such thing?
>
> Regards,
>
> Richard Duivenvoorde
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


[QGIS-Developer] Disable/commenting provider filter?

2021-05-10 Thread Richard Duivenvoorde

Hi List,

When I add a filter to a layer, I often want to temporarily disable that 
filter (just to see what the full view is).


Working a lot with sql scripts recently, in which you comment out (a 
part) of a sql query by putting '--' in front of it, I tried that also 
in the Query builder, and though it looks like I'm commenting out my 
query (the query is greyed-out), it's not working, I get a parsing 
error.


So usability question:
- would other people be interested in temporarily disabling the layer 
filter query, or am I the only one :-)


If yes:

- should it be implemented by 'commenting' out part of the query?
- or should there be some 'temporarily disable' checkbox in the query 
builder)
- should it be a context menu (either the layer, or the little filter 
overlay icon in the layermanager)


Tech question:
- any forseeing issues with such thing?

Regards,

Richard Duivenvoorde
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer