Commit Graph

2268 Commits

Author SHA1 Message Date
Ben Olden-Cooligan
b106fcb909 Add a ScannerTests project for integration tests against real scanners 2022-07-02 18:49:13 -07:00
Ben Olden-Cooligan
d1e86b18e3 Use file-scoped namespaces in forms 2022-07-02 16:12:34 -07:00
Ben Olden-Cooligan
6731df4789 Remove unused usings 2022-07-02 16:01:45 -07:00
Ben Olden-Cooligan
ab219849e2 Fix a bunch more warnings 2022-07-02 16:00:11 -07:00
Ben Olden-Cooligan
5796dc5c6a Fix a bunch of warnings 2022-07-02 15:13:31 -07:00
Ben Olden-Cooligan
99ebeb0fa5 Fix CA1416 (only supported on windows) errors in NAPS2.Sdk 2022-07-02 14:38:34 -07:00
Ben Olden-Cooligan
f0f961e7c5 Fix some warnings 2022-07-02 14:04:14 -07:00
Ben Olden-Cooligan
c6fd067740 Remove unnecessary dependencies from NAPS2.Sdk 2022-07-02 13:26:37 -07:00
Ben Olden-Cooligan
e107fc663b Improve network test flakiness 2022-07-02 12:07:12 -07:00
Ben Olden-Cooligan
e7e368a87d Reduce app test flakiness 2022-07-02 11:32:20 -07:00
Ben Olden-Cooligan
425b896cb4 Make the console return a non-zero exit code on error, add console app tests, and remove static variables in console deps 2022-07-02 11:21:21 -07:00
Ben Olden-Cooligan
dafc26c6b3 Add UiImageList to the RecoveryStorageManager constructor and other minor fixes 2022-07-02 11:19:28 -07:00
Ben Olden-Cooligan
4298c0d3aa Fix some project warnings/errors 2022-07-02 10:30:31 -07:00
Ben Olden-Cooligan
cc961d022d Fix FViewer and various other bugs/todos around images 2022-07-01 21:45:52 -07:00
Ben Olden-Cooligan
0217185bc8 Refactor transformers to be simpler and more generic 2022-07-01 19:06:02 -07:00
Ben Olden-Cooligan
c734b13137 Fix double dispose for GdiImage.Lock 2022-07-01 12:44:38 -07:00
Ben Olden-Cooligan
d8ee7621cb Use IDisposable for IMemoryImage locking instead of manual unlock
This makes things easier now that "using var" is a thing.
2022-07-01 12:39:26 -07:00
Ben Olden-Cooligan
eb309b3337 Add more TwainMemoryBufferReader tests (and fixes) 2022-07-01 12:25:37 -07:00
Ben Olden-Cooligan
06935f5379 Refactor and document twain code, and fix GetDeviceList to use the remote controller 2022-06-30 22:56:57 -07:00
Ben Olden-Cooligan
397872884d Add worker channel test for TwainScan 2022-06-30 22:28:49 -07:00
Ben Olden-Cooligan
8f64f52d54 Add twain progress estimation 2022-06-30 22:27:52 -07:00
Ben Olden-Cooligan
f69ca91d1f Add PixelColors image assert 2022-06-30 19:54:21 -07:00
Ben Olden-Cooligan
f66ea1cb05 Add TwainMemoryBufferReader tests 2022-06-30 19:46:44 -07:00
Ben Olden-Cooligan
eaff512ded Improve SmoothProgress smoothness 2022-06-30 00:05:57 -07:00
Ben Olden-Cooligan
c50f9a13b1 Set image resolution during twain memory transfer 2022-06-30 00:05:39 -07:00
Ben Olden-Cooligan
fd36cf3f5d Implement grayscale and black/white for twain memory transfer 2022-06-29 22:03:34 -07:00
Ben Olden-Cooligan
7cf6140c50 Show progress for twain memory transfer
Still a bit janky, may need to improve the algorithm or reporting a bit
2022-06-29 21:07:56 -07:00
Ben Olden-Cooligan
933c9be910 Implement 24bit twain memory transfer 2022-06-29 21:07:29 -07:00
Ben Olden-Cooligan
618af42360 Handle twain error cases 2022-06-29 21:05:20 -07:00
Ben Olden-Cooligan
9c0bd2c399 Add comments for state management 2022-06-29 19:27:36 -07:00
Ben Olden-Cooligan
c88126da93 Fix twain unloading and cancellation 2022-06-29 19:12:46 -07:00
Ben Olden-Cooligan
b6fd79c4e3 Finish implementing TwainScan worker method 2022-06-29 17:06:34 -07:00
Ben Olden-Cooligan
a7ccd947df WIP: Twain rewrite and use the nuget version of NTwain 2022-06-29 14:17:26 -07:00
Ben Olden-Cooligan
93828c40ff Add config todos 2022-06-29 14:14:50 -07:00
Ben Olden-Cooligan
b82f9138e2 Cleanly shut down worker processes and only kill them if that fails for 60s 2022-06-28 21:58:28 -07:00
Ben Olden-Cooligan
44280f3923 Fix error message on twain cancellation 2022-06-28 21:48:36 -07:00
Ben Olden-Cooligan
41707e1e49 Fix form provider 2022-06-28 21:48:06 -07:00
Ben Olden-Cooligan
e377d46005 Add process id to logging 2022-06-28 21:47:43 -07:00
Ben Olden-Cooligan
8de8a4b9df Remove RecoveryStorageManager as a dependency of UiImageList 2022-06-27 21:46:22 -07:00
Ben Olden-Cooligan
1572dfd095 Add ThumbnailRenderQueue tests and fix test flakiness
Probably will still flake on other machines (e.g. CI), but that's a problem for another time.
2022-06-27 21:16:10 -07:00
Ben Olden-Cooligan
0e23dccdbc Verify no error log is generated in app tests 2022-06-27 21:12:22 -07:00
Ben Olden-Cooligan
6f5076d1ea Add still image, donate prompt, and update check tests to DesktopControllerTests 2022-06-27 15:22:54 -07:00
Ben Olden-Cooligan
7544aff995 Add a couple DesktopController tests
Many more to add as we've set up the outline
2022-06-26 22:10:09 -07:00
Ben Olden-Cooligan
c77f5b30f9 Split up some DesktopController functionality into sub-controllers 2022-06-26 18:42:59 -07:00
Ben Olden-Cooligan
607f76cf8d Use profile update events instead of manual calls for UpdateScanButton 2022-06-26 18:03:19 -07:00
Ben Olden-Cooligan
07d55ce068 Rename UserActions to ImageListActions 2022-06-26 16:13:28 -07:00
Ben Olden-Cooligan
bd9da088fc Move most FDesktop logic into DesktopController 2022-06-26 16:12:00 -07:00
Ben Olden-Cooligan
f3d8271533 Fold ThumbnailList into the IListView model and use it in FDesktop 2022-06-26 14:12:32 -07:00
Ben Olden-Cooligan
9b25420266 Move native ListView call to a new ListViewNative helper class 2022-06-25 22:10:18 -07:00
Ben Olden-Cooligan
014030f981 Fix toolbar relayout and move culture/toolbar code out of FDesktop 2022-06-25 20:25:21 -07:00