Micah Lee
c1ff40b5b3
Completely refactor common to make a Common class, and pass that class down into all parts of the program
2018-03-08 10:18:31 -08:00
Micah Lee
55e924d34d
Change how FileSelection.update tells if items are selected to correctly show and hide the delete button
2018-02-23 14:18:57 -08:00
Miguel Jacq
2868548b45
Fix get_num_files() to count the items in the QListWidget, not in the FileSelection QVBoxLayout widget
2018-02-23 12:46:18 +11:00
Miguel Jacq
86528e42d2
Remove our custom stylesheeting, and just trim long names, allowing them to untrim as the window resizes
2018-02-23 10:49:43 +11:00
Micah Lee
b8247cd319
Make the item-info boxes have an obvious style
2018-02-22 10:02:52 -08:00
Micah Lee
e59207cd68
Stop trimming filenames, and instead create item info with a white background
2018-02-22 09:55:04 -08:00
Miguel Jacq
2e1f8fca5c
Force a scrollbar on the file list widget. Not pretty but avoids weird text disappearance on resize when scrollbar otherwise activates
2018-02-22 14:44:00 +11:00
Miguel Jacq
86e415081b
Remove the item_name QLabel widget and just let the QListWidgetItem text() display as title. Trim super-long filenames
2018-02-22 14:37:31 +11:00
Miguel Jacq
f5eeff8e76
Instantiate empty filenames list
2018-02-21 15:47:21 +11:00
Miguel Jacq
26e1cc47ff
fix appending of filenames when checking that a file hasn't already been added to the list
2018-02-21 15:29:56 +11:00
Miguel Jacq
274b3920e8
Use the QListWidgetItems for building lists of filenames. Set, but avoid displaying, the QString from Qt.DisplayRole which is necessary for correct sorting in the list
2018-02-21 15:19:18 +11:00
Micah Lee
5ae760d00d
Merge branch 'info_widgets_download_info' of https://github.com/mig5/onionshare into mig5-info_widgets_download_info
2018-02-19 17:55:03 -08:00
Miguel Jacq
16937de6cd
Add download status widgets to info bar
2018-02-19 08:33:47 +11:00
Miguel Jacq
22579a6ae1
Increase the MinimumHeight of the FileList widget to avoid disappearing icons
2018-02-18 16:22:04 +11:00
Miguel Jacq
6efee70194
Adjust width of window to fit status bar messages, unwrapped, to avoid squishing widgets.
...
Add pluralisation of filemanager total file(s)
Use 'timer expired' rather than 'timeout reached'
2018-02-11 17:16:59 +11:00
Micah Lee
5bf67cc5d1
Make the drop count adjust size based on its sizeHint
2018-02-10 18:36:38 -08:00
Micah Lee
705831f247
Designed file list items to look better, prevent scrolling horizintally, and ensuring the delete button does not overlap the filename
2018-02-10 18:15:44 -08:00
Micah Lee
def8289a8b
Added an info label to file selection, to show the total count and size
2018-02-10 11:48:14 -08:00
Micah Lee
dc2ccbf5f8
Fix bug when stopping server
2018-02-07 09:48:34 -08:00
Micah Lee
7259232b23
Refactor what happens to FileList when the server starts or stops, and also prevent selections when the server starts
2018-02-07 09:16:55 -08:00
Miguel Jacq
c28c384e97
Leave the FileList enabled, but hide the item buttons when the server is working or started
2018-02-07 17:34:36 +11:00
Micah Lee
4958f3679c
Add delete button back, but only show it when files are selected
2018-02-04 21:45:35 -08:00
Micah Lee
a60253d55c
Remove delete button, use delete X's instead
2018-02-04 21:18:41 -08:00
Micah Lee
51019eabb2
Only do the fake item hack if there are items in the list
2018-02-04 20:50:24 -08:00
Micah Lee
de5e27e79d
Move DropHereLabel and DropCountLabel classes out of FileList
2018-02-04 20:36:34 -08:00
Micah Lee
cb5bd78163
Give file items widgets, so they can soon contain working delete buttons
2018-02-04 20:09:51 -08:00
Micah Lee
ff6be2a451
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
9ec38b49fa
Update drag and drop look and instructions
2018-02-04 13:13:38 -08:00
Miguel Jacq
4d0ef50fac
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
cd83d90ef1
#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
17f18e9a8d
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
4a6862cd9e
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
192fe7057f
reinstate the caption call
2017-05-29 13:50:46 +10:00
Miguel Jacq
d0216e0310
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
18bec095d3
Make adding of files/folders a single button
2017-05-29 10:22:16 +10:00
Miguel Jacq
8087cebb10
Make it possible to delete multiple items from the list with a shift-select
2017-05-27 17:27:57 +10:00
Micah Lee
06f08ab51b
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
d9e882cbdc
Make it possible to select multiple folders by using non-native QFileDialog
2017-05-21 16:14:32 +10:00
Micah Lee
2e7b099029
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
5f92e3d606
#345 - validate the readability of files before adding them
2017-05-18 18:09:49 +10:00
Micah Lee
cc4ac170c7
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
6b35a44d41
Renamed onionshare.helpers module to onionshare.common
2017-05-16 11:05:48 -07:00
Micah Lee
c0a26b7c6c
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