Added a Misc option group to hold misc features

I felt that the ehancements group was doing double duity for image tuning and
other more hardware related options.  This new group takes ownership of those.
I'm not happy with the name, but that can always be changed.
merge-requests/1/head
Mike Kelly 2011-01-29 11:50:04 +09:00
rodzic d48f749cae
commit 42cdb00aa1
2 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -6504,6 +6504,14 @@ init_options (Avision_Scanner* s)
s->opt[OPT_IR].cap |= SANE_CAP_INACTIVE;
}
/* "MISC" group: */
s->opt[OPT_MISC_GROUP].title = SANE_TITLE_SCAN_MODE;
s->opt[OPT_MISC_GROUP].desc = ""; /* for groups only title and type are valid */
s->opt[OPT_MISC_GROUP].type = SANE_TYPE_GROUP;
s->opt[OPT_MISC_GROUP].cap = 0;
s->opt[OPT_MISC_GROUP].size = 0;
s->opt[OPT_MISC_GROUP].constraint_type = SANE_CONSTRAINT_NONE;
/* film holder control */
if (dev->scanner_type != AV_FILM)
s->opt[OPT_FRAME].cap |= SANE_CAP_INACTIVE;

Wyświetl plik

@ -285,6 +285,7 @@ enum Avision_Option
OPT_IR, /* infra-red */
OPT_MULTISAMPLE, /* multi-sample */
OPT_MISC_GROUP,
OPT_FRAME, /* Film holder control */
OPT_POWER_SAVE_TIME, /* set power save time to the scanner */