Commit graph

5180 commits

Author SHA1 Message Date
buinsky
0f56440dec Fix alternative speed limits toggle behavior 2015-02-10 14:09:15 +03:00
buinsky
135599acc4 Center vertically text in progress bar 2015-02-10 14:09:12 +03:00
buinsky
18b036545c Fix 'Resume all' & 'Pause all' actions 2015-02-10 14:09:10 +03:00
buinsky
1d5e52fc55 Fix friendlyDuration function 2015-02-10 14:09:07 +03:00
buinsky
ba86d16e78 Use compact style of JSON data 2015-02-10 14:09:05 +03:00
buinsky
bed0784a2d Follow project coding style. Issue #2192. 2015-02-10 14:09:02 +03:00
buinsky
d17f21af45 Queueing flag relocation in sync/maindata response 2015-02-10 14:09:00 +03:00
sledgehammer999
7bea5abb8d Merge pull request #2525 from ngosang/remove_empty_labels
Change "remove empty labels" to "remove unused labels".
2015-02-10 08:56:40 +02:00
sledgehammer999
503cca5a7e Merge pull request #2501 from ngosang/sort_state
Changes sort order of the status column
2015-02-10 08:55:17 +02:00
ngosang
d046b7a532 Change "remove empty labels" to "remove unused labels". 2015-02-10 01:46:27 +01:00
sledgehammer999
99cc29c18e Merge pull request #2504 from ngosang/remove_empty_labels
New feature: Remove empty labels
2015-02-10 02:18:28 +02:00
ngosang
ea111c664f New feature: Remove empty labels 2015-02-10 01:12:16 +01:00
DoumanAsh
503626bde8 [searchengine] Fix piratebay. Closes #2270 2015-02-09 21:13:57 +03:00
ngosang
57ab7fcf64 Changes sort order of the status column 2015-02-09 18:13:51 +01:00
sledgehammer999
b7898cccd0 Merge pull request #2508 from ngosang/mininova_search
Fix: error in mininova search engine
2015-02-09 19:09:54 +02:00
sledgehammer999
f84a22f403 Merge pull request #2506 from ngosang/white_bar
Removes white bar in the labels list. Closes #1151.
2015-02-09 19:09:16 +02:00
sledgehammer999
8bd0470fbb Merge pull request #2523 from ngosang/percent
Small change in progress bar percentage
2015-02-09 19:02:58 +02:00
ngosang
2da3ad3234 Removes white bar in the labels list. Closes #1151. 2015-02-09 17:38:54 +01:00
ngosang
0e89ec3737 Small change in progress bar percentage 2015-02-09 17:32:00 +01:00
ADTC
d0c523ed00 Changed "caption" to "name" in code for consistency
To maintain consistency with the actual English menu item, the variable
names and method name have been changed to reflect the menu item text.

Per comments in PR qbittorrent#2493

Signed-off-by: ADTC <send2adtc@gmail.com>
2015-02-09 11:19:33 +08:00
ngosang
5d3f68e422 Add icon to "Copy name" option and change item ordering
The Copy icon is added to the menu item. This is in tandem with other
uses of the same icon, such as "Copy" (in log), "Copy selected" (in peer
list), "Copy tracker url", etc.

Also changed the ordering to have the new option appear before the
existing "Copy magnet link" icon.

This is as per comments in PR qbittorrent#2493

Signed-off-by: ADTC <send2adtc@gmail.com>
2015-02-09 11:19:31 +08:00
Chris Hirst
91aad83cad Add "Copy name" option in right-click menu of torrent list
Implementation of feature request #2452
https://github.com/qbittorrent/qBittorrent/issues/2452

Adds a new option in the right-click menu of the torrent list to copy
the name(s) of selected torrent(s) to the clipboard. This is similar to
the existing option to copy the magnet links to the clipboard.

This patch was originally authored by Chris Hirst (ciaobaby). I changed
the item name from "Copy caption" to "Copy name" (the torrent list
column header says "Name"), and I added the missing line in the header
file.

Note: Translations are not updated for the English menu item "Copy
name".

Signed-off-by: ADTC <send2adtc@gmail.com>
2015-02-09 11:19:29 +08:00
ngosang
1bd9b6ae1a Fix: error in mininova search engine 2015-02-09 01:46:00 +01:00
Gabriele
8890d244e2 WebUI: Update browser title even with no transfer going on 2015-02-08 23:10:41 +01:00
Gabriele
09c8d17c94 WebUI: Fix negative offsets when requesting torrent list
If the offset is negative, it must be added to the current list size.
2015-02-08 23:09:45 +01:00
Gabriele
2a351ea9a4 WebUI: Fix checkboxes of the watched folder list in the preferences
The 'checked' attribute does not require any value, so for unckecked
checkboxes nothing should be added.

