Purpose of groups?

Skip to first unread message


Jan 29, 2015, 12:16:08 AM1/29/15
to jfreesan...@googlegroups.com
One last question... what is the purpose of the group type? Is there any practical case for setting options in them? I am finding that one a little hard to understand as there isn't much documentation on them in the sane site.

In your code's comments, you wrote this:

 * Represents a group of options. The SANE backend may group options together. These may be handy
 * if, for example, a JFreeSane user wants to present the options to the user in logical groups.

So are groups more of a user display thing? I still don't really understand. :)


Jan 29, 2015, 12:18:28 AM1/29/15
to jfreesan...@googlegroups.com
See attached image - if I put a button for the different group types, and clicking that button popped up another view for setting the options inside of that group type, would that be more along the lines of what groups are for?
Screenshot from 2015-01-29 12:11:41.png

James Ring

Jan 29, 2015, 4:04:01 AM1/29/15
to rol...@formreturn.com, jfreesane-discuss
According to http://www.sane-project.org/html/doc011.html section (Option Value Type), SANE_TYPE_GROUP: An option of this type
has no value. This type is used to group logically related options. A
group option is in effect up to the point where another group option
is encountered (or up to the end of the option list, if there are no
other group options). For group options, only members title and type
are valid in the option descriptor.

My understanding is that these groups indicate options that belong
together and are best shown together in the frontend UI.
> --
> You received this message because you are subscribed to the Google Groups
> "jfreesane-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jfreesane-disc...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
0 new messages