1
0
mirror of https://github.com/winscp/winscp.git synced 2026-10-24 02:28:55 +03:00
Commit Graph

28 Commits

Author SHA1 Message Date
Martin Prikryl
efe94d6c08 Using actual types and functions instead of WinAPI and Unicode/Ansi macros
Source commit: b7fec4d069296b58bb43e7a4a97dd85d558212b7
2025-12-21 01:34:21 +01:00
Martin Prikryl
3817bbd736 Preparing for separate pre-compiled header file required by Clang
- Once doing that, including more headers to PCH, not just vcl.h
- Clang won't need explicit include, but we will probably keep it anyway.
- #pragma hdrstop has no effect in Clang

Source commit: adc8a268b6907c5337ccaa430cca7526793a3019
2025-08-22 15:43:55 +02:00
Martin Prikryl
f2c842e29e Updating jump list only when running with GUI
Source commit: 524789d7ad0487c5adac0dffa69f0a095714b4e8
2025-08-20 01:14:07 +02:00
Martin Prikryl
74fdf539de Clang imposed changes that should be noop and have no effect on classic compiler (2nd after 92ba1e3f0 + preceding commits)
Mostly
– explicit static global variables
– const, sign and down casts safety
– same-named variables in nested scopes
– incorrectly identified uninitialized variables
– semicolon after function implementation
– unused variables, fields, arguments and macros
– exact include filename case
– field initialization order
– typename use
– struct vs class declarations
– incorrectly identified uninitialized variables
– refactoring to solve Clang internal compiler error when using new variable in __finally block

Source commit: 3da995ff5169eefcfe3b3b7cc0d019c660096c07
2025-06-24 16:32:34 +02:00
Martin Prikryl
a22523d916 Logging loaded modules
Source commit: 6e2579d144daa82243f77b5b667eb7c2837cd41f
2025-05-21 01:14:08 +02:00
Martin Prikryl
9485cb3f7d Switching to Segoe UI font with slightly larger size (9) as recommended for Windows Vista and newer + All windows are now slightly larger accordingly and their layout was unified
Reverts e55f27da
Fixing some anchors and tab order on the way
Dialogs (and controls with specific width or height) are now about 10% wider

Note that main form already used the Segoe UI:9 by explicitly using UseDesktopFont for most/all of its controls

Layout rules
- follow IDE design guidelines in general
- controls start at 8x8, but at 9x9 in group boxes and 22v if group has title
- right and bottom padding in groupbox is the same as left padding
-for checkboxes the bottom padding of the checkmark is the same as left padding = 10
- buttons are 80x25 by default, with +14v with dropdown
- checkboxes/radiobuttons are +2h
- labels are 15 high, textboxes/comboxes 23
- indentation is controls under checkboxes is +16h

Source commit: 09a558e92af838e142d3624cb433cc052782881c
2025-01-16 16:27:20 +01:00
Martin Prikryl
b0f03a87ba But fix: On Windows 11, Windows 10 version was logged
As part of refactoring, calling GetProductInfo unconditionally as it should be supported on all Windows version we support
Also querying ProductName from 64-bit key, as JCL does (does not help with Windows 11 though)

Source commit: f5f6c075df730b9e5283d6490647bf0c11b23629
2024-11-28 01:03:15 +01:00
Martin Prikryl
64b618621c Fixing ThemeDefaultFontSize counter after DefaultFont change in e55f27da
Source commit: c427a006cabb5892ff981110bc8769e495aca3d2
2024-11-21 13:52:45 +01:00
Martin Prikryl
1bd51d52d1 Updating DPI scaling to BCB11
– Control's Canvas does not have Font updated when painting, so it needs to be set explicitly in some places
– Page control drawing was not only incompatible, but broken in general, so it was refactored – giving up on trying to make it 100% mimic system drawing
– CM_DPICHANGED replaced with OnAfterMonitorDpiChanged for form-level scaling. Not really necessary, just for style. Though it is not called for initial resize (at least when starting on primary monitor with temporary non-system DPI)
– OnResize is not called for DPI change, so in some instances, some OnResize call was duplicated in OnAfterMonitorDpiChanged/CM_DPICHANGED
– Scaling of thirdparty box still does not work correctly (but Updates box works??)
– Scaling on primary monitor with temporary non-system DPI is bad
– TTreeView enabled DPI scaling when using Images that is not Scaled
– Discaring obsolete FSiteButtonsPadding workaround
– Controls programmatically added to form are automatically scaled to the form's DPI (relevant for message boxes)

