Micah Lee
52d080d2a3
Give file items widgets, so they can soon contain working delete buttons
2018-02-04 20:09:51 -08:00
Micah Lee
ea7420e0cf
When dragging files into the window, highlight the drop area in blue and show a count of files to be added
2018-02-04 19:28:42 -08:00
Micah Lee
ae2140ceb8
Update drag and drop look and instructions
2018-02-04 13:13:38 -08:00
Miguel Jacq
96d758e8e1
Emit the files_updated signal when deleting files. This will ensure that the share button gets disabled when there are no files in the list
2017-12-27 11:37:06 +11:00
Miguel Jacq
17ba97becc
#431 Set minimum height of FileList to prevent resize bug affecting scrolling/visibility of bottom rows
2017-12-04 16:39:22 +11:00
Miguel Jacq
64b5cc59bb
Ensure the self.filenames list is sorted internally.
...
This is important because even though the QListWidget UI is sorted
automatically, the list is not necessarily. Drag-drop events, depending
on the order in which items were highlighted before being dragged,
can result in a different or reversed order. This has implications for
popping the list later (e.g on delete events)
2017-05-31 11:17:15 +10:00
Micah Lee
c039ccd184
Merge branch 'single_add_button' of https://github.com/mig5/onionshare into mig5-single_add_button
2017-05-30 12:21:03 -07:00
Miguel Jacq
63745f4d8e
reinstate the caption call
2017-05-29 13:50:46 +10:00
Miguel Jacq
8f79fc392d
Fix file dialog by subclassing/overriding it, which allows for single selection of a file or folder, as well as multiple
2017-05-29 13:47:05 +10:00
Miguel Jacq
68089a9850
Make adding of files/folders a single button
2017-05-29 10:22:16 +10:00
Miguel Jacq
91cf9084aa
Make it possible to delete multiple items from the list with a shift-select
2017-05-27 17:27:57 +10:00
Micah Lee
e828b2f9cd
Use non-native QFileDialog for file selection as well as directory selection, to have a consistent UI
2017-05-22 16:10:55 -07:00
Miguel Jacq
b35e3b76d5
Make it possible to select multiple folders by using non-native QFileDialog
2017-05-21 16:14:32 +10:00
Micah Lee
c4ad835322
Move the readable file check from FileSelection to FileList, so files you drag-and-drop into OnionShare get checked as well
2017-05-18 10:55:10 -07:00
Miguel Jacq
8a1fad7a79
#345 - validate the readability of files before adding them
2017-05-18 18:09:49 +10:00
Micah Lee
3e3d669a49
Remove the menu bar, and replace it with a settings button owned by the OnionShareGui object
2017-05-16 15:24:14 -07:00
Micah Lee
1591888863
Renamed onionshare.helpers module to onionshare.common
2017-05-16 11:05:48 -07:00
Micah Lee
f8005a63ea
Change GPL copyright from 2016 to 2017
2017-01-06 18:58:15 -08:00
Micah Lee
e81f809882
Move all resources (locale, images, html, version.txt) into central resources dir, and clean up logic to find absolute paths to resources
2016-04-12 15:14:02 -07:00
Micah Lee
683610e962
Update copyright year to 2016
2016-02-15 22:37:28 -08:00
Micah Lee
62c69c4c0b
Porting onionshare GUI from python2 to python3, and also from PyQt4 to PyQt5 ( #261 ). This commit ports onionshare_gui.
2016-02-12 15:12:27 -08:00
Micah Lee
dc58921187
Add docstrings to all classes and methods ( fix #198 )
2015-11-15 19:01:20 -08:00
Micah Lee
bbee1599c5
Updated copyright year to 2015
2015-09-07 21:48:49 -07:00
Micah Lee
669750be37
specify types in all str.format() calls ( fixes #169 )
2015-05-15 12:26:58 -07:00
Micah Lee
aab5ae31ab
No longer duplicates human_readable_filesize functions. Closes #170
2015-05-14 14:40:55 -07:00
Thomas Waldmann
087102bde4
pep8: too long lines, reformat lines to < 120 chars. removed redundancy from long_description in setup.py.
...
note: pep8 usually recommends 80 chars, but I find that impractical and unnecessary - it's not 1980 any more when code was edited on 80x25 terminals.
i was a bit wondering about onionshare-launcher.py - it does a lot of imports, but does not use the imported names.
2014-11-18 18:59:48 +01:00
Thomas Waldmann
63965fd2d9
pep8: blank after comma and colon
2014-11-18 18:35:09 +01:00
Thomas Waldmann
179eefae29
pep8: fix empty line counts
...
top level: 2, else 1
I also advice to not put "pass" into empty classes, but rather a docstring instead of "pass".
2014-11-18 18:29:32 +01:00
Micah Lee
15671ce1d9
remove trailing slash from filenames before adding, because getting basename on OSX fails otherwise
2014-09-22 12:03:50 -07:00
Micah Lee
5b9176c9d4
combined Start Server and Stop Server buttons into a single button
2014-09-18 00:37:19 +00:00
Micah Lee
c159ef671d
removed unused strings
2014-09-18 00:26:22 +00:00
Micah Lee
b1e48fa9bb
Fixed drag & drop issue, and made drop here image work in Windows ( fixes #129 )
2014-09-17 15:48:19 -07:00
Micah Lee
89581b0a03
encode one way for CLI, encode another for GUI ( #141 )
2014-09-16 02:09:37 +00:00
Micah Lee
0a4ee35f5b
fixes unicode filename display in GUI ( #141 )
2014-09-16 01:15:57 +00:00
Micah Lee
8cdecbcaf4
removing unnecessary whitespace
2014-09-16 00:22:14 +00:00
Micah Lee
d00b296c47
moving image files into /usr/share instead of /usr/lib ( fixes #126 )
2014-09-03 17:50:06 -07:00
Micah Lee
8d01ad7ec6
moved images to subfolder ( #126 )
2014-09-03 17:36:03 -07:00
Micah Lee
4edcce9ece
add utf-8 encoding to all .py files
2014-09-02 17:30:01 -07:00
Micah Lee
a6e99fcc21
added GPLv3 license to each source file
2014-09-02 12:10:42 -07:00
Micah Lee
36914114f9
sort the list of filenames being shared
2014-08-28 16:26:56 -07:00
Micah Lee
49eac35196
FileSelection and ServerStatus interact together, disabling buttons when appropriate
2014-08-27 17:24:44 -07:00
Micah Lee
78f6c31061
beginning to refactor onionshare_gui to work with multiple files ( #66 )
2014-08-27 14:21:08 -07:00