Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: pyLoad GUI #2661

Open
wants to merge 302 commits into
base: stable
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
302 commits
Select commit Hold shift + click to select a range
542f4a3
Fixed more cases of ssl detection
snilt Mar 25, 2017
a89db6a
Changed message box text
snilt Mar 26, 2017
682a916
Added an extra logon timeout
snilt Mar 28, 2017
4761745
Updated german language translation
snilt Mar 28, 2017
a22bfee
Internal version bump
snilt Mar 28, 2017
cd21e85
Fixed an issue which appeared on openSUSE
snilt Apr 3, 2017
63470d8
Fixed tray icon text translation when using internal server
snilt Apr 4, 2017
d62106c
Fixed unminimize when option dialog is active on Gnome 3
snilt Apr 5, 2017
91a81e2
Added WhatsThis menu entry and button
snilt Apr 5, 2017
67ca7a1
Revert "Added an option to show the help button in the main window ti…
snilt Apr 6, 2017
bcb713a
Fixed extra logon timeout
snilt Apr 6, 2017
a3a6cf1
Fixed dialogbox buttons
snilt Apr 6, 2017
45abac3
Fixed restoring of mainWindow position under some window manager
snilt Apr 6, 2017
42a2c8f
Also unminimize floating docks when option dialog is active
snilt Apr 6, 2017
93def11
Fixed tray icon show/hide menu entry text when minimized to the taskbar
snilt Apr 6, 2017
70aa8a3
Added an option to customize WhatsThis colors
snilt Apr 7, 2017
dec0a6f
Removed a variable
snilt Apr 7, 2017
786f77f
Made a label bold
snilt Apr 7, 2017
0ccbb33
Do not setup the server settings tab on application start/restart, se…
snilt Apr 8, 2017
3b3dd9e
Fixed occluded docking windows when selected from tray icon on Gnome DE
snilt Apr 9, 2017
31233fc
Fixed a typo
snilt Apr 9, 2017
32d897a
Updated german language translation
snilt Apr 9, 2017
f73167c
Disabled 'Connection Manager' menu entry when using the internal server
snilt Apr 9, 2017
ff94f46
Internal version bump
snilt Apr 9, 2017
dc2c155
Load only the last couple of lines from the logfiles to speed up appl…
snilt Apr 11, 2017
4b2bc98
Minor fix
snilt Apr 11, 2017
b320717
Fix for vanished docking widget titles
snilt Apr 12, 2017
390e66e
Improved/fixed hiding in tray and option: 'Workaround for broken wind…
snilt Apr 19, 2017
9277c90
Tweaks for option: 'Hide in tray when minimized'
snilt Apr 19, 2017
4bc91e1
Fixed 'Workaround for broken window geometry after unmaximize' for Mi…
snilt Apr 20, 2017
8afcce6
Added a tray option
snilt Apr 20, 2017
0e1b9b0
Moved a function
snilt Apr 22, 2017
1a79e2f
Debug messages
snilt Apr 22, 2017
9e37c0d
Added more tweaks for workaround unmaximize
snilt Apr 26, 2017
53b181d
Tweaks for LXDE
snilt May 1, 2017
9812c26
Scaled tray icon to 64x64 pixel
snilt Apr 20, 2017
6b5e38f
QGroupBox widening, bold title text sometimes gets truncated
snilt May 1, 2017
9d7bf3b
Added a reset-button to the whatsthis options
snilt May 1, 2017
329c715
Added links to Options.txt
snilt May 2, 2017
f5aad09
Fixed help text
snilt May 2, 2017
f47cc15
Internal version bump
snilt May 2, 2017
9a17bb7
Added commandline option to check for bad desktop icon themes causing…
snilt Jun 6, 2017
baae2b4
Fixed missing condition
snilt Jun 6, 2017
77492b2
Fixes for LXDE
snilt Jun 6, 2017
ff927fa
Fixes for Unity (Ubuntu desktop environment)
snilt Jun 6, 2017
8c2c079
Removed tray option 'Use alternative method for showing dockable wind…
snilt Jun 6, 2017
31ca481
Adjusted help text content
snilt Jun 6, 2017
543c11d
Moved int conversion to the save/load functions
snilt Jun 6, 2017
34f72d3
Do not hide in tray when a modal dialog is shown
snilt Jun 6, 2017
7864907
Revert "Disabled 'Connection Manager' menu entry when using the inter…
snilt Jun 6, 2017
90ce20b
Disable the 'Connect' button in the 'Connection Manager' instead
snilt Jun 6, 2017
89cbdcc
Fixed issues with internal server start and shutdown
snilt Jun 6, 2017
063b25a
Changed order of tray options
snilt Jun 6, 2017
7c77230
Fixed client log loading when the options were altered
snilt Jun 6, 2017
a5cf370
Added tray icon 24x24 and an option to choose
snilt Jun 6, 2017
477a3da
Minor fix for Xfce option
snilt Jun 6, 2017
334761a
Updated german language translation
snilt Jun 6, 2017
b27cb5a
Added a hint
snilt Jun 6, 2017
8197302
Internal version bump
snilt Jun 6, 2017
355819a
Remember the folder from where the last container file has been loaded
snilt Jun 22, 2017
9c0e16e
Added help text to the port forwarder
snilt Jun 22, 2017
728a762
Fixed segfault when connecting from Connection Manager
snilt Jun 22, 2017
20547bc
Do not disconnect signals that are not yet connected to avoid console…
snilt Jun 22, 2017
f86c4d8
Fixed docking windows geometry
snilt Jun 22, 2017
0b0bde2
Minor text change
snilt Jun 22, 2017
d50d278
Updated german language translation
snilt Jun 22, 2017
e36df45
Internal version bump
snilt Jun 22, 2017
eb43d6a
Renamed variables, fixed window position
snilt Jul 4, 2017
7a52c69
Fixed window focus
snilt Jul 4, 2017
f05a094
Internal version bump
snilt Jul 4, 2017
83c6e43
Fixed docking windows geometry again
snilt Oct 5, 2017
67a9732
Fixed message box on internal server restart
snilt Oct 5, 2017
c17f46d
Updated german language translation
snilt Oct 5, 2017
05002d9
Internal version bump
snilt Oct 5, 2017
80e0d5a
Merge branch 'stable' into qt4gui
snilt Oct 14, 2017
1a81a9c
Missing conditions
snilt Oct 11, 2017
9892cc5
Allow only one docking area (right side)
snilt Oct 11, 2017
803a7da
Internal version bump
snilt Oct 12, 2017
fb415fd
Fixed code style issues reported by codacy
snilt Oct 15, 2017
773de94
Fixed code style issues reported by codacy
snilt Oct 15, 2017
46b6eef
Fixed code style issues reported by codacy
snilt Oct 16, 2017
abe2c01
Fixed code style issues reported by codacy
snilt Oct 16, 2017
603502e
Fixed code style issues reported by codacy
snilt Oct 16, 2017
60ef1d6
Fixed code style issues reported by codacy
snilt Oct 16, 2017
858fa5d
Fixed code style issues reported by codacy
snilt Oct 16, 2017
306291b
Fixed code style issues reported by codacy
snilt Oct 17, 2017
fa75ed1
Fixed code style issues reported by codacy
snilt Oct 17, 2017
63bec8f
Fixed code style issues reported by codacy
snilt Oct 17, 2017
2124927
Added tooltips
snilt Oct 21, 2017
de2bd83
Package and links docks: select destination on tab activation
snilt Oct 21, 2017
d149fdd
Debug menu entry
snilt Oct 21, 2017
658937f
Moved the options dialogs to a separate module
snilt Oct 21, 2017
30ca786
Make sure the mainLoop gets stopped when the connection was dropped
snilt Oct 21, 2017
c8723da
Fixed MessageBox translation
snilt Oct 21, 2017
b14e276
Updated german language translation
snilt Oct 21, 2017
b6615eb
Internal version bump
snilt Oct 21, 2017
ab0b180
Merge branch 'stable' into qt4gui
snilt Nov 3, 2017
c979ea3
Internal version bump
snilt Nov 3, 2017
44de432
Merge branch 'stable' into qt4gui
snilt Nov 19, 2017
30afd72
Removed unused import
snilt Nov 19, 2017
e9cb869
Internal version bump
snilt Nov 19, 2017
442697d
Merge branch 'stable' into qt4gui
snilt Jun 24, 2019
51fbe9d
Renamed Socket.py to CoreSocket.py
snilt Sep 9, 2019
0213ade
Restored Socket.py from upstream/stable
snilt Sep 9, 2019
668009e
Reworked handling of captchas (no interactive captcha support)
snilt Sep 9, 2019
8ead8cc
Use OrderedDict for sorting tabs in the Settings window
snilt Sep 9, 2019
855a9ee
Use a ComboBox for choosing plugin settings (much faster than creatin…
snilt Sep 9, 2019
c56fd31
Fixed 'Package Download Finished' notification showing wrong package …
snilt Sep 9, 2019
d251dbb
Disable the 'Connect' button in the 'Connection Manager' even if the …
snilt Sep 9, 2019
98eddc9
Improved url paste
snilt Sep 9, 2019
88be288
Implemented undo filter urls
snilt Sep 9, 2019
c91bfb0
Improved 'Clear' button for the PackageDock
snilt Sep 9, 2019
427dfe1
Do not clear PackageDock and LinkDock on show
snilt Sep 9, 2019
58f4772
Added help text
snilt Sep 9, 2019
193cd0d
New regexp and remove duplicates for the url filter
snilt Sep 9, 2019
393781c
Clipboard watcher improvements
snilt Sep 9, 2019
8169c50
Deselect links when a package is collapsed
snilt Sep 9, 2019
bacd1fc
Prevent expand/collapse when right-clicking the arrow in the tree views
snilt Sep 9, 2019
cef1044
Reworked context menu logic in the tree views
snilt Sep 9, 2019
59118fb
Removed unused function
snilt Sep 9, 2019
1bcfaf8
Added Drag'n'Drop messages
snilt Sep 9, 2019
c0f0faf
Donated the server pause toggle its own button
snilt Sep 9, 2019
651a4bf
Implemented advanced item select/deselect by search string/wildcard/r…
snilt Sep 9, 2019
63ddc39
Gray-out status bar entries when server permissions are insufficient
snilt Sep 9, 2019
476b9a0
Added alphabetical sorting (natural sorting) of packages and links vi…
snilt Sep 9, 2019
e3e4f0d
Changed context menu entry order
snilt Sep 9, 2019
004389d
Added removing of duplicate links in a package
snilt Sep 9, 2019
4a7c8ec
Consider only selected items for disabling context menu entries
snilt Sep 9, 2019
9691a08
Ignore selected links when sorting links, and when removing duplicate…
snilt Sep 9, 2019
6249f1b
Changed menu entry names
snilt Sep 9, 2019
11d63a5
Changed a button label
snilt Sep 9, 2019
38521c0
More work on advanced item select/deselect, alphabetical sorting and …
snilt Sep 9, 2019
1ad460d
Colored docking window error labels
snilt Sep 9, 2019
259d143
Moved some context menu entries to a sub-menu
snilt Sep 9, 2019
fd17b01
Fixed advanced item select/deselect performance issue
snilt Sep 9, 2019
a997e7b
More speed improvements for item select/deselect (QItemSelection)
snilt Sep 9, 2019
7f3a490
Added a function to reduce the amount of item moves for alphabetical …
snilt Sep 9, 2019
d593193
Added fullReloadCheck, disabled saveViewItemStates and applyViewItemS…
snilt Sep 9, 2019
2b29adc
Debug message
snilt Sep 9, 2019
61e339a
Greyout collector and queue widgets while sorting, do a fullReload wh…
snilt Sep 9, 2019
bacb8ae
Improved gui message for alphabetical sorting
snilt Sep 9, 2019
5a158cc
Reduced collector/queue context menu popup delay, added debug messages
snilt Sep 9, 2019
62f9fe3
Simplified tree model parent() function
snilt Sep 9, 2019
1f6bbff
More debug messages for time measuring
snilt Sep 9, 2019
282c1ee
Workaround for issues with displaying disabled window elements
snilt Sep 9, 2019
7353815
Also disable connect with double-click when disabling the 'Connect' b…
snilt Sep 9, 2019
0f59f1b
Changed some message box text
snilt Sep 9, 2019
e0d1dca
Captcha handling part 2
snilt Sep 9, 2019
b300700
Add a plugins menu for quick access to selective server plugin config…
snilt Sep 9, 2019
1e59773
pyLoadCore: Do not set sys.excepthook when self.startedInGui is True
snilt Sep 9, 2019
593a16f
Revert "More speed improvements for item select/deselect (QItemSelect…
snilt Sep 9, 2019
05f2830
Revert "Fixed advanced item select/deselect performance issue"
snilt Sep 9, 2019
52b615d
Revert "Simplified tree model parent() function"
snilt Sep 9, 2019
0ee08d1
Handle the treeviews at first in the mainloop (might fix some silent …
snilt Sep 9, 2019
6068f90
Fixed, tuned and re-enabled saveViewItemStates and applyViewItemStates
snilt Sep 9, 2019
68124c0
Minor change in removeLinkDupes
snilt Sep 9, 2019
57962d5
Reworked slotDropEvent (Drag'n'Drop)
snilt Sep 9, 2019
c77891e
Do not re-enable treeviews without LIST permission
snilt Sep 9, 2019
6a696e4
Development version
snilt Sep 9, 2019
ae27980
Merge branch 'stable' into qt4gui
snilt Sep 9, 2019
5babf1f
Fixed code style issues reported by codacy
snilt Sep 12, 2019
85b9441
Revert "pyLoadCore: Do not set sys.excepthook when self.startedInGui …
snilt Sep 13, 2019
b13b2f7
Merge branch 'stable' into qt4gui
snilt Sep 13, 2019
a03a5d6
Internal version bump
snilt Sep 14, 2019
ef974b8
Dialogbox cosmetics
snilt Jan 4, 2020
3b50a8c
Added icon font themes and font options
snilt Jan 4, 2020
7c428b6
Commented out QIconEngine subclass since it is obsolete now, and it p…
snilt Jan 4, 2020
400749b
Display the number of selected/desesected packages or links when usin…
snilt Jan 4, 2020
7e3be06
Added removePackageDupes
snilt Jan 4, 2020
f0a5365
Desktop notification on package add
snilt Jan 4, 2020
1b519e1
Added server setting 'Max Parallel Downloads' to the toolbar
snilt Jan 4, 2020
b401318
Changed some button and menu text
snilt Jan 4, 2020
567a9aa
Force some widgets to grey-out when the application is busy
snilt Jan 4, 2020
9ffb179
Development version
snilt Jan 4, 2020
2c497a0
Fixed code style issues (wildcard imports) reported by codacy
snilt Jan 5, 2020
7542aae
Fixed code issues reported by codacy
snilt Jan 8, 2020
b5dc21f
Fixed code issues (line too long) reported by codacy
snilt Jan 8, 2020
12b5536
Merge branch 'stable' into qt4gui
snilt Jan 10, 2020
9af5c25
Internal version bump
snilt Jan 10, 2020
ce3a5cf
Development version
snilt Jan 10, 2020
c0b2607
Moved some classes to dedicated files
snilt Jan 16, 2020
211ce09
Swapped out some functions
snilt Jan 16, 2020
0d8b5a5
Removed some imports which are no longer necessary here
snilt Jan 16, 2020
d2a2791
Fixed code issues reported by codacy
snilt Jan 17, 2020
0052d0a
Fixed code issues reported by codacy
snilt Jan 24, 2020
7cba727
Fixed code issues reported by codacy
snilt Jan 25, 2020
f918c2d
Fixed code issues (trailing whitespace) reported by codacy
snilt Jan 25, 2020
d4075a0
Moved PlainTextEdit class to the Tools module
snilt Feb 12, 2020
29e7a32
Moved SpinBox class to the Tools module
snilt Feb 12, 2020
19320ca
Moved AdvancedSelect class to its own file
snilt Feb 12, 2020
279ddcd
Fixed code style issues
snilt Feb 12, 2020
80304bc
Merge branch 'stable' into qt4gui
snilt Feb 26, 2020
c3b17c7
Merge conflict fix
snilt Feb 26, 2020
ed67b8e
Version bump
snilt Feb 27, 2020
3b06274
Revert "Fixed an issue which appeared on openSUSE"
snilt Feb 27, 2020
27d36e6
Internal version bump
snilt Feb 27, 2020
5b9ef82
Development version
snilt Mar 24, 2020
ead3784
Renamed some qt signals and slots
snilt Mar 24, 2020
f349efc
Qt4 new-style signals and slots only
snilt Mar 24, 2020
4f36ce5
Removed some use of the QString class
snilt Mar 24, 2020
ec5622b
Added PyQt5 imports
snilt Mar 24, 2020
f874a7d
Necessary adjustments for PyQt5 compatibility
snilt Mar 24, 2020
d40014d
Fixed container file/pathname encoding
snilt Mar 24, 2020
a937560
Choose PyQt version from options dialog or via command line option
snilt Mar 24, 2020
d96fc58
Fixed Qt signal in Connector
snilt Mar 24, 2020
176b708
Fixed captcha entry grey-out in notification options
snilt Mar 24, 2020
164ae9d
Fixed log views, added auto-scroll checkbox
snilt Mar 24, 2020
71ba5e3
Fixed qt5 tooltips
snilt Mar 24, 2020
41f4fe1
Replaced PyQt5 wildcard imports
snilt Mar 24, 2020
7ec53b5
Added missing license headers
snilt Mar 24, 2020
1ece646
Added support for notify2 (desktop notifications)
snilt Mar 24, 2020
41041a4
Moved imports out of function bodies
snilt Mar 24, 2020
c6cb104
Use the parser from the core for reading pyload.conf
snilt Mar 24, 2020
0798f41
Handle KeyboardInterrupt
snilt Mar 24, 2020
3059a43
Merge branch 'stable' into qt4gui
snilt Mar 24, 2020
87dec81
Adjusted import of Connector
snilt Mar 24, 2020
d066fb8
Merge branch 'stable' into qt4gui
snilt May 15, 2020
2f56c3e
Internal version bump
snilt May 15, 2020
fc21084
Merge branch 'stable' into qt4gui
snilt Jul 16, 2020
068fcd5
Reverted Thrift to upstream version
snilt Jul 25, 2020
3294923
Fixes for the CLI (SSL ThriftBackend)
snilt Jul 25, 2020
252b7b2
Handle windows sockets error codes
snilt Jul 25, 2020
e6eee86
Thrift fix: eta data
snilt Jul 25, 2020
6255d5b
Necessary adjustments due to ThriftBackend changes
snilt Jul 25, 2020
d825bb1
Fixed quit/restart remote server from menu
snilt Jul 25, 2020
51dbb11
Import sys.exit()
snilt Jul 25, 2020
744e59b
Workaround for broken ThriftBackend after server restart on windows
snilt Jul 25, 2020
75f4612
Changed messageBox text
snilt Jul 25, 2020
a84d61d
Internal version bump
snilt Jul 25, 2020
ea619f8
Merge branch 'stable' into qt4gui
snilt Jan 28, 2021
8127175
Fixed 'abort' in Collector context menu
snilt Jan 28, 2021
e0796a3
Ordered toolbar buttons and changed help text
snilt Jan 28, 2021
3019634
Show plugin activation state in bold
snilt Jan 28, 2021
07757dc
Added a pyLoadGui.mo (empty)
snilt Jan 28, 2021
aba55e4
Check for running server process on windows
snilt Jan 28, 2021
a535452
Added PID-file support
snilt Jan 28, 2021
f9feb74
Removed some needless stuff
snilt Jan 28, 2021
83c079c
Show PID in AboutBox
snilt Jan 28, 2021
48b7f7f
Print the Qt version
snilt Jan 28, 2021
a64ff6a
Changed some text
snilt Jan 28, 2021
11887d9
Added an SSL option for connections to remote servers
snilt Jan 28, 2021
770a081
Log an error when a nonexistent startup connection is set from cmdline
snilt Jan 28, 2021
8a04ea4
Fixed captcha image not shown
snilt Jan 28, 2021
4f58cc0
Internal version bump
snilt Jan 28, 2021
604de0b
Development version
snilt Feb 7, 2021
4496095
Improved advanced item select/deselect
snilt Feb 7, 2021
f164f4c
Fixed functionality of the 'Remove Finished' toolbar button
snilt Feb 7, 2021
f5d9358
Added 'Remove Finished Packages' to the context menus
snilt Feb 7, 2021
876b776
Fixed an issue with the plugin menu checkbox
snilt Feb 7, 2021
c3a3291
Internal version bump
snilt Feb 7, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file added icons/abort_small.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icons/add_small.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icons/clipboard.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4,390 changes: 4,390 additions & 0 deletions icons/fontawesome-free-5.11.1-web/css/fontawesome.css

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
845 changes: 845 additions & 0 deletions icons/line-awesome/css/line-awesome.css

Large diffs are not rendered by default.

Binary file added icons/line-awesome/fonts/line-awesome.ttf
Binary file not shown.
Binary file added icons/logo-gui24x24.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/logo-gui64x64.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icons/pull_small.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icons/push_small.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icons/refresh_small.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icons/toolbar_add.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icons/toolbar_pause.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/toolbar_refresh.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icons/toolbar_remove.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icons/toolbar_start.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icons/toolbar_stop.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/toolbar_stop_nopause.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified locale/cs/LC_MESSAGES/pyLoadGui.mo
Binary file not shown.
Binary file modified locale/de/LC_MESSAGES/pyLoadGui.mo
Binary file not shown.
Binary file modified locale/es/LC_MESSAGES/pyLoadGui.mo
Binary file not shown.
Binary file modified locale/fi/LC_MESSAGES/pyLoadGui.mo
Binary file not shown.
Binary file modified locale/fr/LC_MESSAGES/pyLoadGui.mo
Binary file not shown.
1,319 changes: 1,089 additions & 230 deletions locale/gui.pot

Large diffs are not rendered by default.

Binary file modified locale/it/LC_MESSAGES/pyLoadGui.mo
Binary file not shown.
Binary file modified locale/nl/LC_MESSAGES/pyLoadGui.mo
Binary file not shown.
Binary file modified locale/pl/LC_MESSAGES/pyLoadGui.mo
Binary file not shown.
Binary file modified locale/pt_BR/LC_MESSAGES/pyLoadGui.mo
Binary file not shown.
Binary file modified locale/ro/LC_MESSAGES/pyLoadGui.mo
Binary file not shown.
Binary file modified locale/ru/LC_MESSAGES/pyLoadGui.mo
Binary file not shown.
Binary file modified locale/sr/LC_MESSAGES/pyLoadGui.mo
Binary file not shown.
Binary file modified locale/sv/LC_MESSAGES/pyLoadGui.mo
Binary file not shown.
Binary file modified locale/tr/LC_MESSAGES/pyLoadGui.mo
Binary file not shown.
30 changes: 28 additions & 2 deletions module/config/gui_default.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,39 @@
<?xml version="1.0" ?>
<?xml version="1.0" encoding="UTF-8"?>
<root>
<connections>
<connection default="True" type="local" id="33965310e19b4a869112c43b39a16440">
<connection default="False" type="local" id="33965310e19b4a869112c43b39a16440">
<name>Local</name>
</connection>
<connection default="False" type="internal" id="0e61deb8671b4421aa0d6bda07da5cb9">
<name>Internal Server</name>
</connection>
</connections>
<mainWindow>
<state></state>
<geometry></geometry>
<geometryUnmaximized></geometryUnmaximized>
<geometryOther></geometryOther>
<visibilitySpeedLimit></visibilitySpeedLimit>
<visibilityMaxParallelDownloads></visibilityMaxParallelDownloads>
<stateQueue></stateQueue>
<stateCollector></stateCollector>
<stateAccounts></stateAccounts>
<statePackageDock></statePackageDock>
<stateLinkDock></stateLinkDock>
<optionsNotifications></optionsNotifications>
<optionsLogging></optionsLogging>
<optionsClickNLoadForwarder></optionsClickNLoadForwarder>
<optionsAutomaticReloading></optionsAutomaticReloading>
<optionsCaptcha></optionsCaptcha>
<optionsIconTheme></optionsIconTheme>
<optionsFonts></optionsFonts>
<optionsColorFix></optionsColorFix>
<optionsTray></optionsTray>
<optionsWhatsThis></optionsWhatsThis>
<optionsOther></optionsOther>
<menuPlugins></menuPlugins>
<lastAddContainerDir></lastAddContainerDir>
</mainWindow>
<language>en</language>
<pyqtVersion></pyqtVersion>
</root>
145 changes: 145 additions & 0 deletions module/gui/AboutBox.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
# -*- coding: utf-8 -*-
"""
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License,
or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, see <http://www.gnu.org/licenses/>.
"""

from module.gui.PyQtVersion import USE_PYQT5
if USE_PYQT5:
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QFont, QIcon, QPixmap
from PyQt5.QtWidgets import QApplication, QDialog, QDialogButtonBox, QHBoxLayout, QLabel, QPushButton, QVBoxLayout
else:
from PyQt4.QtCore import Qt
from PyQt4.QtGui import QApplication, QDialog, QDialogButtonBox, QFont, QHBoxLayout, QIcon, QLabel, QPixmap, QPushButton, QVBoxLayout

import logging, os
from os.path import join

from module.gui.Tools import WtDialogButtonBox

class AboutBox(QDialog):
"""
about-box
"""

def __init__(self, parent):
QDialog.__init__(self, parent)
self.log = logging.getLogger("guilog")

self.setAttribute(Qt.WA_DeleteOnClose, True)
self.setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint)
self.setWindowTitle(_("About pyLoad Client"))
self.setWindowIcon(QIcon(join(pypath, "icons", "logo.png")))

self.logo = QLabel()
self.logo.setAlignment(Qt.AlignTop)
pix = QPixmap(join(pypath, "icons", "logo-gui.png"))
self.logo.setPixmap(pix)
self.text1 = QLabel()
self.text1.setAlignment(Qt.AlignTop)
text1font = QFont(self.text1.font())
text1fontSize = text1font.pointSize()
if text1fontSize != -1:
text1font.setPointSize(text1fontSize + 2)
text1font.setBold(True)
self.text1.setFont(text1font)
self.text2 = QLabel()
self.text2.setAlignment(Qt.AlignTop)
self.text3 = QLabel()
self.text3.setAlignment(Qt.AlignTop)
self.text3.setTextFormat(Qt.PlainText)

vboxText = QVBoxLayout()
vboxText.setContentsMargins(0, 0, 0, 0)
vboxText.setSpacing(0)
vboxText.addWidget(self.text1)
vboxText.addWidget(self.text2)
vboxText.addSpacing(20)
vboxText.addWidget(self.text3)
vboxText.addStretch(1)

hbox = QHBoxLayout()
hbox.addWidget(self.logo)
hbox.addSpacing(20)
hbox.addLayout(vboxText)
hbox.addSpacing(20)
hbox.addStretch(1)

self.buttons = WtDialogButtonBox(Qt.Horizontal, self)
self.buttons.hideWhatsThisButton()
self.okBtn = self.buttons.addButton(QDialogButtonBox.Ok)
self.buttons.button(QDialogButtonBox.Ok).setText(_("OK"))
self.copyBtn = QPushButton(_("Copy to Clipboard"))
self.buttons.addButton(self.copyBtn, QDialogButtonBox.ActionRole)

vbox = QVBoxLayout()
vbox.addLayout(hbox)
vbox.addSpacing(5)
vbox.addStretch(1)
vbox.addLayout(self.buttons.layout())
self.setLayout(vbox)

self.okBtn.clicked.connect(self.accept)
self.copyBtn.clicked.connect(self.slotCopyToClipboard)

def slotCopyToClipboard(self):
txt = self.text3.text()
clipboard = QApplication.clipboard()
clipboard.setText(txt)

def exec_(self, version, internalversion):
import platform
import struct
if USE_PYQT5:
from PyQt5.QtCore import QT_VERSION_STR
else:
from PyQt4.QtCore import QT_VERSION_STR
txt1 = _("pyLoad Client") + " v" + version
self.text1.setText(txt1)
txt2 = "2008-2016 the pyLoad Team"
self.text2.setText(txt2)
txt3 = "Version: " + version
txt3 += "\nInternal version: " + internalversion
txt3 += "\n\nPlatform: " + platform.platform()
if os.name == "nt":
if "PROGRAMFILES(X86)" in os.environ:
txt3 += " (64bit)"
else:
txt3 += " (32bit)"
txt3 += "\nPython version: " + platform.python_version() + " (%dbit)" % (struct.calcsize("P") * 8)
txt3 += "\nQt version: " + QT_VERSION_STR
try:
if USE_PYQT5:
from PyQt5.pyqtconfig import Configuration
else:
from PyQt4.pyqtconfig import Configuration
cfg = Configuration()
sipver = cfg.sip_version_str
pyqtver = cfg.pyqt_version_str
except Exception:
if USE_PYQT5:
from PyQt5.Qt import PYQT_VERSION_STR
else:
from PyQt4.Qt import PYQT_VERSION_STR
from sip import SIP_VERSION_STR
sipver = SIP_VERSION_STR
pyqtver = PYQT_VERSION_STR
txt3 += "\nPyQt version: " + pyqtver
txt3 += "\nSIP version: " + sipver
self.text3.setText(txt3)
self.okBtn.setFocus(Qt.OtherFocusReason)
self.adjustSize()
self.setFixedSize(self.width(), self.height())
return QDialog.exec_(self)

140 changes: 85 additions & 55 deletions module/gui/AccountEdit.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,93 +12,123 @@

You should have received a copy of the GNU General Public License
along with this program; if not, see <http://www.gnu.org/licenses/>.

@author: mkaay
"""

from PyQt4.QtCore import *
from PyQt4.QtGui import *
from module.gui.PyQtVersion import USE_PYQT5
if USE_PYQT5:
from PyQt5.QtCore import pyqtSignal, Qt
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QCheckBox, QComboBox, QDialog, QDialogButtonBox, QGridLayout, QLabel, QLineEdit
else:
from PyQt4.QtCore import pyqtSignal, Qt
from PyQt4.QtGui import QCheckBox, QComboBox, QDialog, QDialogButtonBox, QGridLayout, QIcon, QLabel, QLineEdit

import logging
from os.path import join

class AccountEdit(QWidget):
from module.gui.Tools import WtDialogButtonBox

class AccountEdit(QDialog):
"""
account editor widget
"""

def __init__(self):
QMainWindow.__init__(self)
accountEditSaveSGL = pyqtSignal(object)

def __init__(self, parent):
QDialog.__init__(self, parent)
self.log = logging.getLogger("guilog")

self.setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint)
self.setWindowIcon(QIcon(join(pypath, "icons", "logo.png")))

self.setWindowTitle(_("Edit account"))
self.setWindowIcon(QIcon(join(pypath, "icons","logo.png")))

self.setLayout(QGridLayout())
l = self.layout()

typeLabel = QLabel(_("Type"))
loginLabel = QLabel(_("Login"))
passwordLabel = QLabel(_("New password"))
changePw = QCheckBox()
changePw.setChecked(False)
self.changePw = changePw
password = QLineEdit()
password.setEnabled(False)
password.setEchoMode(QLineEdit.Password)
self.password = password
login = QLineEdit()
self.login = login
acctype = QComboBox()
self.acctype = acctype

save = QPushButton(_("Save"))

self.connect(changePw, SIGNAL("toggled(bool)"), password, SLOT("setEnabled(bool)"))

l.addWidget(save, 3, 0, 1, 3)
l.addWidget(acctype, 0, 1, 1, 2)
l.addWidget(login, 1, 1, 1, 2)
l.addWidget(password, 2, 2)
l.addWidget(changePw, 2, 1)
l.addWidget(passwordLabel, 2, 0)
self.passwordLabel = QLabel()
self.changePw = QCheckBox()
self.changePw.setChecked(False)
self.password = QLineEdit()
self.password.setEnabled(False)
self.password.setEchoMode(QLineEdit.Password)
self.login = QLineEdit()
self.acctype = QComboBox()

self.buttons = WtDialogButtonBox(Qt.Horizontal)
self.buttons.hideWhatsThisButton()
self.save = self.buttons.addButton(QDialogButtonBox.Save)
self.save.setDefault(False)
self.save.setAutoDefault(False)
self.cancel = self.buttons.addButton(QDialogButtonBox.Cancel)
self.cancel.setDefault(True)
self.cancel.setAutoDefault(True)
self.buttons.button(QDialogButtonBox.Save).setText(_("Save"))
self.buttons.button(QDialogButtonBox.Cancel).setText(_("Cancel"))

self.changePw.toggled[bool].connect(self.password.setEnabled)

l.setRowMinimumHeight(3, 7)
l.addLayout(self.buttons.layout(), 4, 0, 1, 3)
l.addWidget(self.acctype, 0, 1, 1, 2)
l.addWidget(self.login, 1, 1, 1, 2)
l.addWidget(self.password, 2, 2)
l.addWidget(self.changePw, 2, 1)
l.addWidget(self.passwordLabel, 2, 0)
l.addWidget(loginLabel, 1, 0)
l.addWidget(typeLabel, 0, 0)

self.connect(save, SIGNAL("clicked()"), self.slotSave)


self.setMinimumWidth(280)
self.adjustSize()
self.setFixedHeight(self.height())

self.save.clicked.connect(self.slotSave)
self.cancel.clicked.connect(self.reject)

def slotSave(self):
"""
save entered data
"""
data = {"login": str(self.login.text()), "acctype": str(self.acctype.currentText()), "password": False}
data = {"login": unicode(self.login.text()), "acctype": unicode(self.acctype.currentText()), "password": None}
if self.changePw.isChecked():
data["password"] = str(self.password.text())
self.emit(SIGNAL("done"), data)
data["password"] = unicode(self.password.text())
self.accountEditSaveSGL.emit(data)

@staticmethod
def newAccount(types):
def newAccount(parent, types):
"""
create empty editor instance
"""
w = AccountEdit()
w.setWindowTitle(_("Create account"))

w = AccountEdit(parent)
w.setWindowTitle(_("Create Account"))
w.passwordLabel.setText(_("Password"))

w.changePw.setChecked(True)
w.password.setEnabled(True)

w.acctype.addItems(types)

w.acctype.setFocus(Qt.OtherFocusReason)
w.adjustSize()
return w

@staticmethod
def editAccount(types, base):
def editAccount(parent, types, base):
"""
create editor instance with given data
"""
w = AccountEdit()

w = AccountEdit(parent)
w.setWindowTitle(_("Edit Account"))
w.passwordLabel.setText(_("New Password"))

w.changePw.setChecked(True)
w.acctype.addItems(types)
w.acctype.setCurrentIndex(types.index(base["type"]))

w.login.setText(base["login"])

i = w.acctype.findText(base.type)
w.acctype.setCurrentIndex(i)
w.acctype.setEnabled(False)

w.login.setText(base.login)
w.login.setEnabled(False)
w.password.setFocus(Qt.OtherFocusReason)
w.adjustSize()
return w