Commit Graph

402 Commits

Author SHA1 Message Date
Ben Olden-Cooligan
65c3de715e Test and verify commands wip 2022-07-07 22:40:51 -07:00
Ben Olden-Cooligan
269e3ee50e Update native deps
"mac" instead of "osx" as it reads better I think.
2022-07-06 23:22:22 -07:00
Ben Olden-Cooligan
16237f17a1 Move most resources out of NAPS2.Sdk 2022-07-06 18:22:30 -07:00
Ben Olden-Cooligan
14e60e170e Fix build error 2022-07-03 10:54:49 -07:00
Ben Olden-Cooligan
97978e47a4 Merge branch 'master' of gitlab.com:cyanfish/NAPS2 into HEAD 2022-07-02 22:24:41 -07:00
Ben Olden-Cooligan
1fcbac96d3 Fix a few more warnings 2022-07-02 21:43:59 -07:00
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
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
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
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
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
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
8de8a4b9df Remove RecoveryStorageManager as a dependency of UiImageList 2022-06-27 21:46: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
f3d8271533 Fold ThumbnailList into the IListView model and use it in FDesktop 2022-06-26 14:12:32 -07:00
Ben Olden-Cooligan
f0e4d29e9a Fix and document TimedThrottle 2022-06-25 19:06:11 -07:00
Ben Olden-Cooligan
955cc8fadc Rewrite thumbnail / thumbnaillist logic 2022-06-25 16:30:24 -07:00
Ben Olden-Cooligan
8b7695a371 Handle missing image files in recovery 2022-06-25 16:25:01 -07:00
Ben Olden-Cooligan
685d953ef8 Set thumbnail on initialization in UiImage 2022-06-25 09:23:51 -07:00
Ben Olden-Cooligan
232960381f Throttle config reads 2022-06-25 09:15:59 -07:00
Ben Olden-Cooligan
92464aa5cc Add output ordering to xml/config serialization 2022-06-24 19:50:51 -07:00
Ben Olden-Cooligan
9600d7b639 Make SDK config classes into records 2022-06-24 16:12:14 -07:00
Ben Olden-Cooligan
136ef5313b Fix profile serialization 2022-06-24 15:32:10 -07:00
Ben Olden-Cooligan
4e9042a3a5 WIP: Implement ConfigStorage serialization to/from XDocument 2022-06-23 13:51:46 -07:00
Ben Olden-Cooligan
9d3620462a WIP: Use a Config scheme that doesn't depend on nulls
This requires using a graph data structure to store the config values (and record which ones are set), rather than just an instance of the config object.

This also requires parsing input as expressions that define a lookup into the graph rather than functions that can operate on the config object directly.
2022-06-22 21:07:01 -07:00
Ben Olden-Cooligan
31123436e1 Add ImagePostProcessor tests and other fixes 2022-06-20 21:00:25 -07:00