Fix f16b7614a1.
2015-02-08 23:07:07 +01:00
Gabriele
8fa3a714c2 Use system format to display dates in logs 2015-02-08 23:05:47 +01:00
ngosang
85610b3b7d Fix Create Torrent dialog 2015-02-08 22:45:27 +01:00
Vladimir Golovnev (Glassez)
898d454b78 Follow project coding style (Issue #2192). 2015-02-08 20:38:04 +03:00
Vladimir Golovnev (Glassez)
2707f5205f Fix prefjson::setPreferences() doesn't actually save. 2015-02-08 19:44:56 +03:00
Vladimir Golovnev (Glassez)
8e1698d563 Implement Preferences::changed() signal. 2015-02-08 19:37:04 +03:00
Vladimir Golovnev (Glassez)
458b216b74 MainWindow cleanups.
All MainWindow child widgets use constructors with 'parent' parameter
that allows parent widget to delete them at its destruction.
Some other MainWindow cleanup code replaced to destructor.
Application manages MainWindow instance and remove it when aboutToQuit()
signal emitted.
2015-02-08 19:36:52 +03:00
Vladimir Golovnev (Glassez)
0c50a8b98b Put all application logic into Application class.
Application process message and split it into params list itself (this
prevents code duplication).
Application store params unless other components ready to process them.
Application incapsulate all QMacApplication and SessionApplication logic
(this is too small to have separate classes).
2015-02-08 19:33:18 +03:00
Vladimir Golovnev (Glassez)
8b95bb233d Fix main(). 2015-02-08 19:28:03 +03:00
Vladimir Golovnev (Glassez)
2dd473eb28 Use unmodified QtSingleApplication on Windows.
Get running application instance PID without QtSingleApplication
modification.
2015-02-08 19:27:45 +03:00
Vladimir Golovnev (Glassez)
e52a8fb0b0 Fix misc::getUserIDString() on Windows.
Return current user name now (and not constant "0").
Also use Unicode version of GetUserName().
2015-02-05 19:10:46 +03: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
sledgehammer999
e4c7f52bb3 Merge pull request #2463 from Noctem/QFont
Include QFont headers for OS X
2015-02-02 23:34:15 +02:00
David Christenson
2b480f60f9 Include QFont headers for OS X
Fix compilation on OS X >10.8 by including headers for QFont.
2015-02-01 17:06:59 -07:00
sledgehammer999
d0b476a4be Merge pull request #2464 from Noctem/stdlib-flags
Fix OS X compilation and packaging
2015-02-02 00:21:02 +02:00
David Christenson
bdb722893f Fix C++11 compliance
Fix compiler error when compiling with -std=c++11
 "invalid suffix on literal; C++11 requires a space between literal and
 identifier [-Wreserved-user-defined-literal]"
2015-02-01 13:32:00 -07:00
sledgehammer999
6209d8838a Show info hash in the torrent details in 'Add New Torrent' dialog.
Initial work by chrishirst.
Closes #2385.
2015-02-01 18:29:00 +02:00
sledgehammer999
cb9a5c5018 Merge pull request #2480 from ngosang/copy_peers
Copy selected peers (IP:Port)
2015-02-01 15:51:52 +02:00
ngosang
17eb2dd3cc Copy selected peers (IP:Port) 2015-02-01 12:04:24 +01:00
sledgehammer999
2b24fe09c5 Save the new save path first in the history. Closes #2382. 2015-02-01 01:38:24 +02:00
sledgehammer999
38455af791 Follow project coding style. Issue #2192. 2015-02-01 01:27:51 +02:00
sledgehammer999
b465b3c68a Improve usability of 'Add new torrent' dialog. Implements issue #225. 2015-02-01 01:18:49 +02:00
sledgehammer999
d66273b10a Show error status when a torrent is missing files. 2015-01-31 20:06:50 +02:00
sledgehammer999
45b2432513 Don't touch torrents whose files are missing (like when their drive isn't plugged in).
Closes #342 #2308 2469.
2015-01-31 20:06:49 +02:00
David Christenson
1506999968
Fix OS X packaging
Remove erroneous Prefix entry from the Mac qt.conf, change translation
install location.
2015-01-29 15:57:08 -07:00
sledgehammer999
95c75bb8c8 Merge pull request #2374 from pmzqla/slider-bandwidth
Allow bandwidth values up to 65535 KiB/s
2015-01-28 00:49:16 +02:00
sledgehammer999
eeee24a0b3 Make 'TorrentPersistentData' similar to 'Preferences' class. 2015-01-27 17:34:21 +02:00
sledgehammer999
70985480d6 Follow project coding style. Issue #2192. 2015-01-27 17:34:20 +02:00
sledgehammer999
dcf5d4d0ee Merge branch 'optimize-persistent-data' of git://github.com/sorokin/qBittorrent
Conflicts:
	src/qtlibtorrent/qbtsession.cpp
