it's perhaps better and more user friendly than having AND/OR/NOT for each line??oops66 wrote:![]()
Questions about Categories
Moderators: helmut, XnTriq, xnview
Re: Questions about Categories
Pierre.
Re: Questions about Categories
Well, this is probably slightly easier to understand but it's not nearly as powerful as a fully-fledged AND/OR/NOT capability. If you add a drop-down box *after* each condition linking it with the following condition (along the lines of what photoken wrote), I think the best would be to offer the following 4 choices:xnview wrote:it's perhaps better and more user friendly than having AND/OR/NOT for each line??oops66 wrote:![]()
1. AND
2. OR
3. AND NOT
4. OR NOT
These should be pretty self explanatory.
I for one would very much appreciate an extended search feature.
Re: Questions about Categories
but it can become complicated for the user i thinkjonha4711 wrote: Well, this is probably slightly easier to understand but it's not nearly as powerful as a fully-fledged AND/OR/NOT capability. If you add a drop-down box *after* each condition linking it with the following condition (along the lines of what photoken wrote), I think the best would be to offer the following 4 choices:
1. AND
2. OR
3. AND NOT
4. OR NOT
These should be pretty self explanatory.
For C1 AND C2 OR C3, is it ((C1 AND C2) OR C3) or (C1 AND (C2 OR C3))
Pierre.
Re: Questions about Categories
... For me both are OKxnview wrote:it's perhaps better and more user friendly than having AND/OR/NOT for each line??oops66 wrote:![]()

XnViewMP Linux X64 - Debian - X64
Re: Questions about Categories
First of all, sure this can get quite complicated... that is the whole point of having a powerful mechanism at your fingertips! OTOH, nobody is *forced* to construct very complex queries. Similarly, nobody is ever *forced* to use regular expressions in a textual search but they add a whole new level of capability.xnview wrote:but it can become complicated for the user i thinkjonha4711 wrote: Well, this is probably slightly easier to understand but it's not nearly as powerful as a fully-fledged AND/OR/NOT capability. If you add a drop-down box *after* each condition linking it with the following condition (along the lines of what photoken wrote), I think the best would be to offer the following 4 choices:
1. AND
2. OR
3. AND NOT
4. OR NOT
These should be pretty self explanatory.
For C1 AND C2 OR C3, is it ((C1 AND C2) OR C3) or (C1 AND (C2 OR C3))
Second, to the real question. There are two possibilities here: one is simply to define the operator precedence in a certain way and stick with that. (For instance in C, logical AND has a higher priority than logical OR, so "C1 && C2 || C3" would read as "((C1 && C2) || C3)".)
Second, one could add a mechanism for explicitly supporting parentheses to make the meaning clear. This would be the Rolls Royce version, but I am not sure whether the effort is worth it. Perhaps it would be worthwhile to "test the waters" with the simpler precedence version and only if and when users complain about the lack of parentheses with convincing use cases, think about adding them. Sort of lazy evaluation : )
Re: Questions about Categories
Yes, it can become complicated.xnview wrote: but it can become complicated for the user i think
For C1 AND C2 OR C3, is it ((C1 AND C2) OR C3) or (C1 AND (C2 OR C3))
Since the end result is to create a SQL query against the database, I think there are two optional methods to use in the User Interface:
- Do nothing in the UI to accommodate parentheses, and let the default behaviour of the database's interpretation happen.
- Add small dropdown selection boxes to each line:
- At the front of the line, the dropdown box would contain two items:
- Nothing. (Empty)
- Open parenthesis: (
- At the end of the line, the dropdown box would contain two items:
- Nothing. (Empty)
- Close parenthesis: )
- At the front of the line, the dropdown box would contain two items:
Ken
Yes, I think it can be eeeeeasily done...
Just take everything out on Highway 61.
Yes, I think it can be eeeeeasily done...
Just take everything out on Highway 61.
Re: Questions about Categories
+1! As a first step, this would already be great, even without parenthesis.photoken wrote: [*]Each line of criteria would be followed by a dropdown selection box containing three items that refer to the following line of criteria:[/list]
- AND
- OR
- NOT
Re: Questions about Categories
It would be more complete and precise like this:

And with the possibility that the keyword in the category become visible instead of "Categories"

And with the possibility that the keyword in the category become visible instead of "Categories"
Sirio
Re: Questions about Categories
+1,000 !Sirio wrote:And with the possibility that the keyword in the category become visible instead of "Categories"
Ken
Yes, I think it can be eeeeeasily done...
Just take everything out on Highway 61.
Yes, I think it can be eeeeeasily done...
Just take everything out on Highway 61.
Re: Questions about Categories
Easy is good, powerful is better. See my posts further up re this suggestion...xnview wrote:this solution is not easiest?
Re: Questions about Categories
Very easily, e.g., the way Daminion does: In the tree, a radio box can be ticked for positive selection (turns green) and Ctrl-clicked (or was it Alt-clicked?) for negative selection (turns red). Also, once multiple entries are ticked on the same level of the hierarchy, a logical operation selector becomes availabe (inline with the next-higher tier) for selection between AND and OR. Being able to filter this way would be way less cumbersome than the pretty tedious procedure performed in the search dialog.xnview wrote:yes, but how to do that in ui? by selecting category in the treeview, we can have AND/OR, but how to represent NOTphotoken wrote: XnViewMP is lacking one very important search feature, however -- the ability to search for images which do NOT have a specific category. In other words, you can build a search for images which have the categories "Germany" AND "Mountains", but you cannot build a search for images which have the category "Germany" and NOT "Mountains". I filed a request for this many months ago, but it has not been implemented.
Re: Questions about Categories
Interesting, in fact, here the link to see it:
http://daminion.net/feature-tour/damini ... any-assets
http://daminion.net/feature-tour/damini ... any-assets
Sirio