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

52 Commits

Author SHA1 Message Date
Martin Prikryl
a2119a7eac Types and casts safe in respect to pointer size for forward 64-bit compatibility
Also GetWindowLongPtr and GWLP_USERDATA

https://winscp.net/tracker/618

Source commit: c85fdf15e50ce8a6f35b1c4d2a0125a0b9c4f1f0
2026-01-22 14:51:13 +01:00
Martin Prikryl
a01665f294 Factoring out universal path utility functions that will also be used Issue 2020
Source commit: ecc9f746b50cf7f0203dcb08b1db627375cf5295
2025-10-01 01:19:58 +02:00
Martin Prikryl
b13e2e7c2b #pragma package(smart_init) is not useful out of packages
Source commit: 7635ac3b532214f27ea2b6fe6aa80398c857cfcd
2025-08-23 01:06:48 +02: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
3fd70f410e Minor code errors identified by Clang (2nd after 4019b56f)
Source commit: 904310464d998d3b8f222598c0b7914e6cb7deee
2025-06-24 01:03:19 +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
bf735c00c7 In BCB11 TRichEdit uses MSFTEDIT.DLL/MSFTEDIT_CLASS by default already
Source commit: 0dec9fb6e32afbbd57ea79438181c6433f2aa6a0
2024-11-05 12:06:39 +01:00
Martin Prikryl
7af5fa85d8 Bug 2134: Set $PSNativeCommandArgumentPassing to "Legacy" in generated WinSCP scripting PowerShell commandline, which is needed for PowerShell 7.3 compatibility
https://winscp.net/tracker/2134

Source commit: 037d91a5f3eeb5113fb137c0432167d55eccdc4c
2022-11-19 01:13:08 +01:00
Martin Prikryl
71f6619a22 Removing NO_RESOURCES conditional block
(used for Salamander only)