2015-01-27 15:21:26 +02:00
Ivan Sorokin
e3349092ad Refactor TorrentPersistentData
Conflicts:
	src/mainwindow.cpp
	src/mainwindow.h
	src/qtlibtorrent/qbtsession.cpp
	src/qtlibtorrent/qtorrenthandle.cpp
	src/transferlistwidget.cpp
	src/webui/btjson.cpp
2015-01-25 02:58:54 +03:00
Ivan Sorokin
70a114eb13 Speedup persistent data
Conflicts:
	src/mainwindow.cpp
	src/mainwindow.h
2015-01-25 02:58:54 +03:00
sledgehammer999
061e71337b Initialize logger at the beginning of program to avoid threading issues. 2015-01-23 19:05:19 +02:00
sledgehammer999
087417c8a6 Change the code to use the Logger class instead. 2015-01-23 19:05:18 +02:00
sledgehammer999
a7527aa9a7 Remove unused signal from LogListWidget. 2015-01-23 19:05:17 +02:00
sledgehammer999
8966bcacea Follow project coding style. Issue #2192. 2015-01-23 19:05:16 +02:00
sledgehammer999
91fc9e69ee Make the GUI log listen to the logger class. 2015-01-23 19:05:15 +02:00
sledgehammer999
1504bbfe43 Logger base class. 2015-01-23 19:05:14 +02:00
sledgehammer999
39c9bb0800 Merge pull request #2445 from buinsky/WebUI3
Web API: rename 'json' scope to 'query'
2015-01-23 16:41:42 +02:00
sledgehammer999
e67c4390ed Merge pull request #2429 from pmzqla/watched-folders
WebUI: Fix watched folders on Gecko
2015-01-23 01:28:35 +02:00
buinsky
b30ec46048 Web API: rename 'json' scope to 'query' 2015-01-23 01:37:12 +03:00
sledgehammer999
f2c6981711 Merge pull request #2389 from buinsky/WebUI3
Web API: Implement sync/maindata request
2015-01-23 00:36:12 +02:00
buinsky
574c57ee18 Use sync/maindata request in WebUI 2015-01-23 01:13:42 +03:00
buinsky
383c0e1418 Implement sync/maindata request 2015-01-23 01:13:38 +03:00
buinsky
0d43ee7076 Follow project coding style. Issue #2192. 2015-01-18 16:27:17 +03:00
buinsky
bf0f9dd275 Implement functions for generating partial responses of requests. 2015-01-18 16:27:05 +03:00
Gabriele
f16b7614a1 WebUI: Fix watched folders on Gecko
Passing objects to push() seems to be broken on Firefox, making the
preferences impossibile to use when there are watched folders.
Fix this by passing strings instead of elements.
2015-01-17 14:06:53 +01:00
Gabriele
c5db1157f1 Allow bandwidth values up to 65535 KiB/s
The slider has a max value, but it's changed whenever a value greater
than it is specified.

Note: 65535 is the maximum value allowed by libtorrent.

Closes #2373.
2015-01-17 14:00:29 +01:00
Gabriele
737f6c5b4e Split speedlimitdlg.h into speedlimitdlg.cpp and speedlimitdlg.h 2015-01-11 01:22:28 +01:00
sledgehammer999
74fcee2d7d Merge pull request #2332 from buinsky/WebUI2
WebUI: Change torrent model
2015-01-10 16:37:26 +02:00
sledgehammer999
aca42b8ccc Merge pull request #2378 from glassez/python_reg
Improve Windows Registry searching for Python.
2015-01-10 15:23:12 +02:00
Vladimir Golovnev (Glassez)
b45eb28099 Fix heap corruption. Closes #2342.
Fix heap corruption during Registry access.
2015-01-10 14:48:42 +03:00
Vladimir Golovnev (Glassez)
f851875ad1 Improve Windows Registry searching for Python.
Simplify logic of related functions.
Make sure that all open handles are closed.
Explicitly use Unicode versions of Windows API functions.
Prevent max subkey length overwrite.
Use Windows API style of variable names.
2015-01-10 13:17:21 +03:00
Gabriele
d7161dcab1 Fix few spelling mistakes
s/Pieces size/Piece size/
s/uknown/unknown/

