Patch to add "apply filter" toolbar button.

Discuss development issues and submit patches here
Post Reply
ajs
Posts: 409
Joined: Mon Jul 05, 2010 6:37 pm

Patch to add "apply filter" toolbar button.

Post by ajs »

Patch to add "apply filter" toolbar button.

The "apply filter" toolbar button allows to apply/remove the filter with the mouse. It works as clicked/unclicked button, so it also shows quickly if the filter is applied or not.

Patch against commit 186. "Shell Images Large.bmp" needs to be copied manually to the "res" folder.
Attachments
patch_42__v186.7z
(15.66 KiB) Downloaded 539 times
ajs
Posts: 409
Joined: Mon Jul 05, 2010 6:37 pm

Re: Patch to add "apply filter" toolbar button.

Post by ajs »

Improvement to this patch.

Now clicking on the "apply filter" toolbar button works as follow:
- if the folder is already filtered, the filter is removed.
- if the folder is not filtered and CTRL not pressed, the button open the "set filter" dialog, so it is possible to enter a filter pattern
- if the folder is not filtered and CTRL is pressed, the button reapplies the last filter directly.

Patch upgraded to commit 188
Attachments
patch_42__v188.7z
(15.7 KiB) Downloaded 513 times
ajs
Posts: 409
Joined: Mon Jul 05, 2010 6:37 pm

Re: Patch to add "apply filter" toolbar button.

Post by ajs »

Since I need this patch as base for another patch, I have updated it to commit 204.
Same functionality and same code, just a couple of minor adjustment to the code which handles the status of the toolbar button.
Attachments
patch_42__v204.7z
(15.62 KiB) Downloaded 526 times
Post Reply