Source commit: 84fceaacd30a1740e2d6bba49b9e9f2fc57574f4
2019-11-19 01:01:35 +01:00
Martin Prikryl
54aec18b11 Bug 1781: Lower-than (<) and greater-than (>) symbols are not escaped in an output of RemotePath.EscapeFileMask .NET method and in a script generated by the GUI
Source commit: d9d53dac196f92d1b6c681f4bc3477b0ab47145d
2019-09-04 00:50:15 +02:00
Martin Prikryl
78506ae1b7 Transfer settings that do not have a dedicated scripting switch or a .NET TransferSettings property can be set using -rawtransfesettings switch or TransferSettings.AddRawSettings method + Generated script/code can generate these + Tests that previously used AddRawConfiguration(@"Interface\CopyParam\...), use AddRawSettings now. + It's possible to limit number of command line parameters used for open-ended switches like -rawconfig, -rawsettings and -rawtransfesettings using syntax -switch[count] + Fixing GetFilesExcludeEmptyDirectories test (it didn't upload hidden files previously)
Source commit: 4a84ba5ed0f2f09f4815c11cb4714e0c2ef7fc12
2018-10-12 01:45:30 +02:00
Martin Prikryl
d75817b1c3 Bug 1668: Optionally generate WebDAV URLs with http:// protocol prefix
https://winscp.net/tracker/1668

Source commit: eeeb62e1cd30025bb85363d6531acd74bcf3d90e
2018-08-09 03:04:37 +02:00
Martin Prikryl
9b70af411e PowerShell script that runs WinSCP scripting commands can be generated on Generate Code dialog
Source commit: 51b98c02b5f2a14481e0501b19c46b8df612f4a8
2018-06-15 02:34:38 +02:00
Martin Prikryl
f6171cd883 Bug fix: Path argument in lcd command in generated script has to end with backslash, if it points to a root folder
Source commit: e4ce718547362fac3d4f944415741ef4e19387b2
2018-06-15 02:11:43 +02:00
Martin Prikryl
3267334917 Session URL can contain any raw session settings using connection parameter. New custom command pattern !E can generate such URL for use in WinSCP extensions.
Source commit: 7c9de42181088d8aaa9a96abaa420534f9e71a27
2018-05-17 22:47:41 +02:00
Martin Prikryl
02aa34ba2d Typo in comment
Source commit: 6d30d685fb35f9f0eb7244a7eefa1700ccec346a
2018-03-16 03:36:21 +01:00
Martin Prikryl
c602b9e39b All read-only edit boxes/selectable labels have user friendly context menu for copying contents
Source commit: dbb1de54b8da22a5d8f880a14381d03eeea71c22
2018-01-28 18:16:22 +01:00
Martin Prikryl
a24965c84e Bug 1580: Support wider range of Unicode characters in internal editor
https://winscp.net/tracker/1580

Source commit: 162b977f3987658f9e124db1d6694b309feaa02a
2018-01-28 16:14:17 +01:00
Martin Prikryl
07617815a6 Bug 1521: Provisional implementation of per-monitor DPI awareness
https://winscp.net/tracker/1521

Source commit: 9d436d711a74909662530049c1de501edb91ab3a
2018-01-28 06:03:34 +01:00
Martin Prikryl
6d1af5c7d0 Typo in comment
Source commit: 7e8f0f24d43e443cefc1aaab863fc8199e384bb7
2018-01-26 00:25:20 +01:00
Martin Prikryl
4389a0ec3c Bug fix: Command syntax suggestion, when using saved site in batch script, included RTF code
Broken by 54c030d Clickable command-line and open command switches and SessionOptions properties +

Source commit: eeca8b4cd6257bdac54aabd4eaf7a74ea880652d
2018-01-26 00:24:11 +01:00
Martin Prikryl
1b83d7dd56 Generate counters - GeneratedUrls + GeneratedScripts + GeneratedScriptsTransfer + GeneratedCodes + GeneratedCodesTransfer
Source commit: 67ed69911d5645626955466cfafd8f41548ea43b
2018-01-25 16:28:38 +01:00
Martin Prikryl
ecdc42973f Forgotten code (should be part of "Finishing code generation for file transfers")
Source commit: 25cb12acd2de514dd0bc3706489d3ec5f4f0182c
2018-01-25 15:11:05 +01:00
Martin Prikryl
7372879f93 Larger initial size of Generate URL/Code dialog, when starting on Script/Code page
Source commit: 088efe34b5c98d98d49bff79d5892aed95af9712
2018-01-25 15:10:04 +01:00
Martin Prikryl
c33623780e Bug fix: Generate Code dialog could not be closed with Esc key
Source commit: 87f82c16e278c036ef7ec3d6d11fce7af7dbec51
2018-01-25 15:09:01 +01:00
Martin Prikryl
2830b1e889 Finishing code generation for file transfers + Limiting generated code to 3 files + Not escaping local paths in generated script + Correcting all-files transfer script
Source commit: 786b4d04f633b16a544ebc9da06a89d4e24b1b47
2018-01-25 15:08:07 +01:00
Martin Prikryl
04fab653e6 Not using "my" prefix for VB.NET variables + No redundant declaration of Session variable type + Bug fix: Session timeout was incorrectly set in seconds, instead of milliseconds + Using -Property switch to initialize SessionOptions properties in PowerShell + Generating code for transfer settings + TransferOptions.ResumeSupport is settable + Setting TransferResumeSupport.Threshold automatically sets State to Smart
Source commit: ce746f6a04b2557b7fa77e1dbabdf41bb61de248
2018-01-25 15:06:04 +01:00
Martin Prikryl
44093eff57 Factoring out generation functions
Source commit: 73cae128a8513f5e2481c26b1b5419a13aca1ac7
2018-01-25 15:04:59 +01:00
Martin Prikryl
aeec70feb5 Separating head and tail session code generation to allow inserting transfer code
Source commit: ca54ddb73fb00a44fa0e5bf7a65f7a1c29a79b41
2018-01-25 15:04:01 +01:00
Martin Prikryl
fb68ee6f0c Generating transfer script + Not highlighting script strings + Script command-line
Source commit: ccddd850406040fc9feda4e5a71ae20f5514bf09
2018-01-25 15:02:00 +01:00
Martin Prikryl
504d69a3e8 Scrolling to top when generated code changes (behavior of TMemo)
Source commit: 33816017023275cbc740bfb8f233fef27b9e9b85
2018-01-25 13:28:23 +01:00
Martin Prikryl
22053c5f59 Command placeholders in generated command-line are no italics
Source commit: c6438171f0e0f9aa0bdd2cafea50466462b40225
2018-01-25 13:27:23 +01:00
Martin Prikryl
b0e6881e7a Clickable command-line and open command switches and SessionOptions properties + Quotes around log path + Reusing INI_SWITCH + INI_NUL + LOG_SWITCH + COMMAND_SWITCH + TProgramParams::FormatSwitch
Reimplementing AddAssemblyProperty for enum using AddAssemblyPropertyRaw

Source commit: e87db536722f53796c510d4faf171802d98a4290
2018-01-25 13:26:26 +01:00
Martin Prikryl
08869ba66a Clicked link recognition was not working for wrapped text (command-line) - reimplementing using TControl.Text - Reusing the same for simplifying copy-to-clipboard
Source commit: fa1dc6acd1f6f335a4864d03ba1dba41a59f3f30
2018-01-25 13:25:32 +01:00
Martin Prikryl
5daa68053a Bug 1391: Make it obvious that a path to log file in generated code needs to be set to a real writable path + "Your command" placeholders and "@echo off" are not in italics style + More line breaks in script and batch file templates
https://winscp.net/tracker/1391

Source commit: 4af25776bf66053523bce3c5c26946dc5f3d13b0
2018-01-25 13:18:46 +01:00
Martin Prikryl
d0fbf8bb79 Factoring out LogParameter
Source commit: 230026cb909ac19ae2867361f11c32e095509b0d
2018-01-25 13:17:56 +01:00
Martin Prikryl
ae556f450d Method of detecting clicked link was not working on Windows 7 and older.
Source commit: 7c42a0626653c0346c707c15e3a7c671d487db60
2018-01-25 13:16:45 +01:00
Martin Prikryl
799efb62bb Script commands and .NET assembly classes and methods in generated code link to online documentation
Source commit: 1a2ed974b8e5b0d6ca4291262ea68ebe8779de2d
2018-01-25 13:13:59 +01:00
Martin Prikryl
1cccf72b34 Removing forgotten debug saving of generate RTF document
Source commit: ffc3a8cd829020a21cd67a2d99358faabf698a7f
2018-01-25 13:12:56 +01:00
Martin Prikryl
547ea35455 Using # for comments as on the wiki
Source commit: b36a9a4bcf70e2ed3829664e7b7be8d1f581384e
2018-01-25 13:10:58 +01:00
Martin Prikryl
f5f52657c8 Context menu for rich text box
Source commit: ec27a192d02dcaa12e49a13675e5fc6a88a46696
2018-01-25 13:10:00 +01:00
Martin Prikryl
7e337a0dad Syntax highlighting for generated code
Source commit: 63384395e3955017600d4574d8e41e0e0f54ac41
2018-01-25 13:09:04 +01:00
Martin Prikryl
ca5efae8d6 Warning when a server hostkey is not known when generating a code. + Not including the /console switch in a generated command-line. + Separate display for an executable path, when generating a command-line.
Source commit: c5d567b484faa13254ac912dd59b6c835b760ac3
2018-01-25 11:45:46 +01:00
Martin Prikryl
e8254870d2 Bug fix: Script and .NET assembly code tabs were not hidden on Generate file URL dialog
Source commit: f6897da1e8c92dde475a05c6254784039c2a303f
2018-01-25 11:07:41 +01:00
Martin Prikryl
e03af11254 Sizeable Generate URL/Code dialog
Source commit: 492ae34eb6c446cef0f71edba3066c47a38aee0a
2018-01-25 10:14:15 +01:00
Martin Prikryl
74aa959d9c Redesigning Generate URL/Code dialog using page control
Source commit: 0f8ef858aa6ecf6e413f4d17f59108e7ebd93169
2018-01-25 10:13:21 +01:00
Martin Prikryl
b55e9565da Function call-line syntax for DebugFail + Replacing all DebugAssert(false) with DebugFail
Source commit: 358df59fa46a04bd1b2a141b826fa5c499303ae6
2018-01-24 20:47:51 +01:00
Martin Prikryl
987728ea0c Prettifying debug macros
Source commit: ba529d34782876686ca07031e9c0b7c17f9e92fd
2018-01-24 20:39:55 +01:00
Martin Prikryl
d8f92984b9 First public commit of dev branch
Source commit: 98cb9d870efc1c60826db4398ec35c5cbe809e6a
2018-01-24 14:13:46 +01:00
Martin Prikryl
985a33638e 5.7.1 2018-01-11 15:37:31 +01:00