Commit Graph

263 Commits

Author SHA1 Message Date
Ben Olden-Cooligan
740d3bbccc Set invoker in entry points 2024-03-06 20:09:09 -08:00
Ben Olden-Cooligan
b7140b8b09 Fix warnings and comments 2024-03-01 10:43:21 -08:00
Ben Olden-Cooligan
ea46c1cc3b WinForms: Add access keys (aka "Alt" hotkeys)
#233
2024-01-14 19:43:53 -08:00
Ben Olden-Cooligan
1172c4fd02 WinForms: Fix text measurement
https://stackoverflow.com/a/6404811/2112909
2024-01-13 16:43:54 -08:00
Ben Olden-Cooligan
f133aa9ae5 WinForms: Implement profiles toolbar 2024-01-13 13:37:12 -08:00
Ben Olden-Cooligan
689f677322 ShowPageNumbers fixes 2024-01-12 23:24:20 -08:00
Ben Olden-Cooligan
857f506a72
Merge pull request #164 from xZise/improve-label
Improve custom label format
2024-01-12 23:00:20 -08:00
Ben Olden-Cooligan
e301b89911 WinForms: Add PNG/JFIF clipboard formats when copying
#264
2024-01-09 21:03:45 -08:00
Ben Olden-Cooligan
b2807bcc0d WinForms: Fix copying 1bit/8bit images 2024-01-09 21:00:19 -08:00
Ben Olden-Cooligan
9015ec7525 Support pasting bitmaps
Fixes #235
2024-01-09 20:47:02 -08:00
Ben Olden-Cooligan
eb104ec0f1 Sdk: Make protobufs internal 2023-12-29 21:02:54 -08:00
Ben Olden-Cooligan
a53cdc63e9 Add stubs for IOsServiceManager 2023-12-22 06:08:23 -08:00
Ben Olden-Cooligan
c0440c5ff3 WIP: Share as service 2023-12-21 10:35:43 -08:00
Ben Olden-Cooligan
b92362af02 C# 12: Use collection initializers 2023-12-06 20:17:50 -08:00
Ben Olden-Cooligan
0f3b4abcd3 Add Driver as a property on ScanDevice 2023-12-01 18:03:55 -08:00
Ben Olden-Cooligan
8a7c304ee0 Fix warnings 2023-11-25 13:47:17 -08:00
Ben Olden-Cooligan
804f110504 Update dependency versions 2023-11-25 13:41:29 -08:00
Ben Olden-Cooligan
61aebe6c8c Migrate to net8 2023-11-18 11:43:50 -08:00
Ben Olden-Cooligan
856b51e166 WinForms: Disable unimplemented dark mode
#225
2023-11-18 11:24:14 -08:00
Ben Olden-Cooligan
485c446b51 Re-implement console --progress
#83
2023-10-10 21:01:44 -07:00
Ben Olden-Cooligan
5d2ac21185 Refactor common entrypoint code into GuiEntryPoint 2023-10-08 17:14:46 -07:00
Ben Olden-Cooligan
6f26ee8497 WinForms: Fix copy 2023-10-07 10:22:52 -07:00
Ben Olden-Cooligan
04bceee509 Update worker error messages 2023-08-29 20:49:35 -07:00
Fabian Neundorf
312e2b60b7 Do not draw above image
When the page/image is not selected the black outline was drawing onto
the top and left pixels of the image.
2023-07-17 10:17:04 +02:00
Fabian Neundorf
c18f66f3ed Draw selection rectangle when manually drawing
When it manually draws the image, the newly added label (page counter)
is not highlighted and does not appear selected. It now draws a combined
selection around the image and label together.
2023-07-17 10:12:13 +02:00
Fabian Neundorf
6d90aa31ab Implement Trimming
The text now gets trimmed based on the available width.
2023-07-16 12:12:52 +02:00
Fabian Neundorf
80837803a3 Improve size calculation
When custom drawing the image, the size calculation did just remove some
constant amount from the image space height, when drawing with a label.
It also did not account for square images (in which case nothing was
removed).

It now calculates the scale for each dimension and uses the smaller one.
When calculating the scale it deducts the text height from the available
height, if any text is visible.
2023-07-16 12:12:07 +02:00
Fabian Neundorf
af767a28c6 Do not create instances unnecessarily
It is not necessary to always create a new SolidBrush, Font or
StringFormat instance when drawing each label, as they are not modified.
For SolidBrush the properties of the Brushes class can be used and it
uses the normal font of the control instead of a hardcoded one.
2023-07-16 01:20:27 +02:00
Ben Olden-Cooligan
b5cf3cd4a7 Fix formatting 2023-05-21 09:32:03 -04:00
Christian Clavet
e3c2e6bd28 Removing some unessary comment lines 2023-05-20 18:13:31 -04:00
Christian Clavet
30d98fb2c8 Updating with the recommended changes for the listview SHOWPAGENUMBER 2023-05-20 12:30:00 -04:00
Christian Clavet
b63fa08820 Adding new feature to display the image number and total number of items in the listview.
Config of the feature is disabled by default. Windows only for the moment.
2023-05-06 21:01:13 -04:00
Ben Olden-Cooligan
9d7ec0eab5 Make internal scanning classes actually internal 2023-04-30 14:11:50 -07:00
Ben Olden-Cooligan
510b113068 Sdk: Support scanning without a worker 2023-04-07 10:37:46 -07:00
Ben Olden-Cooligan
da6da22ff9 Use Microsoft.Extensions.Logging for SDK logging 2023-04-06 19:25:08 -07:00
Ben Olden-Cooligan
bb195cb5d0 WIP: Cross-platform notifications 2023-04-02 19:21:53 -07:00
Ben Olden-Cooligan
ef05940838 Handle adding and removing layout items 2023-04-02 12:55:32 -07:00
Ben Olden-Cooligan
9f6fea02b4 Gtk: Add printing support 2023-03-25 16:53:39 -07:00
Ben Olden-Cooligan
a84ef8a9ee Fix textbox scrolling offscreen
Fixes #82
2023-03-12 15:13:15 -07:00
Ben Olden-Cooligan
3491fb1440 Twain: Tweak handle management for better error display 2023-03-12 10:39:51 -07:00
Ben Olden-Cooligan
bcf7f13b2b Dark mode wip 2023-03-11 13:41:22 -08:00
Ben Olden-Cooligan
b851df462a Change IScanDriver signature for incremental device querying 2023-02-11 15:58:40 -08:00
Ben Olden-Cooligan
ab9f5210cd Rename InvokeAsync to InvokeDispatch 2023-02-05 15:02:46 -08:00
Ben Olden-Cooligan
b09a4f7e88 Fix error handling in InvokeAsync 2023-02-05 13:00:17 -08:00
Ben Olden-Cooligan
2755310542 WinForms: Fix ProfileForm button width 2023-01-21 10:42:41 -08:00
Ben Olden-Cooligan
87b7a50a2c Display an error message after a failed update
#50
2023-01-21 10:29:20 -08:00
Ben Olden-Cooligan
a726c2050c Improve twain window management
Fixes #36
2023-01-07 14:58:21 -08:00
Ben Olden-Cooligan
675d76bc9d WinForms: Fix dropping unicode file
Fixes #49
2023-01-07 14:02:34 -08:00
Ben Olden-Cooligan
b075977c6c WinForms: Fix drag/drop
Fixes #38
2023-01-02 12:14:02 -08:00
Ben Olden-Cooligan
04451c4511 Move copyright to CommonTargets and update to 2023 2023-01-01 14:14:52 -08:00