Source commit: a86dddbfada30a5bc409687489bdcd12842050af
2024-11-08 10:55:22 +01:00
Martin Prikryl
e55f27dab3 Temporary reverting font to Tahoma:8 (from default BCB 11's Segoe UI:9) to match the windows layout
Source commit: 815a497dffe349865a283f50ec0cd4af92cb3489
2024-10-08 15:54:52 +02:00
Martin Prikryl
e09e95ee43 Upgrade to C++ Builder 11
Comments:
- .res files seem to be linked automatically, so explicit entries in project files caused duplicates
- JCL updated for compatibility with BCB11 (jcld28win32.inc obtained by running JCJ installer [uninstalled afterwards])

Source commit: ec28d10a0bbb346ed2bb3940aed37e777342e663
2024-10-08 07:18:18 +02:00
Martin Prikryl
1ab3de7c59 Issue 2245 – Window Store installation on Windows 11 was incorrectly using INI file for configuration storage by default
https://winscp.net/tracker/2245

On Windows 11 (unless WinSCP was run as Administrator the first time) the default packaged HKLM registry key was not loaded, causing WinSCP to default to INI file. On Windows 10 the problem does not exist.
I never liked using cryptic binary Registry.dat file for distributing default settings anyway. This is good opportunity to get rid of it and instead have the application use the intended defaults automatically on UWP

Source commit: 16adc7b5d73cdcab5160cda99b62de5a99ff7229
2023-12-22 16:48:36 +01:00
Martin Prikryl
323b110246 Bug 2223: Some DLLs were not protected against hijacking
https://winscp.net/tracker/2223

Source commit: 7969689de8d933eb76d7646d8c867f4e1cbfa697
2023-09-28 01:04:24 +02:00
Martin Prikryl
f3bd7f4a2f Bug 2216: Local file panel malfunctions when it starts on a drive hidden by Explorer's policy + 2 related bugs
Bug fix: When opening UNC path, the network drive is not added to the other local panel directory tree.
Bug fix: When opening the UNC path on the second local panel, the network drive is not added to drive drop-down menus.
Mechanism for application logging from Pascal code

Source commit: f225fce0fa72a07b3415fd153b39f344cf97096d
2023-08-25 00:59:27 +02:00
Martin Prikryl
67f941891b Logging basic environment information
Source commit: 7b51db11e63055688d47c177eb34dc1d19040992
2023-06-21 01:30:56 +02:00
Martin Prikryl
fce651138a Bug 2186: Failure when application log cannot be opened
https://winscp.net/tracker/2186

Source commit: 31e8745f4e346efd6efe581f9e8adfcf9cfbb3f5
2023-05-11 01:08:59 +02:00
Martin Prikryl
de9408598b Updating application log API
(cherry picked from commit f04212e89e)

Source commit: 5cfa940e0cb6e291060dcbc9a941cffcd4f24c5a
2022-08-07 12:01:45 +02:00
Martin Prikryl
af7ea880b9 Basic implementation of application log
(cherry picked from commit 945783dc9c)

Source commit: 1bac2aff6b3a190d2e4f97ea5ed2dc7092f256ce
2022-08-07 01:03:17 +02:00
Martin Prikryl
96b856dac0 DLL hijacking protection
Source commit: bcd83a3d9d9990e3658be97229336dd6cf823d3d
2022-08-07 00:56:57 +02:00
Martin Prikryl
1592dee8de Bug 2083: Workaround for an apparent bug in Windows 11 that prevents WinSCP from stopping Windows going to the sleep mode during transfers
https://winscp.net/tracker/2083
(cherry picked from commit 4b38960069)

# Conflicts:
#	source/windows/GUITools.cpp

Source commit: fcc260c91f8d3671c66cef13a8843514c39e9773
2022-06-04 00:55:48 +02:00
Martin Prikryl
768c9c434f StartupSequenceLast "counter"
(cherry picked from commit 620c75395e)

# Conflicts:
#	source/forms/CustomScpExplorer.cpp
#	source/forms/ScpCommander.cpp

Source commit: dab0d400d93273f4ed128511301ae4d91036a2d8
2021-12-23 00:51:32 +01:00
Martin Prikryl
5703da35e1 DLL hijacking protection
Source commit: 6c21a564301c8fa29d82456a1e3b8cfb78db8f36
2018-01-26 10:12:51 +01:00
Martin Prikryl
a1e14741e4 Commenting on almost pointless call to ShowExtendedException in the main
Source commit: b36854cd40aa35943c3eef249145353007c54545
2018-01-25 16:23:13 +01:00
Martin Prikryl
1d2c989a37 Moving images to separate library in preparation for loading optimization
Source commit: 1e1b57a4df48cd6847e2cc9e714547703f8845a5
2018-01-24 17:52:51 +01:00
Martin Prikryl
d8f92984b9 First public commit of dev branch
Source commit: 98cb9d870efc1c60826db4398ec35c5cbe809e6a
2018-01-24 14:13:46 +01:00
Martin Prikryl
26b6b13bc8 5.6 2018-01-11 15:36:22 +01:00
Martin Prikryl
0b4c19ead3 5.2.4 2018-01-11 15:31:27 +01:00
Martin Prikryl
2e4b4738f0 5.2 2018-01-11 15:30:21 +01:00