From kde-devel Thu May 22 12:38:58 2008 From: Thomas Gillespie Date: Thu, 22 May 2008 12:38:58 +0000 To: kde-devel Subject: Re: libksane Message-Id: <200805221339.03402.tomjamesgillespie () googlemail ! com> X-MARC-Message: https://marc.info/?l=kde-devel&m=121146007202714 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0343120944==" --===============0343120944== Content-Type: multipart/signed; boundary="nextPart3249689.RfZUhriGX4"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart3249689.RfZUhriGX4 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi K=E5re > As I see it there is only a gui part. The non gui part would be the readi= ng > of the data it self (which is ~2 functions). All the parameter > editing/setting is integrated into the gui. > To save some memory it could be possible to make a "openDeviceNoWidget" > that wouldn't create the widgets, but only read the available options and > wait for a scan command. The non gui part may not be a complicated class, with only functions for im= age=20 grabbing, device selecting and parameter setting, but it would do all the h= ard=20 work with sane, allowing the gui part to simply hook into this class, but a= lso=20 allowing developers to create different gui's, more suited to their needs,= =20 without replicating the whole sane interfacing code. > There I must disagree :) I don't think scan source, mode, bit depth and > resolution can be too complicated/confusing. Maybe confusing was the wrong word, 'unnecessary in some situations' may be= a=20 better phrase. > But for stuff like archiving documents, there could be applications that > would scan all the pages in an ADF, with specific settings, without user > intervention. There a gui less interface would be better :) Exactly, in fact this whole idea came from a small ocr app I was trying to= =20 build, where i simply want to grab the whole image in a resonably high=20 resolution and then pass it to my main app. Here the needs are simple and=20 almost all of the options are unnecessary for my needs. The KSaneWidget as = it=20 is seems a bit overkill for my needs. Thanks Tom --nextPart3249689.RfZUhriGX4 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBINWlnsqVMXRJ0E1QRAuLjAJ0Si+IQqv5eKaVQxY0HhsC5hwtC0ACfRBCM xrqc73h++vFkI+JlFPz7FQE= =sTYy -----END PGP SIGNATURE----- --nextPart3249689.RfZUhriGX4-- --===============0343120944== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============0343120944==--