Eugene Shalygin
a8d95dd8bd
Save relative paths in fastresume files
...
Conditionally change absolute paths to relative in the fastresume data files.
The condition is specified by user via a command line parameter and
paths are relative to the profile dir.
On Windows the convertion to relative path is performed if the path and
the profile are on the same drive only.
8 years ago
Eugene Shalygin
0bf7fa15c1
Replace wrappers in base/utils/fs.h with Profile::SpecialFolders::location()
8 years ago
Eugene Shalygin
0f746ffd5a
Add support for different configurations. Partially closes #465
...
It may be useful to have different configurations either for portable
versions or for debugging purposes. To implement this we add two
options, avaliable via command line switches
1. An option to change configuration name ("--configuration"). The name
supplied via this option is appended to
QCoreApplication::applicationName() to form "qBittorrent_<conf_name>"
name for the configuration files.
2. An option to provide a path do directory where all the settings are
stored (kind of profile directory). There is a shortcut "--portable"
which means "use directory 'profile' near the executable location".
In order to implement that we have to perform initialisation of the
profile directories before the SettingStorage and Preferences singletones
are initialised. Thus, options parsing shall be performed without defaults
read from preferences.
8 years ago
sledgehammer999
b69b6d1f55
Revert "Set default locale". Closes #6436 and #6459 .
...
This reverts commit 75ef6356d3
.
8 years ago
Chocobo1
cb1646be32
Prepend QBT_ for preprocessor variables
8 years ago
Eugene Shalygin
e64bb1de8c
Drop Qt 4 support
8 years ago
Chocobo1
75ef6356d3
Set default locale
8 years ago
Chocobo1
e37a696e7d
Refactor
...
Move default value to preference class
Rename variable
Reorder headers
Remove extra parentheses
8 years ago
Chocobo1
cffa729ac5
Put temp files in .qBittorrent directory. Closes #4462 .
8 years ago
sledgehammer999
146d4e049a
Some more compiler warnings fixed.
8 years ago
Chocobo1
f448587271
Add function `windowsSystemPath()`
8 years ago
Chocobo1
1e1471c7c6
Workaround space issues in file path
...
References:
https://github.com/qbittorrent/qBittorrent/issues/5439#issuecomment-228616817
https://github.com/qbittorrent/qBittorrent/issues/5439#issuecomment-232214712
8 years ago
Chocobo1
3846a5b875
Invoke system's cmd.exe directly.
8 years ago
Chocobo1
705d7730dc
Fix upper-bound limit of command line for "Run External Program" in Windows. Closes #5399 .
8 years ago
Vladimir Golovnev (Glassez)
b2cb473b63
Don't use Preferences in BitTorrent::Session
9 years ago
Chocobo1
df95efe33e
Improve usability of "Run External Program"
...
Users can write (platform dependent) shell scripts now.
9 years ago
Chocobo1
def27bce4d
Add log messages
9 years ago
sledgehammer999
ef6e848756
Display notifications when a torrent is added. Closes #334 and #915 .
9 years ago
Chocobo1
34db2f5dd9
Fix qBittorrent doesn't exit immediately when "all donwloads are done -> exit" option enabled.
...
This fix is provided by glassez.
9 years ago
Chocobo1
fbc002f212
Enable access to shutdown functions when configured with `--disable-gui` option
9 years ago
Chocobo1
a1e0fa5509
Fix Coverity Scan 143909.
...
Also, the setting "Confirmation on auto-exit when downloads finish" wasn't working before.
9 years ago
Chocobo1
e2a090f03f
Use QAtomicInt to guarantee cleanup() is only executed once
9 years ago
Chocobo1
f12e21560a
Rename files:
...
confirmshutdowndlg.ui => shutdownconfirmdlg.ui
shutdownconfirm.cpp => shutdownconfirmdlg.cpp
9 years ago
Chocobo1
6a11056b60
Rename enum
...
Change identifier from ShutdownAction to ShutdownDialogAction
Change enum value from None to Exit
9 years ago
sledgehammer999
18ee87f586
Fix previous commit.
9 years ago
sledgehammer999
d721939d5f
Use SettingsStorage instead.
9 years ago
sledgehammer999
1058572c8a
Implement file logger.
9 years ago
Vladimir Golovnev (Glassez)
dd34663224
Implement Advanced Saving Management subsystem
...
Closes #4696
9 years ago
Vladimir Golovnev (Glassez)
d05d5a85a5
Move Preferences backend code into SettingsStorage class
...
Closes #4764
9 years ago
Chocobo1
aa246f0ca8
Let OS handle DPI scaling for now. Should let Qt do the work when it's more mature.
...
Opt-in to the high DPI pixmap support
Closes #2963 .
9 years ago
Chocobo1
e35a7ef9d3
Move statusbar styelsheet to where it belongs
9 years ago
Boris Nagaev
4706733846
convert includes like <Windows.h> to lowercase
...
There is header file windows.h, not Windows.h.
MinGW on Linux build machine is filename case-sensitive.
9 years ago
Vladimir Golovnev (qlassez)
0bffa066db
Make DownloadManager to save/load cookies
9 years ago
d3fault
07599b5923
Add 'never show again' checkbox/pref to auto-exit confirm dialog
9 years ago
Vladimir Golovnev (Glassez)
9db93e5d8f
Rename Core to Base ( Closes #3733 ).
9 years ago
sledgehammer999
17ac4b90be
Use simpler DEFINE for detecting Qt5 so moc will work too.
9 years ago
Vladimir Golovnev (Glassez)
c38987fc03
Provide torrent paths to external program.
9 years ago
Vladimir Golovnev (Glassez)
501ab07024
Fix TorrentHandle path methods. Closes #3847 .
9 years ago
Gabriele
420fa82e8d
Put some string placeholders between quotes
9 years ago
Chocobo1
cf3a87ed55
Use native path separators, fixup of 030dd9e
, 3baec1c
.
9 years ago
ngosang
fbb47ce08f
Fix 3 compiler warnings
9 years ago
Chocobo1
3baec1c327
Add more "Run External Program" parameters, closes #3053 , #238 , #1291 , #1522 .
9 years ago
Vladimir Golovnev (Glassez)
79976fbfce
Implement new GeoIPManager class.
9 years ago
Chocobo1
ff8f37b262
Save trimmed string in preference
9 years ago
sledgehammer999
61705fdd42
Partially revert fb7ba92f6
and split the Chinese locales into 3.
...
Chinese Simplified, Chinese Traditional(Taiwan), Chinese Traditional(Hong Kong).
Closes #3262 .
10 years ago
sledgehammer999
fb7ba92f69
Rename Chinese translation files. Closes #2936 .
10 years ago
Vladimir Golovnev (Glassez)
191cdc2849
Move utilities to core/utils folder.
...
Also move the names to Utils namespace.
10 years ago
Vladimir Golovnev (Glassez)
d16d1fdb3a
Redesign main core classes.
10 years ago
Vladimir Golovnev (Glassez)
d32bb52390
Don't add core to INCLUDEPATH.
10 years ago
sledgehammer999
6644fe0714
Tell Windows to wait during shutdown by creating a ShutdownBlockReason.
...
Huge thanks to paolo-sz for bringing this to my attention, for the various patches he tried to submit and for testing.
See issue #1984 for complete history.
Closes #1535 .
10 years ago