Closes #2367.
2015-01-08 18:42:58 +01:00
buinsky
04f1c0c238 WebUI: Change torrent model
Improvements:
- added functions, which may be used to reorder and hiding columns in torrents table
- new columns can be easily added to torrents table
2015-01-06 22:49:02 +03:00
sledgehammer999
68c06c7485 Rename the 'Unpaused' filter to 'Resumed'. 2015-01-04 01:32:31 +02:00
sledgehammer999
93f557b747 Coalesce changes in the Preferences class in a much shorter timeframe. 2015-01-04 01:20:37 +02:00
sledgehammer999
ca2dc325f5 Detect uknown command line parameters. 2014-12-28 12:31:37 +02:00
sledgehammer999
8bfd333c60 Touch up previous commit. 2014-12-28 12:31:36 +02:00
Vladimir Golovnev (Glassez)
afdc1ee93e HOTFIX: Correct command line parameters defaults. 2014-12-28 12:31:35 +02:00
sledgehammer999
96585ca73e Merge pull request #2322 from john-peterson/save4
fixing save state on change
2014-12-26 20:32:29 +02:00
John Sebastian Peterson
6de317ee13 Fix Properties widget state saving
readSettings changed CurrentTab and Visible by calling saveSettings

some slot connections were wrong
2014-12-26 19:28:50 +01:00
sledgehammer999
f21b0b4f6d Merge pull request #2321 from john-peterson/filter
adding inverse for paused filter
2014-12-26 20:11:15 +02:00
John Sebastian Peterson
89f34b4ae7 Add 'unpaused' torrent filter
the inverse of paused because complete and active have an inverse
2014-12-26 19:04:36 +01:00
sledgehammer999
5f8a49313e Merge pull request #2320 from pmzqla/webui-pausederror
WebUI: Add torrents paused because of errors in Paused and Download list
2014-12-26 19:38:49 +02:00
sledgehammer999
e8cb840836 Fix sorting by port column in peers view. 2014-12-26 17:30:09 +02:00
Gabriele
71bef1852d WebUI: Add torrents paused because of errors in Paused and Download list
Torrents paused because of errors are considered as torrents paused and in
download in the regular UI. Do the same in the WebUI for consistency.

Closes #2319.
2014-12-21 20:44:35 +01:00
sledgehammer999
91ec84b317 Merge pull request #2301 from pmzqla/checkuri-fix
WebUI: Specify URI size
2014-12-21 16:05:07 +02:00
sledgehammer999
db45d81f4c Merge pull request #2313 from glassez/cmdline
Improve command line parsing.
2014-12-21 15:57:22 +02:00
Vladimir Golovnev (Glassez)
5200999007 Improve command line parsing. 2014-12-21 16:29:01 +03:00
sledgehammer999
d888d4e897 Merge pull request #2046 from pmzqla/toolbar-menu
Allow minor toolbar customizations
2014-12-21 14:37:29 +02:00
Gabriele
0ebfea6c68 Add a context menu to the toolbar to change the position of the text
Closes #1145.
2014-12-21 13:27:45 +01:00
Vladimir Golovnev (Glassez)
1f110e9fb1 Fix qbittorrent-nox daemon. 2014-12-21 14:26:12 +03:00
Gabriele
442f45d42a Add texts to the icons on the toolbar
The toolbar follows the system style to display texts associated to
icons. Since no specific text is provided, the text used for the action
associated to the button will be used. This could make some of the
buttons rather big.

Add short texts to the icons so that each button uses a reasonable
amount of space.
2014-12-21 11:47:25 +01:00
sledgehammer999
6d6e3042c2 Merge pull request #2302 from buinsky/WebUI2
Accept multiple files at once. Closes #2253
2014-12-21 01:09:07 +02:00
buinsky
cb5b0f891c Accept multiple files at once. Closes #2253 2014-12-21 01:39:53 +03:00