"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "t/06098_Dialog_Scan.t" between
gscan2pdf-2.13.1.tar.xz and gscan2pdf-2.13.2.tar.xz

About: gscan2pdf is a GUI to produce PDFs from scanned documents (using Perl).

06098_Dialog_Scan.t  (gscan2pdf-2.13.1.tar.xz):06098_Dialog_Scan.t  (gscan2pdf-2.13.2.tar.xz)
skipping to change at line 82 skipping to change at line 82
type => SANE_TYPE_GROUP, type => SANE_TYPE_GROUP,
'constraint_type' => SANE_CONSTRAINT_NONE 'constraint_type' => SANE_CONSTRAINT_NONE
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT, 'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT,
'max_values' => '1', 'max_values' => '1',
'name' => 'mode', 'name' => 'mode',
'val' => 'Gray', 'val' => 'Gray',
'index' => 2, 'index' => 2,
'unit' => SANE_UNIT_NONE, 'unit' => SANE_UNIT_NONE,
'desc' => 'desc' =>
'Selects the scan mode (e.g., lineart, monochrome, or color).', 'Selects the scan mode (e.g., lineart, monochrome, or color).',
'type' => SANE_TYPE_STRING, 'type' => SANE_TYPE_STRING,
'constraint' => [ 'Gray', 'Color' ], 'constraint' => [ 'Gray', 'Color' ],
'title' => 'Mode', 'title' => 'Mode',
constraint_type => SANE_CONSTRAINT_STRING_LIST, constraint_type => SANE_CONSTRAINT_STRING_LIST,
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT, 'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT,
'max_values' => '1', 'max_values' => '1',
'name' => 'depth', 'name' => 'depth',
'val' => '8', 'val' => '8',
'index' => 3, 'index' => 3,
'unit' => SANE_UNIT_NONE, 'unit' => SANE_UNIT_NONE,
'desc' => 'desc' =>
'Number of bits per sample, typical values are 1 for "line-art" and 8 for multib it scans.', 'Number of bits per sample, typical values are 1 for "line-art" and 8 for multib it scans.',
'type' => SANE_TYPE_INT, 'type' => SANE_TYPE_INT,
'constraint' => [ '1', '8', '16' ], 'constraint' => [ '1', '8', '16' ],
'title' => 'Depth', 'title' => 'Depth',
'constraint_type' => SANE_CONSTRAINT_WORD_LIST 'constraint_type' => SANE_CONSTRAINT_WORD_LIST
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT, 'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT,
'max_values' => '1', 'max_values' => '1',
'name' => 'hand-scanner', 'name' => 'hand-scanner',
'val' => '0', 'val' => '0',
'index' => 4, 'index' => 4,
'unit' => SANE_UNIT_NONE, 'unit' => SANE_UNIT_NONE,
'desc' => 'desc' =>
'Simulate a hand-scanner. Hand-scanners do not know the image height a priori. Instead, they return a height of -1. Setting this option allows to test whethe r a frontend can handle this correctly. This option also enables a fixed width of 11 cm.', 'Simulate a hand-scanner. Hand-scanners do not know the image height a priori. Instead, they return a height of -1. Setting this option allows to test whethe r a frontend can handle this correctly. This option also enables a fixed width of 11 cm.',
'title' => 'Hand scanner', 'title' => 'Hand scanner',
'type' => SANE_TYPE_BOOL, 'type' => SANE_TYPE_BOOL,
'constraint_type' => SANE_CONSTRAINT_NONE 'constraint_type' => SANE_CONSTRAINT_NONE
}, },
{ {
'cap' => '37', 'cap' => '37',
'max_values' => '1', 'max_values' => '1',
'name' => 'three-pass', 'name' => 'three-pass',
'unit' => SANE_UNIT_NONE, 'unit' => SANE_UNIT_NONE,
'index' => 5, 'index' => 5,
'desc' => 'desc' =>
'Simulate a three-pass scanner. In color mode, three frames are transmitted.', 'Simulate a three-pass scanner. In color mode, three frames are transmitted.',
'title' => 'Three pass', 'title' => 'Three pass',
'type' => SANE_TYPE_BOOL, 'type' => SANE_TYPE_BOOL,
'constraint_type' => SANE_CONSTRAINT_NONE 'constraint_type' => SANE_CONSTRAINT_NONE
}, },
{ {
'cap' => '37', 'cap' => '37',
'max_values' => '1', 'max_values' => '1',
'name' => 'three-pass-order', 'name' => 'three-pass-order',
'index' => 6, 'index' => 6,
skipping to change at line 164 skipping to change at line 164
'title' => 'Resolution', 'title' => 'Resolution',
constraint_type => SANE_CONSTRAINT_RANGE, constraint_type => SANE_CONSTRAINT_RANGE,
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT, 'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT,
'max_values' => '1', 'max_values' => '1',
'name' => 'source', 'name' => 'source',
'val' => 'Flatbed', 'val' => 'Flatbed',
'index' => 8, 'index' => 8,
'unit' => SANE_UNIT_NONE, 'unit' => SANE_UNIT_NONE,
'desc' => 'desc' =>
'If Automatic Document Feeder is selected, the feeder will be \'empty\' after 10 scans.', 'If Automatic Document Feeder is selected, the feeder will be \'empty\' after 10 scans.',
'type' => SANE_TYPE_STRING, 'type' => SANE_TYPE_STRING,
'constraint' => [ 'Flatbed', 'Automatic Document Feeder' ], 'constraint' => [ 'Flatbed', 'Automatic Document Feeder' ],
'title' => 'Source', 'title' => 'Source',
constraint_type => SANE_CONSTRAINT_STRING_LIST, constraint_type => SANE_CONSTRAINT_STRING_LIST,
}, },
{ {
'cap' => '0', 'cap' => '0',
'max_values' => '0', 'max_values' => '0',
'name' => '', 'name' => '',
skipping to change at line 189 skipping to change at line 189
type => SANE_TYPE_GROUP, type => SANE_TYPE_GROUP,
'constraint_type' => SANE_CONSTRAINT_NONE 'constraint_type' => SANE_CONSTRAINT_NONE
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT, 'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT,
'max_values' => '1', 'max_values' => '1',
'name' => 'test-picture', 'name' => 'test-picture',
'val' => 'Solid black', 'val' => 'Solid black',
'index' => 10, 'index' => 10,
'unit' => SANE_UNIT_NONE, 'unit' => SANE_UNIT_NONE,
'desc' => 'desc' =>
'Select the kind of test picture. Available options: Solid black: fills the whol e scan with black. Solid white: fills the whole scan with white. Color pattern: draws various color test patterns depending on the mode. Grid: draws a black/whi te grid with a width and height of 10 mm per square.', 'Select the kind of test picture. Available options: Solid black: fills the whol e scan with black. Solid white: fills the whole scan with white. Color pattern: draws various color test patterns depending on the mode. Grid: draws a black/whi te grid with a width and height of 10 mm per square.',
'type' => SANE_TYPE_STRING, 'type' => SANE_TYPE_STRING,
'constraint' => 'constraint' =>
[ 'Solid black', 'Solid white', 'Color pattern', 'Grid' ], [ 'Solid black', 'Solid white', 'Color pattern', 'Grid' ],
'title' => 'Test picture', 'title' => 'Test picture',
constraint_type => SANE_CONSTRAINT_STRING_LIST, constraint_type => SANE_CONSTRAINT_STRING_LIST,
}, },
{ {
'cap' => '37', 'cap' => '37',
'max_values' => '1', 'max_values' => '1',
'name' => 'invert-endianess', 'name' => 'invert-endianess',
'unit' => SANE_UNIT_NONE, 'unit' => SANE_UNIT_NONE,
'index' => 11, 'index' => 11,
'desc' => 'desc' =>
'Exchange upper and lower byte of image data in 16 bit modes. This option can be used to test the 16 bit modes of frontends, e.g. if the frontend uses the corre ct endianness.', 'Exchange upper and lower byte of image data in 16 bit modes. This option can be used to test the 16 bit modes of frontends, e.g. if the frontend uses the corre ct endianness.',
'title' => 'Invert endianess', 'title' => 'Invert endianess',
'type' => SANE_TYPE_BOOL, 'type' => SANE_TYPE_BOOL,
'constraint_type' => SANE_CONSTRAINT_NONE 'constraint_type' => SANE_CONSTRAINT_NONE
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT, 'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT,
'max_values' => '1', 'max_values' => '1',
'name' => 'read-limit', 'name' => 'read-limit',
'val' => '0', 'val' => '0',
'index' => 12, 'index' => 12,
'unit' => SANE_UNIT_NONE, 'unit' => SANE_UNIT_NONE,
'desc' => 'desc' =>
'Limit the amount of data transferred with each call to sane_read().', 'Limit the amount of data transferred with each call to sane_read().',
'title' => 'Read limit', 'title' => 'Read limit',
'type' => SANE_TYPE_BOOL, 'type' => SANE_TYPE_BOOL,
'constraint_type' => SANE_CONSTRAINT_NONE 'constraint_type' => SANE_CONSTRAINT_NONE
}, },
{ {
'cap' => '37', 'cap' => '37',
'max_values' => '1', 'max_values' => '1',
'name' => 'read-limit-size', 'name' => 'read-limit-size',
'index' => 13, 'index' => 13,
'unit' => SANE_UNIT_NONE, 'unit' => SANE_UNIT_NONE,
'desc' => 'desc' =>
'The (maximum) amount of data transferred with each call to sane_read().', 'The (maximum) amount of data transferred with each call to sane_read().',
'title' => 'Read limit size', 'title' => 'Read limit size',
'type' => SANE_TYPE_INT, 'type' => SANE_TYPE_INT,
'constraint' => { 'constraint' => {
'min' => '1', 'min' => '1',
'max' => '65536', 'max' => '65536',
'quant' => '1' 'quant' => '1'
}, },
constraint_type => SANE_CONSTRAINT_RANGE, constraint_type => SANE_CONSTRAINT_RANGE,
}, },
skipping to change at line 257 skipping to change at line 257
'title' => 'Read delay', 'title' => 'Read delay',
'type' => SANE_TYPE_BOOL, 'type' => SANE_TYPE_BOOL,
'constraint_type' => SANE_CONSTRAINT_NONE 'constraint_type' => SANE_CONSTRAINT_NONE
}, },
{ {
'cap' => '37', 'cap' => '37',
'max_values' => '1', 'max_values' => '1',
'name' => 'read-delay-duration', 'name' => 'read-delay-duration',
'index' => 15, 'index' => 15,
'unit' => SANE_UNIT_MICROSECOND, 'unit' => SANE_UNIT_MICROSECOND,
'desc' => 'desc' =>
'How long to wait after transferring each buffer of data through the pipe.', 'How long to wait after transferring each buffer of data through the pipe.',
'title' => 'Read delay duration', 'title' => 'Read delay duration',
'type' => SANE_TYPE_INT, 'type' => SANE_TYPE_INT,
'constraint' => { 'constraint' => {
'min' => '1000', 'min' => '1000',
'max' => '200000', 'max' => '200000',
'quant' => '1000' 'quant' => '1000'
}, },
constraint_type => SANE_CONSTRAINT_RANGE, constraint_type => SANE_CONSTRAINT_RANGE,
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT, 'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT,
'max_values' => '1', 'max_values' => '1',
'name' => 'read-return-value', 'name' => 'read-return-value',
'val' => 'Default', 'val' => 'Default',
'index' => 16, 'index' => 16,
'unit' => SANE_UNIT_NONE, 'unit' => SANE_UNIT_NONE,
'desc' => 'desc' =>
'Select the return-value of sane_read(). "Default" is the normal handling for sc anning. All other status codes are for testing how the frontend handles them.', 'Select the return-value of sane_read(). "Default" is the normal handling for sc anning. All other status codes are for testing how the frontend handles them.',
'type' => SANE_TYPE_STRING, 'type' => SANE_TYPE_STRING,
'constraint' => [ 'constraint' => [
'Default', 'SANE_STATUS_UNSUPPORTED', 'Default', 'SANE_STATUS_UNSUPPORTED',
'SANE_STATUS_CANCELLED', 'SANE_STATUS_DEVICE_BUSY', 'SANE_STATUS_CANCELLED', 'SANE_STATUS_DEVICE_BUSY',
'SANE_STATUS_INVAL', 'SANE_STATUS_EOF', 'SANE_STATUS_INVAL', 'SANE_STATUS_EOF',
'SANE_STATUS_JAMMED', 'SANE_STATUS_NO_DOCS', 'SANE_STATUS_JAMMED', 'SANE_STATUS_NO_DOCS',
'SANE_STATUS_COVER_OPEN', 'SANE_STATUS_IO_ERROR', 'SANE_STATUS_COVER_OPEN', 'SANE_STATUS_IO_ERROR',
'SANE_STATUS_NO_MEM', 'SANE_STATUS_ACCESS_DENIED' 'SANE_STATUS_NO_MEM', 'SANE_STATUS_ACCESS_DENIED'
], ],
'title' => 'Read return value', 'title' => 'Read return value',
constraint_type => SANE_CONSTRAINT_STRING_LIST, constraint_type => SANE_CONSTRAINT_STRING_LIST,
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT, 'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT,
'max_values' => '1', 'max_values' => '1',
'name' => 'ppl-loss', 'name' => 'ppl-loss',
'val' => '0', 'val' => '0',
'index' => 17, 'index' => 17,
'unit' => SANE_UNIT_PIXEL, 'unit' => SANE_UNIT_PIXEL,
'desc' => 'desc' =>
'The number of pixels that are wasted at the end of each line.', 'The number of pixels that are wasted at the end of each line.',
'type' => SANE_TYPE_INT, 'type' => SANE_TYPE_INT,
'constraint' => { 'constraint' => {
'min' => '-128', 'min' => '-128',
'max' => '128', 'max' => '128',
'quant' => '1' 'quant' => '1'
}, },
'title' => 'Ppl loss', 'title' => 'Ppl loss',
constraint_type => SANE_CONSTRAINT_RANGE, constraint_type => SANE_CONSTRAINT_RANGE,
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT, 'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT,
'max_values' => '1', 'max_values' => '1',
'name' => 'fuzzy-parameters', 'name' => 'fuzzy-parameters',
'val' => '0', 'val' => '0',
'index' => 18, 'index' => 18,
'unit' => SANE_UNIT_NONE, 'unit' => SANE_UNIT_NONE,
'desc' => 'desc' =>
'Return fuzzy lines and bytes per line when sane_parameters() is called before s ane_start().', 'Return fuzzy lines and bytes per line when sane_parameters() is called before s ane_start().',
'title' => 'Fuzzy parameters', 'title' => 'Fuzzy parameters',
'type' => SANE_TYPE_BOOL, 'type' => SANE_TYPE_BOOL,
'constraint_type' => SANE_CONSTRAINT_NONE 'constraint_type' => SANE_CONSTRAINT_NONE
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT, 'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT,
'max_values' => '1', 'max_values' => '1',
'name' => 'non-blocking', 'name' => 'non-blocking',
'val' => '0', 'val' => '0',
'index' => 19, 'index' => 19,
'unit' => SANE_UNIT_NONE, 'unit' => SANE_UNIT_NONE,
'desc' => 'desc' =>
'Use non-blocking IO for sane_read() if supported by the frontend.', 'Use non-blocking IO for sane_read() if supported by the frontend.',
'title' => 'Non blocking', 'title' => 'Non blocking',
'type' => SANE_TYPE_BOOL, 'type' => SANE_TYPE_BOOL,
'constraint_type' => SANE_CONSTRAINT_NONE 'constraint_type' => SANE_CONSTRAINT_NONE
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT, 'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT,
'max_values' => '1', 'max_values' => '1',
'name' => 'select-fd', 'name' => 'select-fd',
'val' => '0', 'val' => '0',
'index' => 20, 'index' => 20,
'unit' => SANE_UNIT_NONE, 'unit' => SANE_UNIT_NONE,
'desc' => 'desc' =>
'Offer a select filedescriptor for detecting if sane_read() will return data.', 'Offer a select filedescriptor for detecting if sane_read() will return data.',
'title' => 'Select fd', 'title' => 'Select fd',
'type' => SANE_TYPE_BOOL, 'type' => SANE_TYPE_BOOL,
'constraint_type' => SANE_CONSTRAINT_NONE 'constraint_type' => SANE_CONSTRAINT_NONE
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT, 'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT,
'max_values' => '1', 'max_values' => '1',
'name' => 'enable-test-options', 'name' => 'enable-test-options',
'val' => '0', 'val' => '0',
'index' => 21, 'index' => 21,
'unit' => SANE_UNIT_NONE, 'unit' => SANE_UNIT_NONE,
'desc' => 'desc' =>
'Enable various test options. This is for testing the ability of frontends to vi ew and modify all the different SANE option types.', 'Enable various test options. This is for testing the ability of frontends to vi ew and modify all the different SANE option types.',
'title' => 'Enable test options', 'title' => 'Enable test options',
'type' => SANE_TYPE_BOOL, 'type' => SANE_TYPE_BOOL,
'constraint_type' => SANE_CONSTRAINT_NONE 'constraint_type' => SANE_CONSTRAINT_NONE
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT, 'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT,
'max_values' => '1', 'max_values' => '1',
'name' => 'read-length-zero', 'name' => 'read-length-zero',
'val' => '0', 'val' => '0',
'index' => 22, 'index' => 22,
'unit' => SANE_UNIT_NONE, 'unit' => SANE_UNIT_NONE,
'desc' => 'desc' =>
'sane_read() returns data \'x\' but length=0 on first call. This is helpful for testing slow device behavior that returns no data when background work is in pro cess and zero length with SANE_STATUS_GOOD although data is NOT filled with 0.', 'sane_read() returns data \'x\' but length=0 on first call. This is helpful for testing slow device behavior that returns no data when background work is in pro cess and zero length with SANE_STATUS_GOOD although data is NOT filled with 0.',
'title' => 'Read length zero', 'title' => 'Read length zero',
'type' => SANE_TYPE_BOOL, 'type' => SANE_TYPE_BOOL,
'constraint_type' => SANE_CONSTRAINT_NONE 'constraint_type' => SANE_CONSTRAINT_NONE
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT, 'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT,
'max_values' => '0', 'max_values' => '0',
'name' => 'print-options', 'name' => 'print-options',
'unit' => SANE_UNIT_NONE, 'unit' => SANE_UNIT_NONE,
skipping to change at line 469 skipping to change at line 469
'title' => 'Bottom-right y', 'title' => 'Bottom-right y',
constraint_type => SANE_CONSTRAINT_RANGE, constraint_type => SANE_CONSTRAINT_RANGE,
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT, 'cap' => SANE_CAP_SOFT_DETECT + SANE_CAP_SOFT_SELECT,
'max_values' => '1', 'max_values' => '1',
'name' => 'page-width', 'name' => 'page-width',
'val' => '200', 'val' => '200',
'index' => 29, 'index' => 29,
'unit' => SANE_UNIT_MM, 'unit' => SANE_UNIT_MM,
'desc' => 'desc' =>
'Specifies the width of the media. Required for automatic centering of sheet-fe d scans.', 'Specifies the width of the media. Required for automatic centering of sheet-fe d scans.',
'type' => SANE_TYPE_INT, 'type' => SANE_TYPE_INT,
'constraint' => { 'constraint' => {
'min' => '0', 'min' => '0',
'max' => '300', 'max' => '300',
'quant' => '1' 'quant' => '1'
}, },
'title' => 'Page width', 'title' => 'Page width',
constraint_type => SANE_CONSTRAINT_RANGE, constraint_type => SANE_CONSTRAINT_RANGE,
}, },
skipping to change at line 516 skipping to change at line 516
'constraint_type' => SANE_CONSTRAINT_NONE 'constraint_type' => SANE_CONSTRAINT_NONE
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + 'cap' => SANE_CAP_SOFT_DETECT +
SANE_CAP_SOFT_SELECT + SANE_CAP_SOFT_SELECT +
SANE_CAP_INACTIVE, SANE_CAP_INACTIVE,
'max_values' => '1', 'max_values' => '1',
'name' => 'bool-soft-select-soft-detect', 'name' => 'bool-soft-select-soft-detect',
'unit' => SANE_UNIT_NONE, 'unit' => SANE_UNIT_NONE,
'index' => 32, 'index' => 32,
'desc' => 'desc' =>
'(1/6) Bool test option that has soft select and soft detect (and advanced) capa bilities. That\'s just a normal bool option.', '(1/6) Bool test option that has soft select and soft detect (and advanced) capa bilities. That\'s just a normal bool option.',
'title' => 'Bool soft select soft detect', 'title' => 'Bool soft select soft detect',
'type' => SANE_TYPE_BOOL, 'type' => SANE_TYPE_BOOL,
'constraint_type' => SANE_CONSTRAINT_NONE 'constraint_type' => SANE_CONSTRAINT_NONE
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + 'cap' => SANE_CAP_SOFT_DETECT +
SANE_CAP_SOFT_SELECT + SANE_CAP_SOFT_SELECT +
SANE_CAP_INACTIVE, SANE_CAP_INACTIVE,
'max_values' => '1', 'max_values' => '1',
'name' => 'bool-soft-select-soft-detect-emulated', 'name' => 'bool-soft-select-soft-detect-emulated',
'unit' => SANE_UNIT_NONE, 'unit' => SANE_UNIT_NONE,
'index' => 33, 'index' => 33,
'desc' => 'desc' =>
'(5/6) Bool test option that has soft select, soft detect, and emulated (and adv anced) capabilities.', '(5/6) Bool test option that has soft select, soft detect, and emulated (and adv anced) capabilities.',
'title' => 'Bool soft select soft detect emulated', 'title' => 'Bool soft select soft detect emulated',
'type' => SANE_TYPE_BOOL, 'type' => SANE_TYPE_BOOL,
'constraint_type' => SANE_CONSTRAINT_NONE 'constraint_type' => SANE_CONSTRAINT_NONE
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + 'cap' => SANE_CAP_SOFT_DETECT +
SANE_CAP_SOFT_SELECT + SANE_CAP_SOFT_SELECT +
SANE_CAP_INACTIVE + SANE_CAP_INACTIVE +
SANE_CAP_AUTOMATIC, SANE_CAP_AUTOMATIC,
'max_values' => '1', 'max_values' => '1',
'name' => 'bool-soft-select-soft-detect-auto', 'name' => 'bool-soft-select-soft-detect-auto',
'unit' => SANE_UNIT_NONE, 'unit' => SANE_UNIT_NONE,
'index' => 34, 'index' => 34,
'desc' => 'desc' =>
'(6/6) Bool test option that has soft select, soft detect, and automatic (and ad vanced) capabilities. This option can be automatically set by the backend.', '(6/6) Bool test option that has soft select, soft detect, and automatic (and ad vanced) capabilities. This option can be automatically set by the backend.',
'title' => 'Bool soft select soft detect auto', 'title' => 'Bool soft select soft detect auto',
'type' => SANE_TYPE_BOOL, 'type' => SANE_TYPE_BOOL,
'constraint_type' => SANE_CONSTRAINT_NONE 'constraint_type' => SANE_CONSTRAINT_NONE
}, },
{ {
'cap' => 0, 'cap' => 0,
'max_values' => '0', 'max_values' => '0',
'name' => '', 'name' => '',
'unit' => SANE_UNIT_NONE, 'unit' => SANE_UNIT_NONE,
skipping to change at line 583 skipping to change at line 583
'constraint_type' => SANE_CONSTRAINT_NONE 'constraint_type' => SANE_CONSTRAINT_NONE
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + 'cap' => SANE_CAP_SOFT_DETECT +
SANE_CAP_SOFT_SELECT + SANE_CAP_SOFT_SELECT +
SANE_CAP_INACTIVE, SANE_CAP_INACTIVE,
'max_values' => '1', 'max_values' => '1',
'name' => 'int-constraint-range', 'name' => 'int-constraint-range',
'index' => 37, 'index' => 37,
'unit' => SANE_UNIT_PIXEL, 'unit' => SANE_UNIT_PIXEL,
'desc' => 'desc' =>
'(2/6) Int test option with unit pixel and constraint range set. Minimum is 4, m aximum 192, and quant is 2.', '(2/6) Int test option with unit pixel and constraint range set. Minimum is 4, m aximum 192, and quant is 2.',
'title' => 'Int constraint range', 'title' => 'Int constraint range',
'type' => SANE_TYPE_INT, 'type' => SANE_TYPE_INT,
'constraint' => { 'constraint' => {
'min' => '4', 'min' => '4',
'max' => '192', 'max' => '192',
'quant' => '2' 'quant' => '2'
}, },
constraint_type => SANE_CONSTRAINT_RANGE, constraint_type => SANE_CONSTRAINT_RANGE,
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + 'cap' => SANE_CAP_SOFT_DETECT +
SANE_CAP_SOFT_SELECT + SANE_CAP_SOFT_SELECT +
SANE_CAP_INACTIVE, SANE_CAP_INACTIVE,
'max_values' => '1', 'max_values' => '1',
'name' => 'int-constraint-word-list', 'name' => 'int-constraint-word-list',
'index' => 38, 'index' => 38,
'unit' => SANE_UNIT_BIT, 'unit' => SANE_UNIT_BIT,
'desc' => 'desc' =>
'(3/6) Int test option with unit bits and constraint word list set.', '(3/6) Int test option with unit bits and constraint word list set.',
'title' => 'Int constraint word list', 'title' => 'Int constraint word list',
'type' => SANE_TYPE_INT, 'type' => SANE_TYPE_INT,
'constraint' => [ 'constraint' => [
'-42', '-8', '0', '17', '-42', '-8', '0', '17',
'42', '256', '65536', '16777216', '42', '256', '65536', '16777216',
'1073741824' '1073741824'
], ],
'constraint_type' => SANE_CONSTRAINT_WORD_LIST 'constraint_type' => SANE_CONSTRAINT_WORD_LIST
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + 'cap' => SANE_CAP_SOFT_DETECT +
SANE_CAP_SOFT_SELECT + SANE_CAP_SOFT_SELECT +
SANE_CAP_INACTIVE, SANE_CAP_INACTIVE,
'max_values' => 255, 'max_values' => 255,
'name' => 'int-constraint-array', 'name' => 'int-constraint-array',
'unit' => SANE_UNIT_NONE, 'unit' => SANE_UNIT_NONE,
'index' => 39, 'index' => 39,
'desc' => 'desc' =>
'(4/6) Int test option with unit mm and using an array without constraints.', '(4/6) Int test option with unit mm and using an array without constraints.',
'title' => 'Int constraint array', 'title' => 'Int constraint array',
'type' => SANE_TYPE_INT, 'type' => SANE_TYPE_INT,
'constraint_type' => SANE_CONSTRAINT_NONE 'constraint_type' => SANE_CONSTRAINT_NONE
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + 'cap' => SANE_CAP_SOFT_DETECT +
SANE_CAP_SOFT_SELECT + SANE_CAP_SOFT_SELECT +
SANE_CAP_INACTIVE, SANE_CAP_INACTIVE,
'max_values' => 255, 'max_values' => 255,
'name' => 'int-constraint-array-constraint-range', 'name' => 'int-constraint-array-constraint-range',
'index' => 40, 'index' => 40,
'unit' => SANE_UNIT_DPI, 'unit' => SANE_UNIT_DPI,
'desc' => 'desc' =>
'(5/6) Int test option with unit dpi and using an array with a range constraint. Minimum is 4, maximum 192, and quant is 2.', '(5/6) Int test option with unit dpi and using an array with a range constraint. Minimum is 4, maximum 192, and quant is 2.',
'title' => 'Int constraint array constraint range', 'title' => 'Int constraint array constraint range',
'type' => SANE_TYPE_INT, 'type' => SANE_TYPE_INT,
'constraint' => { 'constraint' => {
'min' => '4', 'min' => '4',
'max' => '192', 'max' => '192',
'quant' => '2' 'quant' => '2'
}, },
constraint_type => SANE_CONSTRAINT_RANGE, constraint_type => SANE_CONSTRAINT_RANGE,
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + 'cap' => SANE_CAP_SOFT_DETECT +
SANE_CAP_SOFT_SELECT + SANE_CAP_SOFT_SELECT +
SANE_CAP_INACTIVE, SANE_CAP_INACTIVE,
'max_values' => 255, 'max_values' => 255,
'name' => 'int-constraint-array-constraint-word-list', 'name' => 'int-constraint-array-constraint-word-list',
'index' => 41, 'index' => 41,
'unit' => SANE_UNIT_PERCENT, 'unit' => SANE_UNIT_PERCENT,
'desc' => 'desc' =>
'(6/6) Int test option with unit percent and using an array with a word list con straint.', '(6/6) Int test option with unit percent and using an array with a word list con straint.',
'title' => 'Int constraint array constraint word list', 'title' => 'Int constraint array constraint word list',
'type' => SANE_TYPE_INT, 'type' => SANE_TYPE_INT,
'constraint' => [ 'constraint' => [
'-42', '-8', '0', '17', '-42', '-8', '0', '17',
'42', '256', '65536', '16777216', '42', '256', '65536', '16777216',
'1073741824' '1073741824'
], ],
'constraint_type' => SANE_CONSTRAINT_WORD_LIST 'constraint_type' => SANE_CONSTRAINT_WORD_LIST
}, },
skipping to change at line 697 skipping to change at line 697
'constraint_type' => SANE_CONSTRAINT_NONE 'constraint_type' => SANE_CONSTRAINT_NONE
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + 'cap' => SANE_CAP_SOFT_DETECT +
SANE_CAP_SOFT_SELECT + SANE_CAP_SOFT_SELECT +
SANE_CAP_INACTIVE, SANE_CAP_INACTIVE,
'max_values' => '1', 'max_values' => '1',
'name' => 'fixed-constraint-range', 'name' => 'fixed-constraint-range',
'index' => 44, 'index' => 44,
'unit' => SANE_UNIT_MICROSECOND, 'unit' => SANE_UNIT_MICROSECOND,
'desc' => 'desc' =>
'(2/3) Fixed test option with unit microsecond and constraint range set. Minimum is -42.17, maximum 32767.9999, and quant is 2.0.', '(2/3) Fixed test option with unit microsecond and constraint range set. Minimum is -42.17, maximum 32767.9999, and quant is 2.0.',
'title' => 'Fixed constraint range', 'title' => 'Fixed constraint range',
'type' => SANE_TYPE_FIXED, 'type' => SANE_TYPE_FIXED,
'constraint' => { 'constraint' => {
'min' => '-42.17', 'min' => '-42.17',
'max' => '32768', 'max' => '32768',
'quant' => '2' 'quant' => '2'
}, },
constraint_type => SANE_CONSTRAINT_RANGE, constraint_type => SANE_CONSTRAINT_RANGE,
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + 'cap' => SANE_CAP_SOFT_DETECT +
SANE_CAP_SOFT_SELECT + SANE_CAP_SOFT_SELECT +
SANE_CAP_INACTIVE, SANE_CAP_INACTIVE,
'max_values' => '1', 'max_values' => '1',
'name' => 'fixed-constraint-word-list', 'name' => 'fixed-constraint-word-list',
'index' => 45, 'index' => 45,
'unit' => SANE_UNIT_NONE, 'unit' => SANE_UNIT_NONE,
'desc' => 'desc' =>
'(3/3) Fixed test option with no unit and constraint word list set.', '(3/3) Fixed test option with no unit and constraint word list set.',
'title' => 'Fixed constraint word list', 'title' => 'Fixed constraint word list',
'type' => SANE_TYPE_FIXED, 'type' => SANE_TYPE_FIXED,
'constraint' => [ '-32.7', '12.1', '42', '129.5' ], 'constraint' => [ '-32.7', '12.1', '42', '129.5' ],
'constraint_type' => SANE_CONSTRAINT_WORD_LIST 'constraint_type' => SANE_CONSTRAINT_WORD_LIST
}, },
{ {
'cap' => '0', 'cap' => '0',
'max_values' => '0', 'max_values' => '0',
'name' => '', 'name' => '',
skipping to change at line 773 skipping to change at line 773
constraint_type => SANE_CONSTRAINT_STRING_LIST, constraint_type => SANE_CONSTRAINT_STRING_LIST,
}, },
{ {
'cap' => SANE_CAP_SOFT_DETECT + 'cap' => SANE_CAP_SOFT_DETECT +
SANE_CAP_SOFT_SELECT + SANE_CAP_SOFT_SELECT +
SANE_CAP_INACTIVE, SANE_CAP_INACTIVE,
'max_values' => '1', 'max_values' => '1',
'name' => 'string-constraint-long-string-list', 'name' => 'string-constraint-long-string-list',
'index' => 49, 'index' => 49,
'unit' => SANE_UNIT_NONE, 'unit' => SANE_UNIT_NONE,
'desc' => 'desc' =>
'(3/3) String test option with string list constraint. Contains some more entrie s...', '(3/3) String test option with string list constraint. Contains some more entrie s...',
'title' => 'String constraint long string list', 'title' => 'String constraint long string list',
'type' => SANE_TYPE_STRING, 'type' => SANE_TYPE_STRING,
'constraint' => [ 'constraint' => [
'First entry', 'Second entry', '3', '4', 'First entry', 'Second entry', '3', '4',
'5', '6', '7', '8', '5', '6', '7', '8',
'9', '10', '11', '12', '9', '10', '11', '12',
'13', '14', '15', '16', '13', '14', '15', '16',
'17', '18', '19', '20', '17', '18', '19', '20',
'21', '22', '23', '24', '21', '22', '23', '24',
 End of changes. 30 change blocks. 
30 lines changed or deleted 30 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)