Commit Graph

295 Commits

Author SHA1 Message Date
Ben Olden-Cooligan
3bf39b6307 Add a notification for updates (opt in, not for msi) 2018-09-16 20:11:03 -04:00
Ben Olden-Cooligan
2da3353cca Verify hash and signature before updating 2018-09-16 15:41:33 -04:00
Ben Olden-Cooligan
971d4b7e49 Auto update WIP 2018-09-16 13:53:45 -04:00
Ben Olden-Cooligan
be7199d13e Add an AssertNoAwait extensions to tasks 2018-09-15 23:28:08 -04:00
Ben Olden-Cooligan
e81bba9bd2 Simplify WIA code and support modal/nonmodal switch 2018-09-15 19:38:18 -04:00
Ben Olden-Cooligan
4588dc1936 Refactor ocr request names 2018-09-15 12:48:58 -04:00
Ben Olden-Cooligan
e071ffbce0 Fix unnecessary resource files 2018-09-13 20:29:22 -04:00
Ben Olden-Cooligan
88481cb359 Use OcrResultManager to cache and manage foreground ocr 2018-09-13 17:35:54 -04:00
Ben Olden-Cooligan
96ce0e842a OcrResultManager WIP 2018-09-11 11:11:35 -04:00
Ben Olden-Cooligan
809b5dab54 Optimize deleting lots of images 2018-09-09 00:55:59 -04:00
Ben Olden-Cooligan
8f391d29dd Implement a widget for background operation progress 2018-09-08 16:06:05 -04:00
Ben Olden-Cooligan
760005f1af Base ImageForm class WIP
TODO still:
Fix conditional checkbox
Fix z-order of checkbox
Optimize workingImage2
Clean up method order
Use in all other image forms
2018-09-07 01:25:47 -04:00
Ben Olden-Cooligan
617326293b Render thumbnails on a worker process 2018-09-06 17:28:06 -04:00
Ben Olden-Cooligan
5ae357a037 Improved thumbnail rendering WIP 2018-09-06 14:58:12 -04:00
Ben Olden-Cooligan
418e0b9960 Async WIP
Make more I/O bound operations asynchronous
Restructure scanning to support async via ScannedImageSource
Add twain image callbacks

Some things will need synchronization fixed still
2018-09-05 16:26:04 -04:00
Ben Olden-Cooligan
865d6332a5 Move ILProfileIcons to the correct folder 2018-08-27 17:57:12 -04:00
Ben Olden-Cooligan
01debf2cc8 Fully clean (i.e. remove bin/obj) projects on Clean 2018-08-26 22:55:08 -04:00
Ben Olden-Cooligan
490600e3b3 Remove ThreadFactory (in favor of Task.Factory) and fix culture in tasks
This is still a bit fragile. Explicitly using CurrentCulture in async methods won't behave as intended. But I don't think there are any instances of that.

