Commit Graph

55 Commits

Author SHA1 Message Date
Mike Gelfand 07912d230b Use PascalCase for Qt client filenames
Split FileTree.{h,cc} and FilterBar.{h,cc} files so that each class
is in its own file.

This breaks translations (some classes got renamed => context changed),
to be fixed by next commit (along with Tx sync).
2015-06-10 21:27:11 +00:00
Mike Gelfand 3b129a72d8 #5908: Check for `tr_loadFile` return value instead of `errno` in `tr_variantFromFile`
Seems like there could be a defect in uClibc making errno not
thread-local. Don't rely on errno value but check function return value
instead which is a better failure indicator.

Return errors from `tr_loadFile` and `tr_variantFromFile` via tr_error.
Fix `tr_sessionLoadSettings` to not fail on Windows if settings.json
does not exist.
2015-04-11 10:51:59 +00:00
Mike Gelfand d96ef13a89 Define QT_NO_CAST_FROM_ASCII (Qt client)
Use latin1 encoding most of the time where default encoding was used
before. Qt 4 assumes latin1 by default while Qt 5 uses utf-8 which is
not what we want.

Use utf-8 encoding in some places where default encoding was used before.
This includes strings coming from RPC.

Fix an issue with SortMode::names[] (filters.cc) where missing comma
between "sort-by-queue" and "sort-by-ratio" resulted in two array entries
being merged into solid "sort-by-queuesort-by-ratio" string and all the
following items being shifted compared to their enum counterparts.
2015-01-29 21:53:05 +00:00
Mike Gelfand e707e8d4c5 Treat command-line arguments as UTF-8-encoded; hide char* Prefs setter, require explicit conversion 2015-01-28 22:57:46 +00:00
Mike Gelfand 17d6666b4c A bit of harmless refactoring
Prefer C++-style over C-style type casting.
Use qApp instead of QApplication/QCoreApplication::instance().
Use explicit QString::fromLatin1()/fromUtf8() where applicable.
2014-12-27 14:07:14 +00:00
Mike Gelfand 629281a1e2 Fix license wording in Qt client .cc files to match the rest of the code. 2014-12-21 23:49:39 +00:00
Mike Gelfand 67dc1c8485 Strip spaces around :: in C++ code (Qt client) 2014-12-12 23:05:10 +00:00
Jordan Lee 4b9626bb83 Licensing changes:
1. add the option the code to be used under GPLv2 or GPLv3; previously only GPLv2 was allowed

2. add the "proxy option" as described in GPLv3 so we can add future licenses without having to bulk-edit everything again :)

