How to find NOT

Ask for help and post your question on how to use XnView MP.

Moderators: XnTriq, helmut, xnview

User avatar
m.Th.
XnThusiast
Posts: 1664
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: How to find NOT

Post by m.Th. »

xnview wrote:
m.Th. wrote:
xnview wrote:do you know how it's integrated in other apps?
Generally, the NOT operator is handled with a tri-state checkbox.
More details in tracker: http://www.xnview.com/mantisbt/view.php?id=389
how is it handled in bridge?
Bridge doesn't support NOT.
m. Th.

- Dark Themed XnViewMP 1.6 64bit on Win11 x64 -
User avatar
m.Th.
XnThusiast
Posts: 1664
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: How to find NOT

Post by m.Th. »

jadO wrote:Here is an example how it could look in jquery: https://www.jqueryscript.net/form/jQuer ... witch.html

But using a checkbox will change usability and I am not for it. Currently it is great that you can hold STRG and slide the mouse down over all categories that you want. This would change if you would have to click a checkbox for each category that you want to include.
Therefor I would prefer a click on the category itself to change its state rather than having an additional checkbox to check.

To be clear: I'd rather prefer just an indicator for the current state but selection of state should be by clicking the category.
It is the same: a tri-state checkbox. :)

...just that the checkbox will be changed by clicking also on the caption/category. It is the standard behavior in many frameworks (dunno in QT) and if it isn't can be easily implemented.
m. Th.

- Dark Themed XnViewMP 1.6 64bit on Win11 x64 -
jadO
Posts: 490
Joined: Wed Apr 29, 2015 6:36 am

Re: How to find NOT

Post by jadO »

m.Th. wrote:It is the same: a tri-state checkbox. :)
I didn't say it is not. It is just a matter of implementation. And I would prefer a way that the click action remains entirely on the category and not on an additional checkbox.
shokuzai
Posts: 17
Joined: Thu Jan 05, 2017 2:40 am

Re: How to find NOT

Post by shokuzai »

I think I know a workaround:
1. Tag all the files that any/all of the cagetegories in question are assigned to.
2. Select all files universally.
3. Click View > Tag > Invert.
4. Click View > Filter by > Tagged file(s).
shokuzai
Posts: 17
Joined: Thu Jan 05, 2017 2:40 am

Re: How to find NOT

Post by shokuzai »

My point is that Tagged files filter and Categories filter are combinable. More advanced search can be done by tagging, or assigning a temporary category to, results of this combination of filters and applying it to the filters in turn.
For example, to show ((A ∪ B) ∩ C) - D:
1. Tag A ∪ B.
2. Click View > Filter by > Tagged files.
3. Show C.
4. Assign TempCat to all in the current file list (TempCat = (A ∪ B) ∩ C).
5. Click View > Tag > Clear all tags.
6. Tag D.
7. Click View > Filter by > All (or whatever relevant).
8. Show TempCat.
[Edit: 8. Show TempCat ∪ D.]
9. Select all in the current file list.
10. Click View > Tag > Invert.
11. Click View > Tag > Show tagged files.

Edit: simpler steps:
1. Tag A ∪ B.
2. Click View > Filter by > Tagged files.
3. Show C.
4. Click View > Tag > Clear all tags.
5. Tag all in the current file list (tagged files = (A ∪ B) ∩ C).
6. Untag D.
7. Click View > Tag > Show tagged files.
Last edited by shokuzai on Sun Dec 03, 2017 8:34 am, edited 3 times in total.
jadO
Posts: 490
Joined: Wed Apr 29, 2015 6:36 am

Re: How to find NOT

Post by jadO »

shokuzai wrote:My point is that Tagged files filter and Categories filter are combinable. More advanced search can be done by tagging, or assigning a temporary category to, results of this combination of filters and applying it to the filters in turn.
For example, to show ((A ∪ B) ∩ C) - D:
1. Tag A ∪ B.
2. Click View > Filter by > Tagged files.
3. Show C.
4. Assign TempCat to all in the current file list (TempCat = (A ∪ B) ∩ C).
5. Click View > Tag > Clear all tags.
6. Tag D.
7. Click View > Filter by > All (or whatever relevant).
8. Show TempCat.
9. Select all in the current file list.
10. Click View > Tag > Invert.
11. Click View > Tag > Show tagged files.
I think this is way too complex.
shokuzai
Posts: 17
Joined: Thu Jan 05, 2017 2:40 am

Re: How to find NOT

Post by shokuzai »

jadO wrote:
shokuzai wrote:My point is that Tagged files filter and Categories filter are combinable. More advanced search can be done by tagging, or assigning a temporary category to, results of this combination of filters and applying it to the filters in turn.
For example, to show ((A ∪ B) ∩ C) - D:
1. Tag A ∪ B.
2. Click View > Filter by > Tagged files.
3. Show C.
4. Assign TempCat to all in the current file list (TempCat = (A ∪ B) ∩ C).
5. Click View > Tag > Clear all tags.
6. Tag D.
7. Click View > Filter by > All (or whatever relevant).
8. Show TempCat.
9. Select all in the current file list.
10. Click View > Tag > Invert.
11. Click View > Tag > Show tagged files.
I think this is way too complex.
That's right. It's just a workaround and not a straightforward solution. And I made a mistake above. Actually it takes an additional step to untag D.
User avatar
michel038
XnThusiast
Posts: 1291
Joined: Tue Sep 27, 2016 8:18 am
Location: France
Contact:

Re: How to find NOT

Post by michel038 »

Another workaround could be possible
You want category1 and not category2

1) all photos are marked ( :shock: )
2) select category2 and unmark these photos
3) choose directories you want to use
4) select category1 and marked photos

Unfortunately , the 4th function doesn't work yet

(but I don't understand enough english in previous posts )
shokuzai
Posts: 17
Joined: Thu Jan 05, 2017 2:40 am

Re: How to find NOT

Post by shokuzai »

Sorry, my steps was needlessly lengthy.
Simpler steps to show A - B:
1. Tag A.
2. Untag B.
3. Click View > Tag > Show tagged files.
Post Reply