Commit Graph

4756 Commits

Author SHA1 Message Date
Mike Gelfand 43acd7e3e4
Remove Xcode project in favor of CMake (#4147)
* Compile images into an assets catalog

* Optionally sign resulting Mac bundle

* Move 3rd-party/utility/test targets to their own folders

* Enable ARC via compile options unconditionally

* Install base and localized resources into correct directory

This seems like a Xcode quirk: if subdirectory containing the resource file
matches the destination directory name (and probably if there's more than one
resource file being installed there), the resulting folder structure then
contains an extra subdirectory, i.e. Resources/dirname/dirname/resname.

* Group source files for better structure in IDEs (Xcode, VS)

* Remove Xcode project

Using Xcode is still possible via "Xcode" CMake generator.

* Use ad-hoc signature if one is not specified

* Always use ad-hoc signature on link, leave proper signing to CPack

* Install localized resources into correct directory (QL plugin)

* Don't include CTest (we don't use additional targets it provides)

* Revert "Remove Xcode project"

This reverts commit dc069f654f.
2022-11-12 20:01:57 +00:00
A Cœur 48e42ac71e
Fix NSURLConnection is deprecated - Use NSURLSession (#4112) 2022-11-11 21:29:48 -06:00
A Cœur 69fda72a8b
refactor: remove superfluous interface declarations (#4110) 2022-11-08 23:36:53 -06:00
Gary Elshaw c32161f7ca
feat: place upload above download in macOS badge (#4055) 2022-11-07 13:21:49 -06:00
A Cœur d2ee0d2d08
feat: Align active filter macOS (#3944) 2022-11-07 11:20:15 -06:00
A Cœur 91e5cf31f6
Fix "nil passed to a callee that requires a non-null 1st parameter" (#4084) 2022-11-07 09:57:35 -06:00
A Cœur 69ee92113f
Fix: values above INT_MAX (68 years) are interpreted as negative values (#4085) 2022-11-07 08:27:51 -06:00
A Cœur 84badfc66f
removing unreachable code (#4083) 2022-11-03 09:47:43 -05:00
A Cœur fa7100bdef
Auto enlarge search field when editing (#4067) 2022-11-01 20:40:24 -05:00
A Cœur 46eab5f3f8
Fix "User-facing text should use localized string macro" (#4030) 2022-10-31 09:37:34 -05:00
A Cœur 12e564096b
fix: "Implicit conversion loses integer precision" warnings (#3960) 2022-10-25 11:14:42 -05:00
SweetPPro a8267395b2
macOS fix a potential hang when updating the blocklist (#4010)
fixes potential hang when unzipping a new blocklist on macOS (#3969)
2022-10-24 10:12:33 -05:00
Mike Gelfand 70f623f32b
Add user data parameter for torrent removal callback (#4009) 2022-10-23 11:51:35 -05:00
Dmitry Serov 3a8dc9d203
Replace preprocessor defines with constants in objc code (#3974) 2022-10-19 14:28:21 -05:00
Yuze Jiang 8cad9675d8
Update to the message log window on macOS, fix #3627 (#3962)
- Set the minimum size of the Message column of the message log
window to 200 (previously was 10) to fix #3627
- Align the log level indicator to the top
2022-10-19 13:22:19 -05:00
Mike Gelfand 9dd4454729
Sync translations (#3968)
* Sync translations with code

* Migrate to Go-based Transifex client version

* Sync translations with Transifex
2022-10-15 21:21:13 +03:00
A Cœur 4ea9c87fea
fix: some typos (#3904) 2022-10-13 09:35:10 -05:00
Cœur 0d948886f6 orderOut: isn't needed with beginSheet:/endSheet: 2022-10-12 18:56:30 +08:00
Antoine Cœur 019b493f36 Fix 'modalDelegate:' is deprecated to avoid contextInfo leaks. 2022-10-12 18:19:38 +08:00
A Cœur 74cc584a6a
Xcode 11.3.1 compatibility (#3946) 2022-10-11 23:09:46 -05:00
Mike Gelfand f1f55cc3df
Sync translations (#3939)
* Sync translations with code

* Sync translations with Transifex

* Remove Mac menu title that isn't displayed and shouldn't be translated

* Add context to logging level strings in GTK client

* Use "µTP" consistently in code

* Use ellipsis instead of three docs in Qt client strings

* Close HTML tags in blocklist-related strings

* Remove trailing space from a translatable string in Qt client

* Add missing plural forms for English strings in Qt client

* Fix spelling: metaInfo -> metainfo
2022-10-11 18:39:41 +03:00
A Cœur cc5ae321a5
Fix "Capture of autoreleasing out parameter inside autorelease pool that may exit before method returns" (#3886) 2022-10-10 18:08:47 -05:00
A Cœur 0954e28780
Sort order by activity is reversed (#3924) 2022-10-10 12:39:51 -05:00
Dzmitry Neviadomski bfe6953822
macOS: Hide Title (App Name) on BigSur and later. (#3919)
Also specify Unified Toolbar Style explicitly, as hiding title
triggers Unified Compact style.

Fixes #3891

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>
2022-10-09 10:37:11 +03:00
A Cœur 5ba2186f1f
Rollback #3871 (#3889) 2022-10-07 10:21:01 -05:00
Harm133 ec373f9041
macos: Allign active filter with other clients (#3871) 2022-10-06 17:15:33 -05:00
Charles Kerr bf156a97cf
refactor: port forwarding (#3850)
* refactor: rename state enum type as tr_port_forwarding_state

* chore: use snake_case for tr_shared struct fields

* refactor: replace tr_shared with tr_port_forwarding

* refactor: make tr_natpmp_state an enum class

* refactor: uniform naming for port-forwarding module

* refactor: move output-only parameters in tr_natpmp::pulse() to return struct

* fix: use a nullptr multicastif if bindaddr is empty

* chore: use PascalCase for enum class values

* chore: clean up port-forwarding #includes

* chore: remove unused tr_port_forwarding::peerPort()
2022-09-30 08:59:10 -05:00
Mike Gelfand 1b641b660e
Sync translations (#3845)
* Sync translations with code

* Sync translations with Transifex
2022-09-24 17:19:25 +01:00
Mike Gelfand 33f96810a1
Sync translations (#3799)
* Sync translations with code

* Sync translations with Transifex
2022-09-10 06:25:44 +03:00
Mike Gelfand ea14f91ac8
Sync translations (#3755)
* Sync translations with code

* Sync translations with Transifex
2022-09-04 13:59:04 +03:00
luzpaz f8203148f0
fix: fix various user facing and non-user facing typos (#3743)
* fix: fix various user facing and non-user facing typos

Found via `odespell -q 3 -S ./third-party,*.po,*.ts -L filetest,inout`
2022-08-31 11:28:54 -05:00
Robert Palmer 846442af83
For some reason self.fPieces.resize() won't work but _fPieces.resize() will (#3669) 2022-08-18 10:21:31 -05:00
Charles Kerr 76a7994eef
refactor: remove tr_free() (#3668) 2022-08-18 09:14:12 -05:00
Charles Kerr bfec98c323
refactor: avoid tr_new() in transmission-remote (#3665) 2022-08-17 20:25:42 -05:00
Charles Kerr 29f57bc296
chore: iwyu headers (#3661) 2022-08-17 11:08:36 -05:00
Charles Kerr e49747ab51
feat: add tr_strvToBuf() (#3657)
* feat: add tr_getDefaultConfigDirToBuf()

* feat: add tr_getDefaultDownloadDirToBuf()

* feat: add tr_strvToBuf()

* feat: add tr_torrentFindFileToBuf()

* feat: add tr_torrentGetMagnetLinkToBuf()

* refactor: remove unused makeString() from tests

* feat: add tr_torrentFilenameToBuf()

* feat: add tr_torrentGetTrackerListToBuf()

* chore: remove obsolete comment references to tr_free

* chore: remove unused tr_strdup()

* chore: remove unused forward declarations
2022-08-16 19:28:57 -05:00
Charles Kerr 6278ea7017
refactor: reduce use of tr_malloc / tr_free (#3652)
* refactor: avoid tr_new in macos Torrent.trashDataFile

* refactor: avoid tr_new in maco PiecesView

* refactor: avoid tr_new in qt createVariant()
2022-08-16 12:03:09 -05:00
Charles Kerr 7c5862a5f5
refactor: remove tr_new, tr_free pt. 1 (#3626)
* refactor: tr_torrentGetMetadataPiece() returns an optional vector

* refactor: use tr_pathbuf in create_temp_path()

* refactor: use tr_pathbuf in win32 create_temp_path()

* refactor: use std::vector in isPeerInteresting()

* refactor: remove tr_new0 from tr_peerMgrPeerStats()

* refactor: remove tr_new0 from rechokeUploads()

* refactor: silence clang nullptr dereference warning

* refactor: make tr_natpmp a C++ class

* refactor: use std::string in tr_log_message
2022-08-11 19:59:58 -05:00
SweetPPro a700259cc0
macOS convert message window to autolayout (#3604)
fixes some clipping in the macOS Message Log window
#3574
2022-08-10 09:47:13 -05:00
Gary Elshaw 0da5660c6e
Increase font size of TrackerCell from 9 to 9.5 (#3571) 2022-08-09 08:15:52 -05:00
Charles Kerr bf8f72e61f
refactor: tr_metainfo_builder() (#3565) 2022-08-02 14:46:08 -05:00
SweetPPro 3982532d65
macOS disable green maximize button on Inspector window (#3563)
Fixes #3486
2022-08-02 08:19:03 -05:00
SweetPPro 2ff4dd139f
macOS autolayout fixes on Inspector - Options tab (#3559)
* macOS autolayout fixes on Inspector - Options tab

Fixes #3558

* macOS - equal height NSPopupButtons on Inspector - Options tab
2022-08-02 01:37:49 -05:00
Charles Kerr 9c7fcf85cf
refactor: tr_stats (#3542) 2022-07-28 18:56:40 -05:00
SweetPPro 366d7f0702
macOS small layout fixes to Info Window (#3522)
unifies the margin between headers and content on the Activity tab and the Options tab in the Info Window
2022-07-27 20:12:01 -05:00
Mike Gelfand 42a065e510
Adjust CMake configs for Mac base internationalization (#3521)
Fixes: #3515
2022-07-25 02:44:56 +01:00
Mike Gelfand 9539484cdc
Sync translations (#3519)
* Handle default value for `PrefWindowSize` in code

* Add new Mac client resources to Transifex config

* Remove non-user-visible titles from XIB files

* Sync translations with code

* Sync translations with Transifex
2022-07-24 18:13:04 +01:00
Dzmitry Neviadomski 42924f3e97
[macOS] Revamp Toolbar Segments (#3512)
Fixes #3498.
2022-07-23 14:37:57 -05:00
Charles Kerr 47fe7c47d2
refactor: replace per-torrent callbacks with per-session ones. (#3495) 2022-07-23 01:04:34 -05:00
Charles Kerr 445aad56a0
test: add platform tests (#3514)
* test: add tr_getDefaultDownloadDir() tests

this also indirectly tests xdg and homedir

* test: add PlatformTest.defaultConfigDirEnv

* test: add PlatformTest.defaultConfigDirXdgConfig

test: add PlatformTest.defaultConfigDirXdgConfigHome

* test: add PlatformTest.webClientDirEnvClutch

test: add PlatformTest.webClientDirEnvTr

test: add PlatformTest.webClientDirXdgDataHome

* fixup! test: add PlatformTest.webClientDirEnvClutch

fix: win32 breakage
2022-07-22 20:10:02 -05:00