Commit Graph

248 Commits

Author SHA1 Message Date
Ben Olden-Cooligan
edefac061b Merge branch 'form_state'
Conflicts:
	NAPS2/WinForms/FDesktop.cs
	NAPS2/WinForms/FTwainGui.cs
	NAPS2/WinForms/FormBase.cs
2013-08-29 19:29:21 -04:00
Ben Olden-Cooligan
1775bbdcf0 Removed the constructor argument from FormBase in favor of injected properties. This reduces a lot of duplicated code for all the subclasses. 2013-08-29 19:07:39 -04:00
Ben Olden-Cooligan
b677d39b31 Fixed so that size, location, and maximized state are saved and loaded correctly. 2013-08-29 19:00:45 -04:00
Ben Olden-Cooligan
851939b44c Merge branch 'rtl'
Conflicts:
	NAPS2/NAPS2.csproj
	NAPS2/WinForms/FormBase.cs
2013-08-29 18:27:03 -04:00
Ben Olden-Cooligan
64918d6137 Updated setup configuration to include Hebrew localization files. 2013-08-29 18:22:46 -04:00
Ben Olden-Cooligan
03bfd6f248 Disabled autosize and changed position of checkboxes in FEditScanSettings so that everything is displayed correctly for RTL languages. 2013-08-29 18:20:59 -04:00
Ben Olden-Cooligan
10a3ad7a01 Recoded IconButtonSizer.ButtonTextWidth to use a different method for width calculation, in order to make Hebrew text be measured consistently with other character sets. 2013-08-29 18:08:59 -04:00
Ben Olden-Cooligan
d02b5abad4 Fix for losing focus when switching between LTR and RTL languages. 2013-08-28 18:24:02 -04:00
Ben Olden-Cooligan
a842e0bef2 Moved the NAPS2.Scan.Recovery namespace to NAPS2.Recovery, since it's not really related to scanning. 2013-08-28 18:18:10 -04:00
Ben Olden-Cooligan
fa68c0d78d Fixed pdf unit tests. 2013-08-28 18:15:21 -04:00
Ben Olden-Cooligan
a5fd782315 Moved NAPS2.Pdf and NAPS2.Email into the subnamespaces NAPS2.ImportExport.Pdf and NAPS2.ImportExport.Email. Also created the namespace NAPS2.ImportExport.Images, which includes some files that were previously in the NAPS2 namespace.
Note that ImportExport only currently contains exporting code, but I imagine that the import support I plan to do more logically fits within the same namespace.
2013-08-28 18:12:57 -04:00
Ben Olden-Cooligan
83164e9561 Added two new namespaces: NAPS2.Scan.Images and NAPS2.Scan.Recovery, and moved the appropriate classes into them. 2013-08-28 17:59:44 -04:00
Ben Olden-Cooligan
c9235b3297 Refactored the recovery logic so that it moves from FDesktop to a new RecoveryManager type. 2013-08-28 17:55:31 -04:00
Ben Olden-Cooligan
dc7a5ded42 Added recovery logic and prompt when starting NAPS2. 2013-08-28 14:49:53 -04:00
Ben Olden-Cooligan
e2d6addaf0 Fix so that the RecoveryIndex keeps track of re-ordered images. 2013-08-28 14:07:39 -04:00
Ben Olden-Cooligan
d6122fcfb1 Changed LoggerFactory from a static factory to an abstract factory (well, not actually abstract, but same pattern). 2013-08-28 13:58:35 -04:00
Ben Olden-Cooligan
8c7dad0f08 Added a lock file (.lock) and an index file (index.xml) to each recovery folder. 2013-08-28 13:51:16 -04:00
Ben Olden-Cooligan
b7d311221f Fix for PDF saving so that Image objects are lazily created and disposed immediately after they are used.
Also fixed disposal of Image objects when using FViewer.
2013-08-28 12:51:42 -04:00
Ben Olden-Cooligan
e3f976e541 Modified the recovery cleanup logic in FileBasedScannedImage to use a counter of the number of recovery images remaining rather than checking whether the directory is empty. 2013-08-28 12:37:51 -04:00
Ben Olden-Cooligan
2c2d9db11e Added a default constructor to FormBase to fix the WinForms designer. 2013-08-28 11:55:45 -04:00
Ben Olden-Cooligan
df7acb2ee1 Switched to using FileBasedScannedImage to save memory. 2013-08-28 00:04:47 -04:00
Ben Olden-Cooligan
2669c3f347 Added FileBasedScannedImage, with most of the shared functionality between it and ScannedImage refactored into some helper classes. 2013-08-27 19:32:00 -04:00
Ben Olden-Cooligan
75de721dc6 FormState WIP 2013-08-27 18:30:38 -04:00
Ben Olden-Cooligan
4d6cf928ae Added versioning to AppConfig, UserConfig, and ExtendedScanSettings.
This involves adding a Version property and a CURRENT_VERSION constant to each of those classes. Consumers who create an instance must manually set Version to CURRENT_VERSION, since if that were done in the constructor then deserialization would do the same even if the Version property wasn't specified. As it is now, if Version is unspecified in xml, it will be 0.
At some point in the future I will write an upgrade mechanism based on the version number to be run after deserialization.
2013-08-27 17:54:54 -04:00
Ben Olden-Cooligan
b4c15172ea Added a base form class (FormBase) that takes an IKernel as a constructor argument. Changed forms and other classes to use an IKernel parameter rather than a direct reference to KernelManager. 2013-08-27 17:44:25 -04:00
Ben Olden-Cooligan
58efe46167 Added code to set RightToLeftLayout in FormBase. This may be reverted depending on feedback from the translator. 2013-08-27 17:23:49 -04:00
Ben Olden-Cooligan
32757c2bd0 Updated Hebrew resource files for tmx change. 2013-08-27 16:57:31 -04:00
Ben Olden-Cooligan
41e0ac5aab Merge branch 'master' into rtl 2013-08-27 16:55:39 -04:00
Ben Olden-Cooligan
ba340e8ce6 Updated resource files for tmx changes. 2013-08-27 16:55:09 -04:00
Ben Olden-Cooligan
8ee39bd985 Updated tmx files to fix "Profile settings" => "Profile Settings" string change. 2013-08-27 16:54:06 -04:00
Ben Olden-Cooligan
8ca46d9c01 Updated he.tmx to fix changed string. 2013-08-27 16:53:17 -04:00
Ben Olden-Cooligan
6ac7b25c1f Added a base class for all forms (FormBase) that automatically sets the RTL property based on the current culture. 2013-08-26 12:51:40 -04:00
Ben Olden-Cooligan
373b4dfa41 Added Hebrew resource files. 2013-08-25 21:00:07 -04:00
Ben Olden-Cooligan
3a8a37985d Update Hebrew tmx file with standard changes. 2013-08-25 20:59:06 -04:00
Ben Olden-Cooligan
a4cdcb8019 Merge branch 'master' into rtl 2013-08-25 20:55:38 -04:00
Ben Olden-Cooligan
fd0d61bdaa Update localized resources for new icons. 2013-08-25 20:55:16 -04:00
Ben Olden-Cooligan
fc08b84482 Added Hebrew to language dropdown. 2013-08-25 20:52:41 -04:00
Ben Olden-Cooligan
aae056f4c9 Added Hebrew tmx. 2013-08-25 20:52:28 -04:00
Ben Olden-Cooligan
28f2fc1069 Minor refactoring of ScannedImage, improved commenting of the same. 2013-08-25 20:47:56 -04:00
Ben Olden-Cooligan
5793894103 Added information icon to FAbout, and set the form to be visible in the taskbar. 2013-08-22 15:57:10 -04:00
Ben Olden-Cooligan
513b4ace1f Changed icon on FManageProfiles and FEditScanSettings to the blueprints icon. 2013-08-22 15:53:15 -04:00
Ben Olden-Cooligan
eb17e222ad i18n fix for FAbout to make its width fit the text. 2013-08-21 22:10:30 -04:00
Ben Olden-Cooligan
167d7f3d73 Re-generated all language resources to take advantage of new i18n work (and using the Powershell script to do the generation!) 2013-08-21 22:04:19 -04:00
Ben Olden-Cooligan
27509ba399 Added Powershell scripts to project file. 2013-08-21 22:01:04 -04:00
Ben Olden-Cooligan
d087e5c42f Merge branch 'layout_manager' 2013-08-21 21:59:47 -04:00
Ben Olden-Cooligan
46dfc89ad2 Added license.txt to the EXE installer's output for consistency.
Minor reformatting of AssemblyInfo.cs.
2013-08-21 21:58:11 -04:00
Ben Olden-Cooligan
44834fed00 Replaced the previous batch files used for localization and publishing with a new pair of Powershell scripts (Publish-NAPS2 and Update-Language). These are more powerful and require much less manual work. 2013-08-21 21:55:50 -04:00
Ben Olden-Cooligan
5e4b451c99 Added a MaxWidth parameter to IconButtonSizer to avoid overflow for languages with longer text. 2013-08-20 17:45:55 -04:00
Ben Olden-Cooligan
54d9b181dc Made FEditScanSettings resizeable. Fix for FManageProfiles resizing. 2013-08-20 17:33:56 -04:00
Ben Olden-Cooligan
d0e1f9e36e Added minimum size to FChooseProfile, and made FManageProfiles resizeable using LayoutManager. 2013-08-20 17:22:26 -04:00