Commit graph

446 commits

Author SHA1 Message Date
Chocobo1
4ad541d066 Fix coverity issues
torrentcontentmodel: Use a variable to store filesCount
optionsdlg: add fallthrough comment to suppress warning
speedPlotview: initialize member
misc: fix wrong type used, add spaces
2017-02-08 13:49:47 +08:00
thalieht
2bb2d3fc89 change all existing shortcuts to use Qt::Keys 2017-01-28 19:43:16 +02:00
thalieht
c87cdaea23 add hotkeys for Trackerlist Peerlist etc. 2017-01-25 11:33:33 +02:00
sledgehammer999
b625c4c662 Merge pull request #3162 from ngosang/trackers_tab
Display more information in tracker tab
2017-01-21 15:59:05 +02:00
sledgehammer999
f4fa000ba3
Polish previous commit. 2017-01-21 02:59:33 +02:00
sledgehammer999
68ecbf4185 Merge pull request #5420 from thalieht/alignment
Changes and additions in search, peerlist, transferlist
2017-01-21 02:58:32 +02:00
sledgehammer999
2d37a39e43
Allow to change priority for unselected files through the combobox like it is done via the context menu. 2016-12-30 01:37:19 +02:00
sledgehammer999
7ba66e692f
Always show progress and remaining bytes for unselected files. 2016-12-30 01:37:13 +02:00
sledgehammer999
3e375128c0
Use a disabled progressbar's palette for unselected files.
Thanks to evsh(Eugene Shalygin) for example code.
2016-12-30 01:37:02 +02:00
Oke Atime
84da355f4c Case insensitive sort for client clumn. Closes #6054 2016-12-15 15:25:30 +09:00
thalieht
f523685414 PeerListDelegate: fix coding style in whole file 2016-12-07 18:39:03 +02:00
thalieht
a90100a0b7 PeerList: allow to hide zero values for the "uploaded" and "downloaded" columns 2016-12-07 18:25:18 +02:00
thalieht
daf33ef8aa PeerList: align text to the right in columns that handle numbers 2016-12-07 17:47:51 +02:00
Chocobo1
ce3c53b3c4 Replace deprecated classes 2016-12-07 01:31:44 +08:00
sledgehammer999
f7194eecb0 Merge pull request #5997 from Chocobo1/msvc_warnings
Fix msvc warnings
2016-12-02 19:15:59 +02:00
Chocobo1
11c2ee81c1 Fix warning C4267.
conversion from 'size_t' to 'int', possible loss of data.
2016-12-02 15:32:27 +08:00
sledgehammer999
3c1774360f Merge pull request #5981 from Chocobo1/scroll_h
Horizontal scroll
2016-12-02 01:47:08 +02:00
dzmat
de26606ad5 memleak fix 2016-12-01 20:18:38 +07:00
Chocobo1
f4652b3f7b Shift + scroll = horizontal scroll, Closes #5980
Only for TransferListWidget, PeerListWidget
2016-11-27 16:06:46 +08:00
Anton Lashkov
36901295b2 Simplify if statement 2016-11-04 21:44:00 +04:00
sledgehammer999
124eddc68c Merge pull request #5342 from glassez/session
Optimize BitTorrent::Session settings applying
2016-11-01 03:02:29 +02:00
Chocobo1
85add9a5c8 Use "Standard Shortcuts" defined by Qt whenever possible. 2016-08-10 23:09:15 +08:00
Daniel Segesdi
76580e4766 Fix 6-hour speedplot point push rate. Close #5545 2016-08-02 10:59:01 +02:00
Vladimir Golovnev (Glassez)
b2cb473b63 Don't use Preferences in BitTorrent::Session 2016-06-20 08:30:02 +03:00
Eugene Shalygin
0b1a9220a9 Fix empty tooltips showed at the progress bar borders
If tooltip text contains an empty HTML body, Qt still shows it as an
empty rectangle. Thus, output HTML tags only if we are within the
image region, and return true empty string if we are at the borders.
2016-06-02 20:51:57 +02:00
Eugene Shalygin
b3378d4599 Show files in tooltips for pieces progress bars
In addition to the current tooltip, which shows color legend, if user
holds the Shift key during hovering we show another tooltip which
contains a table of contents for the piece under the moue cursor. The
table lists file sizes and names. If the cursor points to a part of a
file which spans several pieces, those pieces are highlighted.
2016-06-02 10:30:28 +02:00
Eugene Shalygin
f9c2bd3502 Follow project coding style. Issue #2192. 2016-05-31 19:42:08 +02:00
sledgehammer999
fc0746eb71 Merge pull request #5245 from thalieht/resolveCountries
Minor refactor in PeerListWidget
2016-05-17 17:55:11 -05:00
thalieht
4baa6dde52 resize column to contents only when they're visible
refactor updatePeerCountryResolutionState
deprecate m_resolveCountries var
2016-05-18 00:44:41 +03:00
Chocobo1
8a1d387c38 Change ambiguous text "Copy selected" to "Copy IP:port" 2016-05-16 14:29:59 +08:00
sledgehammer999
9c5a5fc83d Merge pull request #3908 from Chocobo1/rm_nsort
Replace `naturalSort()` with `naturalCompare()`.
2016-05-08 11:12:51 -05:00
Chocobo1
5906a4a2de Add case-sensitive & case-insensitive natural sort helper function
Fix helper function not being thread-safe
Use QBT_USES_QT5 define
2016-05-08 23:59:06 +08:00
ngosang
be9bc07890 Display more information in tracker tab 2016-05-07 14:11:17 +02:00
ngosang
7fe5674b9a Fix Add tracker dialog URL download 2016-04-22 23:48:06 +02:00
ngosang
b7ef066545 Fix Add tracker dialog empty trackers 2016-04-22 23:47:22 +02:00
Chocobo1
d65ff87148 Replace naturalSort() with naturalCompare(). 2016-04-18 14:27:44 +08:00
sledgehammer999
cd4f288f67 Follow project coding style. Issue #2192. 2016-04-13 01:53:54 +03:00
sledgehammer999
5e796054ba Merge pull request #4261 from onto/master
SpeedPlotView: speedup
2016-04-12 17:42:32 -05:00
Vladimir Golovnev (Glassez)
1760beed17 Fix MainWindow coding style (Issue #2192) 2016-04-11 19:15:50 +03:00
Anton Lashkov
cdab0bb140 SpeedPlotView: code correction 2016-04-04 23:05:25 +04:00
Anton Lashkov
8a6866d409 SpeedPlotView: Simplify code using PointData struct 2016-04-04 23:05:25 +04:00
Anton Lashkov
b599a8e2fb SpeedPlotView: Use separate buffers for periods with reduce number of points. Fix coding style. 2016-04-04 23:05:25 +04:00
Anton Lashkov
baadf34134 SpeedPlotView: Save int's instead of double's 2016-04-04 23:05:25 +04:00
Anton Lashkov
dd9728334a SpeedPlotView: Replace QQueue by boost::circular_buffer, reduce number of points to draw, increase legend background size 2016-04-04 23:05:25 +04:00
sledgehammer999
2bb76bf781 Don't display warning when folder named stayed the same.
Copy some code from AddNewTorrent dialog and beautify a bit.
Closes #4970.
2016-03-18 01:09:05 +02:00
sledgehammer999
8c83fd5e24 Merge pull request #4916 from funkydude/master
Move some URLs overs to HTTPS
2016-03-14 12:15:46 -05:00
funkydude
268a5a95c8 Move some URLs overs to https 2016-03-14 17:01:51 +00:00
sledgehammer999
8c36f753f9 Merge pull request #4867 from evsh/peers-show-files
Show downloading files in peers list. Attempt #2
2016-03-13 19:14:48 -05:00
sledgehammer999
d39d40c064 Don't display Country option in PeerListWidget header menu when country resolution is disabled. 2016-03-14 01:17:59 +02:00
sledgehammer999
9a91ed501e Merge pull request #4767 from thalieht/toggle_peer_columns
Add toggle columns menu for peerlist. Closes #3301
2016-03-13 18:17:12 -05:00
thalieht
1fa6f3123b add toggle columns for peerlist 2016-03-06 23:59:36 +02:00
sledgehammer999
89b334d71c Merge pull request #4451 from netjunki/master
add a remaining column to the torrent content model
2016-03-05 10:42:14 -06:00
sledgehammer999
15ec515872 Merge pull request #4877 from evsh/cmake
add basic cmake support
2016-03-04 17:30:08 -06:00
Eugene Shalygin
7080d3da98 Fix typos in speed label text
Qt's tr() ate 'true' parameter, which was supposed to be for
friendlyUnit()
2016-03-01 23:49:33 +01:00
Eugene Shalygin
64daecb266 add basic cmake support 2016-02-29 12:53:43 +01:00
Eugene Shalygin
b24bdcb8d9 Revert "Temporarily revert PR #2885 (filename column in peers view)."
This reverts commit 69d52a06d7.
2016-02-27 20:51:39 +01:00
Ben Lau
cd9cae4121 add a remaining column to the torrent content model 2016-02-03 20:28:10 -08:00
thalieht
a17fc84fd0 Unlock first column in peerlist too
I just copy pasted from trackerlist (tested ofc). No idea if it can be
done differently.
2016-01-31 16:54:16 +02:00
sledgehammer999
69d52a06d7 Temporarily revert PR #2885 (filename column in peers view).
There's a bug that causes frequent crashes.
Issue #4597.
2016-01-21 00:26:03 +02:00
Eugene Shalygin
768b67d275 Add column with list of currently downloading files
Add a new column to peers list that shows list of files which are
downloaded right now from a peer. The column is empty if we do not
download anything from the given peer.
2015-12-20 01:45:35 +01:00
Eugene Shalygin
efed388402 Revert "Remove unused parameter."
This reverts commit 87347cf0e5.
2015-12-20 01:45:35 +01:00
sledgehammer999
ebe6d1b603 Fix resolution of peer host names. Closes #4307. 2015-12-09 17:52:34 +02:00
sledgehammer999
87347cf0e5 Remove unused parameter. 2015-12-07 23:59:23 +02:00
buinsky
00c765be1b Implement sync/torrent_peers request 2015-12-06 22:21:24 +03:00
buinsky
aea6c38b33 Follow project coding style. Issue #2192. 2015-12-06 22:07:47 +03:00
Vladimir Golovnev (Glassez)
9db93e5d8f Rename Core to Base (Closes #3733). 2015-12-06 14:27:00 +03:00
sledgehammer999
17ac4b90be Use simpler DEFINE for detecting Qt5 so moc will work too. 2015-12-05 22:20:49 +02:00
sledgehammer999
f4ef0633c9 Merge pull request #4170 from vlakoff/filtering-v3
Support wildcards for filtering torrent list and torrent content
2015-11-29 18:13:58 -06:00
sledgehammer999
91c3de4620 Merge pull request #4145 from Chocobo1/misc_fix
Misc fixes
2015-11-29 18:13:39 -06:00
sledgehammer999
797861a9c0 Merge pull request #4059 from Chocobo1/prop_cleanup
Properties widget cleanup
2015-11-29 18:13:05 -06:00
vlakoff
692cac1dc5 Support wildcards for filtering torrent list and torrent content 2015-11-26 19:02:43 +01:00
Vladimir Golovnev (Glassez)
67e90d8d2a Make setSequentialDownload/setFirstLastPiecePriority independent. 2015-11-26 15:08:01 +03:00
Chocobo1
067a8bf108 Fix -1 is displayed instead of C_INFINITY symbol 2015-11-20 12:05:06 +08:00
sledgehammer999
22d9427e20 Fix reordering of first column with Qt5. Closes #2835. 2015-11-18 18:14:24 +02:00
Chocobo1
a74bac20c4 Fix Speed graph legend is illegible on dark background. Closes #4134. 2015-11-18 14:41:29 +08:00
Chocobo1
a6d2f5186f Avoid falling through the switch case 2015-11-09 16:10:04 +08:00
Chocobo1
af90eadf71 Cleanup "Content" page layout
Limit lineEdit maximum size
2015-11-07 15:51:29 +08:00
Chocobo1
7005af3047 Cleanup "Peers" page layout
Cleanup "HTTP Sources" page layout
Cleanup "Speed" page layout
2015-11-05 20:06:38 +08:00
Chocobo1
ff67d29573 Cleanup "Trackers" page layout 2015-11-05 18:37:29 +08:00
Vladimir Golovnev (Glassez)
501ab07024 Fix TorrentHandle path methods. Closes #3847. 2015-11-01 17:09:09 +03:00
Vladimir Golovnev (Glassez)
f7150edd44 Fix DownloadedPiecesBar::bitfieldToFloatVector(). 2015-10-29 14:49:01 +03:00
Vladimir Golovnev (Glassez)
be78188691 Fix PieceAvailabilityBar::intToFloatVector(). Closes #3937. 2015-10-29 14:46:43 +03:00
sledgehammer999
c75725e2d8 Fix printing of avg download speed in General button. Closes #4013. 2015-10-28 01:47:01 +02:00
sledgehammer999
787b824d90 Merge pull request #3323 from Chocobo1/prop_bar
Availability bar, progress bar, button group improvements
2015-10-24 06:45:12 -05:00
Chocobo1
7e6dfa759c Replace horizontal line with border 2015-10-22 17:34:22 +08:00
Chocobo1
c6a6f85a5e Use theme color for background in PropertiesWidget 2015-10-22 17:34:22 +08:00
Chocobo1
421b45c553 Add tooltips/legend for availability bar & progress bar 2015-10-22 17:34:22 +08:00
sledgehammer999
d60f2fc7df Fix another potential crash when memory allocation failed.
See commit e95fce3084.
Related issues #3877 and #2673.
2015-10-17 18:21:33 +03:00
Chocobo1
f530bb7537 Fix availability label & progress label clipped on high DPI displays, closes #3237. 2015-10-12 15:34:22 +08:00
Chocobo1
b5adbaef78 Fix availability bar & progress bar height being too small on high DPI displays 2015-10-12 15:12:42 +08:00
Chocobo1
8605c4d4d3 Follow project coding style. Issue #2192. 2015-10-02 04:17:27 +08:00
Chocobo1
e95fce3084 Fix potential crash when memory allocation failed. Closes #3877. 2015-10-02 04:08:24 +08:00
sledgehammer999
581d544f61 Fix typos. Make ìTP untranslatable. Use American variation of words. Closes #3654. 2015-09-04 23:14:02 +03:00
Gabriele
5cc5552d9b Use infinity symbol rather than -1 for nb_connections 2015-09-02 23:34:17 +02:00
Gabriele
42c74f9553 Avoid concatenation when dealing with translatable strings
Concatenation could be problematic with RTL languages.
2015-09-02 23:34:17 +02:00
Gabriele
420fa82e8d Put some string placeholders between quotes 2015-09-02 23:26:19 +02:00
sledgehammer999
f81ffdb78e Merge pull request #3644 from Chocobo1/graph_btn
Change "Select Graphs" from QToolButton to QComboBox
2015-08-30 08:59:00 -05:00
Chocobo1
2997c0fd1e Change "Select Graphs" from QToolButton to QComboBox 2015-08-30 21:38:05 +08:00
sledgehammer999
a0da4a844c Merge pull request #3625 from Chocobo1/native_path
Use native path separators
2015-08-30 07:07:58 -05:00
Gabriele
e728710430 Select the file of single file torrents when opening destination folder
Also, add the support for Nautilus (Gnome 3), Caja and Nemo.
2015-08-29 16:09:22 +02:00
Anton Lashkov
0d74131edd SpeedPlotView: fix render graphs with zero speed 2015-08-29 11:24:51 +04:00
Chocobo1
cf3a87ed55 Use native path separators, fixup of 030dd9e, 3baec1c. 2015-08-29 14:17:21 +08:00
sledgehammer999
a56c21551d Merge pull request #3458 from Chocobo1/path_fix
Use `rootPath()` in save path field
2015-07-29 23:24:51 +03:00
sledgehammer999
6985b553af Merge pull request #3494 from glassez/drop_libtorrent_0
Drop libtorrent 0.16.x support.
2015-07-29 22:15:45 +03:00
sledgehammer999
4f2d74f793 Merge pull request #3374 from ngosang/webui_info
[Web UI] Add information in General tab
2015-07-28 03:03:45 +03:00
ngosang
69812bbf18 Converts the string "Seeded for" to lowercase 2015-07-26 14:33:11 +02:00
Vladimir Golovnev (Glassez)
e72cc4eaf9 Drop libtorrent 0.16.x support. 2015-07-25 19:00:18 +03:00
Vladimir Golovnev (Glassez)
84922dcdcf Fix need restart to enable/disable peer countries resolution. 2015-07-22 08:07:13 +03:00
Vladimir Golovnev (Glassez)
79976fbfce Implement new GeoIPManager class. 2015-07-22 08:06:51 +03:00
Vladimir Golovnev (Glassez)
c702a7e426 Improve DownloadManager.
Now we can use downloaded data directly without saving to file.
We also can disable redirection to Magnet URI handling (useful for
non-torrent files downloading).
2015-07-21 09:50:39 +03:00
sledgehammer999
eb73e7c1d4 Merge pull request #3150 from ngosang/add_peer_dialog
Add multiple peers in Peers addition dialog. Closes #1563, #2245, #3133, #1419, #3287, #1419
2015-07-19 18:33:10 +03:00
ngosang
63ed69789b Allow to copy all peers with a keyboard shortcut 2015-07-19 13:04:30 +02:00
sledgehammer999
983c19eb29 Merge pull request #2676 from pmzqla/copytrackers
Allow to copy all the trackers with a keyboard shortcut
2015-07-19 14:04:28 +03:00
ngosang
cef3c9a34d Add multiple peers in Peers addition dialog. Closes #1563, #2245, #3133, #1419, #3287, #1419 2015-07-19 13:04:00 +02:00
Chocobo1
030dd9eed8 Use rootPath() in save path field 2015-07-19 18:17:28 +08:00
sledgehammer999
0b20794672 Fixup speedwidget code. 2015-07-18 19:31:51 +03:00
Anton Lashkov
7b736b6ae3 Add speedwidget based on QGraphicsView 2015-07-18 00:54:36 +04:00
Chocobo1
8873900df3 Also reannounce to DHT when "Force reannounce to all trackers" is selected 2015-07-15 07:05:04 +08:00
Chocobo1
4d6bde9731 Remove announce to DHT after editing tracker list 2015-07-15 07:05:04 +08:00
Chocobo1
fb1772f019 Rewrite TrackerList::reannounceSelected(), now it can force reannounce DHT 2015-07-15 07:05:04 +08:00
Gabriele
f21fbff1a8 Use enums instead of values when dealing with file priorities
Manually backported commit 10880e10f1 from v3_2_x branch.
2015-06-29 02:00:50 +03:00
sledgehammer999
2db4a661ee Merge pull request #3251 from Chocobo1/unicode_fix
Fix MSVC2013 complains on Unicode characters
2015-06-28 16:12:47 +03:00
Chocobo1
e739e81205 Fix compilation on MSVC2013 by moving unicode strings to
"unicodestrings.h". Closes #3059.
2015-06-28 19:18:57 +08:00
sledgehammer999
14013c80c0 Merge pull request #3270 from Chocobo1/info_box
Reorder layout in information box
2015-06-28 13:45:25 +03:00
Chocobo1
776d91f663 Add connectionsLimit() back 2015-06-28 18:15:17 +08:00
Chocobo1
b318f54fdf Force set "plain text" format to reduce attack vector. 2015-06-22 22:10:33 +08:00
Chocobo1
661ddd75b6 Allow wordWrap for "Save Path" & "Comment" 2015-06-22 13:32:32 +08:00
Vladimir Golovnev (Glassez)
64c8f61bb1 Improve TorrentModel class. 2015-06-21 16:28:21 +03:00
Chocobo1
50b3a24371 Change Comment field from QTextBrowser to QLabel 2015-06-21 13:52:11 +08:00
Chocobo1
4d5512dcca Reorder layout in information box 2015-06-21 13:20:19 +08:00
Chocobo1
6bc42cfd1a Add functionality to new data fields, cleanups 2015-06-20 20:42:44 +08:00
Chocobo1
cdec6c9027 Add new data fields, capitialize labels, cleanups 2015-06-17 23:20:34 +08:00
dartraiden
8ac83cfd42 Fixed typos, spelling correction 2015-06-14 10:55:46 +03:00
ngosang
e01a61d816 changes in typography 2015-06-13 20:04:20 +02:00
sledgehammer999
3aa0a845cd Merge pull request #2892 from glassez/bittorrent
Core classes redesign (Issue #2433).
2015-06-11 23:54:05 +03:00
Vladimir Golovnev (Glassez)
7d73bddfd2 Split some "header only" sources. 2015-06-10 10:58:20 +03:00
Vladimir Golovnev (Glassez)
191cdc2849 Move utilities to core/utils folder.
Also move the names to Utils namespace.
2015-06-09 21:30:56 +03:00
Vladimir Golovnev (Glassez)
d16d1fdb3a Redesign main core classes. 2015-06-09 21:30:42 +03:00
Vladimir Golovnev (Glassez)
d32bb52390 Don't add core to INCLUDEPATH. 2015-06-03 22:11:43 +03:00
Vladimir Golovnev (Glassez)
4b5e7e6168 Move network related code to core/net. 2015-06-03 22:11:41 +03:00
Gabriele
41fa59f164 Allow to Open files from the properties pane by pressing "Enter"
Allow to open only one file at a time and ignore keypresses when
multiple items are selected.
2015-04-16 18:50:11 +02:00
sledgehammer999
96d7bfb4ad Update the UI when trackers or Url seeds are added either via the WebUI or via merging duplicate torrents. 2015-03-28 16:53:36 +02:00
sledgehammer999
f0d5ce4b98 Implement tracker list in the side panel. Closes #170. 2015-03-28 16:53:19 +02:00
Gabriele
48c1bd58dd Allow to copy all the trackers with a keyboard shortcut
If multiple trackers are selected, Ctrl+C will copy only one of them
while the context menu will copy all of them. Fix this inconsistency.

Closes #2675.
2015-03-08 12:50:22 +01:00
ngosang
0e89ec3737 Small change in progress bar percentage 2015-02-09 17:32:00 +01:00
Vladimir Golovnev (Glassez)
ff9a281b72 Change project directory structure.
Change project directory structure according to application structure.
Change 'nox' configuration option to something more meaningful 'nogui'.
Rename 'Icons' folder to 'icons' (similar to other folders).
Partially add 'nowebui' option support.
Remove QConf project file.
2015-02-05 19:10:26 +03:00