3. remove the awkward "exception for MIT code in Mac client" clause; it was unnecessary and confusing.
2014-01-19 01:09:44 +00:00
Jordan Lee 4904b923fb (trunk) restore copyright year as suggested in email by rms 2014-01-18 20:56:57 +00:00
Jordan Lee 3cf26eb273 revert quint64/quint32/qint64/qint32 use to inttypes to match libtransmission's API 2013-08-29 00:37:37 +00:00
Jordan Lee f3d35b0da3 instead of inttypes, use Qt integral types -- eg, s/uint64_t/quint64/ 2013-08-24 19:42:51 +00:00
Jordan Lee 03cbce7b2e (qt) #5307 'Error in prefs.cc' -- fixed with patch from rb07. 2013-02-26 04:53:35 +00:00
Jordan Lee b42a7ebdc3 (qt) Qt client should have the option to play a sound when the download completes, as the Mac and GTK+ clients do -- implemented. 2013-01-20 23:57:09 +00:00
Jordan Lee 84c5be5a77 (trunk, qt) #5060 'start minimized to tray option' -- added. 2012-12-30 22:51:55 +00:00
Jordan Lee e19fd611c7 (trunk, qt) #5192 'Free Memory Read error in transmission-qt's Prefs destructor' -- fixed. 2012-12-24 19:53:33 +00:00
Jordan Lee c1559f3cc4 (trunk, libT) first drop of the tr_quark patch. 2012-12-22 20:35:19 +00:00
Jordan Lee e96ed247fe refactor libtransmission's tr_benc class as tr_variant. 2012-12-14 04:34:42 +00:00
Jordan Lee 97e1e60c6c (trunk, qt) #4760 'transmission-qt breaks unicode characters in the default target dir' -- fixed with patch from rb07 2012-08-19 16:12:20 +00:00
Jordan Lee 61174b007e (trunk) #671 "torrent queuing" -- Preliminary implementation. Covers libtransmission; GTK+ and Qt clients, and rudimentary web client support. 2011-08-01 22:24:24 +00:00
Jordan Lee 6717816c2c (trunk qt) #4316 "Transmission 2.31 crashes (segfaults) immediately after launch" -- sync the Qt client to the changes made in r12514 2011-06-25 19:56:48 +00:00
Jordan Lee 4b4f3a0efb (trunk qt) housekeeping: tr_bool --> bool 2011-03-23 18:26:01 +00:00
Jordan Lee c36ee39a03 (trunk qt) fix build issue reported by taem 2011-02-24 18:05:00 +00:00
Jordan Lee 3f1b060241 (trunk T) add preliminary enable/disable toggles in daemon, gtk, and qt clients. 'preliminary' because this may be widened to a tri-state of inabled, disabled, and incoming only 2011-02-18 00:33:29 +00:00
Charles Kerr 4aa9ace6fa (trunk qt) #3688 "remove proxy support" -- removed from Qt client. 2010-11-02 01:24:08 +00:00
Charles Kerr 92620b72b0 (trunk) #3697 "make blocklist URL configurable" -- implemented in GTK+, Qt, and RPC 2010-10-31 17:16:12 +00:00
Charles Kerr 1477c8909f (trunk qt) synchronize the copyright notices 2010-08-01 20:36:13 +00:00
Charles Kerr e41281a997 (trunk qt) #3459 "Qt client's filterbar should be updated to match the GTK+ client's" -- fixed 2010-07-30 22:31:31 +00:00
Charles Kerr 009d024908 (trunk qt) #3454 "sync trackers tab with GTK+ client" --
1. add "show backup trackers" togglebutton.
2. fix bug where toggling "show more" didn't take effect instantly
3. sync the "show more" preferences key with the GTK+ client
4. fix a couple of minor tracker text inconsistencies with the GTK+ client
2010-07-28 14:43:47 +00:00
Charles Kerr 3655047e85 (trunk) #2560: rename "inactive limit" to "idle limit". Add support in GTK+ client and preliminary support to Qt client 2010-07-24 02:57:39 +00:00
Charles Kerr 6e5af03d78 (trunk) #3045 "speed units" -- change the public API of libtransmission based on feedback from livings 2010-07-04 06:07:21 +00:00
Charles Kerr cdcc4705aa (trunk) #3045 "make libtransmission's API byte-oriented instead of KiB-oriented." -- implemented. This is a largish commit and will break the mac build for a little while. 2010-07-03 00:25:22 +00:00
Daniel Lee c8408b755f (qt) #3362:Edit trackers in transmission-qt 2010-06-30 05:55:46 +00:00
Charles Kerr da2ef53eeb (trunk) #1796 "run script after torrent completion" -- implemented for libT, RPC, and the GTK+ and Qt clients 2010-05-08 22:42:28 +00:00
Charles Kerr 2b9ab542cb (trunk) #3060 "Local Peer Discovery" -- in the code, rename LDS as LPD for Local Peer Discovery 2010-05-08 08:42:45 +00:00
Charles Kerr 3473686ee2 (trunk) add LDS toggles to GTK+ client, Qt client, and transmission-remote 2010-05-01 16:23:42 +00:00
Charles Kerr d8b4779188 (trunk qt) #3098 "tracker display broken in qt client" -- fixed in trunk for 2.00 by Longinus00's patch 2010-04-03 14:23:29 +00:00
Charles Kerr e1607c8354 (trunk) #2898 "add pausing and deletion to daemon" -- committed patch from Longinus00 to trunk for 2.00 2010-03-17 19:23:03 +00:00
Charles Kerr ca4dce6f5e (trunk, qt) rename the slightly-pejorative "minimal view" as "compact view" 2010-03-15 14:42:56 +00:00
Charles Kerr 92f67263ee (trunk, libT) #2844 "add able to disable '.part' suffix for incomplete files" -- added to GTK+ and Qt clients and to RPC spec for 1.90 2010-02-01 04:43:10 +00:00
Charles Kerr 5c26afdb52 happy new year! 2010-01-04 21:00:47 +00:00
Charles Kerr 78ead8c3dd (trunk) update the copyright notices 2009-12-05 02:19:24 +00:00
Charles Kerr c35beb3843 (trunk) #1483: move completed torrents to a user-specified directory 2009-10-19 05:25:50 +00:00
Charles Kerr 3631a38e67 (trunk, gtk, qt) #2478: popup dialog for first-time users 2009-10-02 22:53:19 +00:00
Charles Kerr 9238fb0299 (trunk) #2131: clean up benc read/write API 2009-06-02 01:48:48 +00:00
Charles Kerr 7f85090587 (trunk) add a "source" argument to tr_jsonParse() so that if there's an error we can log the filename, or that it came from rpc, etc. 2009-06-01 18:57:37 +00:00
Charles Kerr 79fb45c110 (trunk qt) add svn properties on the qt source files 2009-05-31 19:33:48 +00:00
Charles Kerr 73add1f2f9 (trunk) add hooks for disabling/enabling DHT in gtk client, qt client, and transmission-remote 2009-05-21 00:15:54 +00:00
Charles Kerr 1c3f3acbca (trunk) add an option to the JSON generator to disable the human-readable indentations. Keep indenting the data files such as settings.json, but don't indent the messages used for RPC. This cuts the cost of deflate()ing those RPC messages by about 80%... 2009-05-16 05:51:52 +00:00
Charles Kerr 5d4f4fdd51 (trunk qt) #2077: doesn't show/modify the "Stop seeding torrents at ratio" 2009-05-14 18:28:11 +00:00
Charles Kerr b2c65797e0 (trunk) very minor tweaks 2009-05-03 19:12:22 +00:00