Commit Graph

53 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 9f8402697b Use C++11 range-based `for` loops (Qt client) 2015-04-18 14:41:06 +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 efddf08d67 Rework torrent creation dialog in Qt client to load from .ui 2014-12-31 22:27:46 +00:00
Mike Gelfand e0d5f8b861 Add new TrPathButton class (Qt client)
Make use of new button class in torrent options dialog.
Rework Utils::removeTrailingDirSeparator to return correct value for "/".
2014-12-31 21:00:34 +00:00
Mike Gelfand c64ca900c2 Rework torrent options dialog in Qt client to load from .ui 2014-12-29 04:03:56 +00:00
Mike Gelfand 342f38bbc5 Factor RPC logic out from session (Qt client) 2014-12-27 20:03:10 +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 2ca4596fac Refactor FreespaceLabel to make it possible for it to be created in Qt Designer 2014-12-26 18:41:47 +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 365b28bc81 Strip needless const& specifiers on SIGNAL and SLOT arguments (Qt client) 2014-12-13 09:04:10 +00:00
Mike Gelfand 67dc1c8485 Strip spaces around :: in C++ code (Qt client) 2014-12-12 23:05:10 +00:00
Mike Gelfand 17769e2e2a #5077: Remove torrent file from watch directory even if "show options dialog" is not set (patch from rb07 + some improvements)
Refactor Session::addTorrent (add new method) to eliminate duplicate
code in options.cc and ensure that FileAdded object is being created
on torrent addition even with non-interactive workflow.
Move FileAdded class from options.{h,cc} to session.{h,cc}.
2014-12-01 19:24:07 +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 da317c441d copyediting: indentation cleanups 2013-09-14 22:45:04 +00:00
Jordan Lee e0acd2dcc3 (trunk, qt) reuse make-dialog's trailing slash fix in the options dialog when setting the download dir 2013-09-08 19:59:47 +00:00
Jordan Lee e0e98cbed5 fix CL warnings in the Qt code. mikedld 2013-09-08 18:39:37 +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 1c79173459 support qt5 in transmission-qt 2013-07-27 21:58:14 +00:00
Jordan Lee b91014ba1e (qt) #5280 'show options dialog in more cases': fix verify button issue reported by lucke 2013-02-10 22:44:25 +00:00
Jordan Lee dbb742f667 (qt) merge together the two 'add url/magnet link' dialogs. 2013-02-09 23:11:17 +00:00
Jordan Lee 2942f85740 (qt) copyediting: whitespace/indentation 2013-02-09 21:47:42 +00:00
Jordan Lee 4c3a869a88 (qt) #5285 'Qt client's file tree should have a size column like the GTK+ client's': done. 2013-02-09 20:51:17 +00:00
Jordan Lee d1da0204c7 (qt) #4076 'free space indicator': better user feedback when updating the freespace indicator in remote mode 2013-02-09 04:42:07 +00:00
Jordan Lee cd09204a6e (trunk) first draft of changing the FreeSpace API to behave as https://trac.transmissionbt.com/ticket/4076#comment:25 -- libT, rpc, qt, and gtk implementations. 2013-02-09 04:05:03 +00:00
Jordan Lee ea6228d81b (qt) #5252: disable file editing in the options dialog. remove keyboard shortcuts that conflicted with renaming files in file-tree.c. fix refresh issue in the file-tree when renaming files. 2013-01-28 07:01:58 +00:00
Jordan Lee d698cfd057 (qt) #5208: refinement to r13734 as suggested by rb07. 2013-01-03 18:56:39 +00:00
Jordan Lee 69987484fe (qt) #5208 'Replace baseName() with fileName() for FULL file name' -- fixed, patch by krab 2013-01-03 03:52:15 +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 792215c5e9 (trunk qt) #5059 'Memory leak in the TrMainWindow :: openTorrent' -- fixed. 2012-10-08 04:23:39 +00:00
Jordan Lee 3d42f7272a (trunk, qt) #4036 'Qt Client doesnt delete torrent files' -- use a patch by rb07 to work around a Firefox idiosyncrasy that prevented the added .torrent file from being removed. 2012-08-19 00:12:43 +00:00
Jordan Lee b72c58e34f (trunk qt) #4235 "allow transmission-qt to specify download dir for remote sessions" -- patch added from taem 2012-07-09 23:18:40 +00:00
Jordan Lee 5b53b62773 (trunk qt) #4428 "Conversion to QString in "New torrent" dialog assumes the input string is ASCII" -- fix many ascii-to-QString assumptions in the code. 2011-08-20 05:19:27 +00:00
Jordan Lee 131afcc3a4 (trunk) #3926: use "Open Torrent" instead of "Add Torrent" in GTK+ and Qt clients -- text changed. 2011-01-20 19:48:13 +00:00
Charles Kerr 515ac1be36 (trunk qt) #3482 "Handle common user errors when adding an existing torrent" -- fixed 2010-08-04 16:25:30 +00:00
Charles Kerr 1477c8909f (trunk qt) synchronize the copyright notices 2010-08-01 20:36:13 +00:00
Charles Kerr 3fa4865863 (trunk) #3450 "regression: Qt client dbus support broken" -- fixed 2010-08-01 18:55:04 +00:00
Daniel Lee 16dc284185 (qt) Comment out debug message 2010-06-04 01:41:47 +00:00
Charles Kerr 77ef2c1e0c (trunk qt) #2612 "display new transfer window when adding magnet transfer" -- implemented for Qt client 2010-05-13 23:54:32 +00:00
Charles Kerr af3e64f383 (trunk qt) "Priority Selection in `Add' Window" -- implemented for Qt client 2010-02-02 07:52:57 +00:00
Charles Kerr 182cbb8b90 (trunk) one of the less-interesting commits in a while: remove trailing spaces from lines 2010-01-05 23:47:50 +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 2c94fbdfd7 (trunk gtk,qt) synchronize the gtk, qt preferences dialogs a bit 2009-10-20 14:01:15 +00:00
Charles Kerr 4e18bc9734 (trunk qt) minor cleanup 2009-10-06 00:27:26 +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 3827d80cd8 (trunk qt) #2072: Delete .torrent with or without error 2009-05-15 02:05:07 +00:00