TaskCreationOptions.LongRunning should be used more too to prevent blocking
2018-08-26 13:24:14 -04:00
Ben Olden-Cooligan
7c1aaa5e60 Migrate operations to the new async model 2018-08-26 12:05:22 -04:00
Ben Olden-Cooligan
f694697901 Add Microsoft.Bcl.Async and required dependencies 2018-08-25 22:24:46 -04:00
Ben Olden-Cooligan
d7f1cc75cd Start work to run operations in background 2018-08-25 22:15:23 -04:00
Ben Olden-Cooligan
9addd55659 Remove no-longer-needed worker code. Refer back to this if needed at some point in the future.
Search tags: Worker, WorkerOperation, WorkerCallback, Snapshot, Serialization
2018-08-25 02:21:58 -04:00
Ben Olden-Cooligan
6fdbcf591d Switch NAPS2/NAPS2.Console to AnyCpu, NAPS2.Worker to x86, change UseWorker logic accordingly, and fix Twain window ownership 2018-08-24 18:49:04 -04:00
Ben Olden-Cooligan
580672a1f0 Support multiple sets of language data 2018-08-24 15:02:51 -04:00
Ben Olden-Cooligan
0d03a7b9b7 Multi file components
Tesseract 4 is working now, if you manually provide the exe. Still need to build (?) and distribute that.
2018-08-23 23:35:47 -04:00
Ben Olden-Cooligan
3ef0226ff4 Extract IExternalComponent and move BasePath to ComponentManager
Basically removing static stuff in favor of DI
2018-08-23 22:48:54 -04:00
Ben Olden-Cooligan
4b3a051ef3 Bug fixes for linux OCR and cleanup 2018-08-23 15:15:15 -04:00
Ben Olden-Cooligan
6731f32c06 OCR rework WIP (compiling but not tested) 2018-08-23 13:50:07 -04:00
Ben Olden-Cooligan
3757a2839f Tesseract rework WIP 2018-08-23 00:20:17 -04:00
Ben Olden-Cooligan
46a35c2457 OCR restructure WIP (not compilable) 2018-08-22 17:14:52 -04:00
Ben Olden-Cooligan
b1fd927bfc Linux tesseract component cleanup 2018-08-21 21:43:09 -04:00
Ben Olden-Cooligan
5b576f574e Combine Sane option-related types into SaneOption.cs 2018-08-21 19:42:41 -04:00
Ben Olden-Cooligan
9618904158 Replace Win32 call with custom NaturalStringComparer 2018-08-21 19:03:23 -04:00
Ben Olden-Cooligan
71f3ed11a0 Fix listview issues on mono 2018-08-21 18:26:38 -04:00
Ben Olden-Cooligan
ec5fbd749d Fix C# language version on release builds 2018-08-21 15:36:45 -04:00
Ben Olden-Cooligan
8d0cb19291 Move SaneNotAvailableException to the right namespace 2018-08-20 22:35:10 -04:00
Ben Olden-Cooligan
7ecdd0ad18 Sane option parsing WIP 2018-08-20 22:34:07 -04:00
Ben Olden-Cooligan
807ea8026b Add Sane driver option to FEditProfile and an error message if an unsupported driver is used 2018-08-20 20:37:05 -04:00
Ben Olden-Cooligan
d688cca8f2 Remove Mono.SANE library 2018-08-19 19:27:55 -04:00
Ben Olden-Cooligan
cc6e9037a2 Sane device list 2018-08-19 18:05:52 -04:00
Ben Olden-Cooligan
9efcb8ea83 Remove no-longer-used ThumbnailCache and fix resource management in ThumbnailRenderer 2018-08-19 14:12:01 -04:00
Ben Olden-Cooligan
fb6312089b Rename NAPS2.Compat namespace to NAPS2.Platform 2018-08-19 13:23:17 -04:00
Ben Olden-Cooligan
297c1aa3b1 Update zxing package 2018-08-19 12:48:26 -04:00
Ben Olden-Cooligan
4c13a80107 Fix serialization of ScanProfile.KeyValueOptions 2018-08-19 11:49:19 -04:00
Ben Olden-Cooligan
7c81e169b8 Switch projects to use latest C# version (currently 7.3) 2018-08-19 10:22:54 -04:00
Ben Olden-Cooligan
e029c1e83a Invert windows symbol 2018-08-14 23:28:30 -04:00
Ben Olden-Cooligan
3d73342d1f Add Mono.SANE reference and placeholder driver 2018-08-14 23:26:36 -04:00
Ben Olden-Cooligan
664289d25c Use embedded font for OCR rendering, for cross-platform compatibility 2018-08-14 17:54:05 -04:00
Ben Olden-Cooligan
38221f2dce Fix precompiler symbols (restrict conditional windows compilation to debug builds) 2018-08-14 10:24:52 -04:00
Ben Olden-Cooligan
38a26f8059 Separate Platform.Compat into PlatformCompat.Runtime and PlatformCompat.System 2018-08-13 19:54:28 -04:00