Commit Graph

134 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 7ce0ebfee7 Ifdef the code which does manual relayout on compact view toggle to Qt < 5.4 (QTBUG-33537) 2015-04-20 09:28:26 +00:00
Mike Gelfand 9f8402697b Use C++11 range-based `for` loops (Qt client) 2015-04-18 14:41:06 +00:00
Mike Gelfand 49e16e64a6 Fix build on Windows (blindly) 2015-01-29 22:10:00 +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 a18d818882 Rework preferences dialog in Qt client to load from .ui 2015-01-25 15:47:03 +00:00
Mike Gelfand 9866082907 Poke translations a bit (Qt client)
Add a bit more comments. Adjust some phrases for pluralization.
Mark menu shortcuts as not translatable (changing them doesn't do any
good but people start translating "Ctrl" as "Ktrl" etc. which breaks
the shortcuts).
Pull current translations from Transifex.
2015-01-18 02:09:44 +00:00
Mike Gelfand 91973ab94d Use (hopefully) better suited theme icons for some actions (Qt client) 2015-01-04 00:18:31 +00:00
Mike Gelfand 424c79a5da Make use of path button in relocate dialog (Qt client) 2015-01-01 05:02:13 +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 c64ca900c2 Rework torrent options dialog in Qt client to load from .ui 2014-12-29 04:03:56 +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 2d02481f2d Fix the rest of :: formatting in C++ code 2014-12-26 14:22:35 +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 dee7bc9b6a Move status bar creation to mainwin.ui
Among other things,
* fix turtle icons size (20x14 -> 16x16)
* use QIcon states instead of changing the turtle icon ourselves each
  time (unchecked - off, checked - on)
* make speed limit action in tray menu checkable
* simplify status bar buttons drawing and use QToolButton instead of
  QPushButton
2014-12-18 01:30:50 +00:00
Mike Gelfand 6c02008280 Do not use printf-style formatting in C++ code 2014-12-14 15:34:31 +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 2adbb42763 Fix various cppcheck comments for Qt client code 2014-12-12 23:52:17 +00:00
Mike Gelfand 67dc1c8485 Strip spaces around :: in C++ code (Qt client) 2014-12-12 23:05:10 +00:00
Mike Gelfand faf1b2fbdf #5848: Use theme-provided icons in Qt client (patch by equeim + small additions) 2014-12-12 21:47:22 +00:00
Jordan Lee 4f29ab1476 remove tracer cerr that was accidentally committed in r14272 2014-05-18 19:47:02 +00:00
Jordan Lee c56c952e23 update network error detection as described by rb07 in https://trac.transmissionbt.com/ticket/5514#comment:9 2014-05-15 21:32:04 +00:00
Jordan Lee cd7e5291db silence warnings found by clang++ 2014-05-09 02:32:28 +00:00
Jordan Lee 2be080f48e (trunk qt) #5514 'enhanced network status' -- reset the torrent model when we reconnect to the transmission session after a network failure 2014-04-27 00:33:19 +00:00
Jordan Lee 8b0a7746bb fix crash when creating the Open Torrent dialog in Qt 5.2 on Ubuntu 14.04 2014-03-16 22:50:39 +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 632edad03d (trunk, qt) #5514 'enhanced network status in transmission-qt' -- patch by rb07 2013-10-20 19:57:48 +00:00
Jordan Lee 6593a47493 (trunk, qt) #5487 'Qt client crash when using Open URL action' -- fixed. 2013-09-14 22:50:25 +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 ec82d81598 handle tray icon doubleclicks. (rb07) 2013-08-24 19:22:41 +00:00
Jordan Lee 1c79173459 support qt5 in transmission-qt 2013-07-27 21:58:14 +00:00
Jordan Lee df0d7f7f43 (trunk, qt) #5374: add url support for dragging-and-dropping multiple URLs into transmission-qt. patch by rb07 2013-06-26 01:48:47 +00:00
Jordan Lee a2ca089cfd (trunk, qt) #5374 handle multifile drag-and-drop in Qt client, patch by kernel_daemon 2013-06-09 20:18:47 +00:00
Jordan Lee a7b3ec4d92 (qt) fix nightly regression by zeroing out the myFileDialogOptionsCheck pointer in mainwin's constructor 2013-02-10 18:49:15 +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 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 716a2f2c5c (qt) experiment with making the statusbar's speed/ratio, the desktop icon's tooltip, and the delegate's shortTransferString() all behave the same wrt when to show which transfer speeds 2013-02-07 21:07:16 +00:00
Jordan Lee 47f2192b2d (qt) in the statusbar, use the same upload/download symbols as in the torrent list 2013-02-05 23:05:26 +00:00
Jordan Lee 5dab28ee9c (qt) plug a handful of minor memory leaks 2013-02-03 12:31:44 +00:00
Jordan Lee 085c37584e #4076 'free space indicator': in the Qt and GTK+ clients, add 'Free' to the freespace labels to give more context of what the number means 2013-02-01 21:02:40 +00:00
Jordan Lee 16d46a72a1 in the Qt and GTK+ clients, move the torrent count indicator from the statusbar to the filterbar 2013-02-01 20:58:55 +00:00
Jordan Lee 20fe66bccf more experimentation with the shortTransferString 2013-01-30 00:22:52 +00:00
Jordan Lee 1d3bf93618 synchronize the Qt and GTK+ client's statusbars, including the new freespace indicator. Make the up/down speed ordering consistent between statusbar and torrent list. 2013-01-27 23:05:47 +00:00
Jordan Lee 282ef8adfd use 'folder' instead of 'directory' in the freespace tooltips 2013-01-27 18:48:59 +00:00
Jordan Lee 3e7ef0c4dd copyediting: modify more files to the new indentation/whitespace formatting 2013-01-27 18:09:49 +00:00
Jordan Lee 895f86e0fb (qt) #4076 'free space indicator' -- added. 2013-01-27 17:19:51 +00:00
Jordan Lee 08187ef984 (qt) tweak the network status icon's tooltip again. This is a followup to r13727 2013-01-03 04:21:45 +00:00
Jordan Lee 5cfcfd95c4 (qt) #5206 'tray icon cancels logout in KDE' -- fixed with patch from basinilya 2013-01-01 20:02:20 +00:00