60 Commits

Author SHA1 Message Date
Micah Lee
5db8bd36b9 Merge branch '780_improved_ui' into 690_language_dropdown 2018-10-10 18:32:01 -07:00
Micah Lee
b0b5b6c79e Move ShareMode and ReceiveMode into Mode module 2018-10-07 14:54:51 -07:00
Micah Lee
e6302f3ba4 Remove the useless gui=True arg getting passed intro strings._ all over the place 2018-09-30 17:47:10 -07:00
Micah Lee
cae9ca4b72 Increase minimum window with to 460, and store it in a variable to stop repeating myself 2018-09-29 15:12:05 -07:00
Micah Lee
3f3ec611b2 Fix indicator label display for receive mode 2018-09-29 14:43:13 -07:00
Micah Lee
cbe882f2eb Convert Uploads to a QScrollArea also 2018-09-29 13:47:00 -07:00
Micah Lee
a121312156 Starting to implement the new Uploads UI, but not done 2018-09-28 22:03:48 -07:00
Micah Lee
6bbb918380 Refactor receive mode into using an info widget too 2018-09-28 16:00:22 -07:00
Micah Lee
75f0f55dd8 Modes now get to choose a new minimum window width when resizing 2018-09-28 15:30:37 -07:00
Micah Lee
7bd5f686a9 OnionShareGui.adjust_size now recursively runs adjustSize() on all widgets 2018-09-28 15:05:43 -07:00
Micah Lee
e1bd0b5bab Toggle showing uploads and downloads for both share and receive modes 2018-09-28 13:43:10 -07:00
Micah Lee
b9409795c8 Hide the uploads and downloads by default, and make the mode switcher hide before showing, to prevent weird window resizing 2018-09-28 13:18:18 -07:00
Micah Lee
6797fa18ab Refactor how Mode layouts work, so the downstream Mode has more control over the UI 2018-09-28 12:51:30 -07:00
Micah Lee
4127aa4d71 Move more mode-specific logic out of the Web class and into the approprate mode web classes 2018-09-21 11:36:19 -07:00
Micah Lee
916c5ed197 Refactor web even more to all of the share and receive web logic into ShareModeWeb and ReceiveModeWeb classes 2018-09-21 11:14:32 -07:00
Micah Lee
a42c70bcc0 Only add a stretch at the bottom of the layout in receive mode, not share mode 2018-09-19 19:38:29 -07:00
Micah Lee
1860fb3a92 Remove upload/download toggle buttons 2018-09-19 19:36:16 -07:00
Micah Lee
c7a9db84d8 Always show uploads and downloads 2018-09-19 19:00:12 -07:00
Micah Lee
ebd9990a6e Merge pull request #766 from mig5/clear_history_button
Add 'clear history' button to downloads and uploads windows
2018-09-19 18:36:50 -07:00
Micah Lee
d0e99f1a95 Merge pull request #762 from mig5/textwrap_upload_filename_widget
#704 wrap the upload filename label if too long
2018-09-19 18:33:30 -07:00
Miguel Jacq
10f94de237 Add 'clear history' button to downloads and uploads windows 2018-09-19 14:37:07 +10:00
Micah Lee
e9fdd623eb Merge pull request #756 from mig5/reset_uploads_on_share_restart
Close the upload widget on reset so that it properly disappears from the Uploads window
2018-09-18 17:58:25 -07:00
Miguel Jacq
baa75cc93c #704 wrap the upload filename label if too long 2018-09-19 10:57:12 +10:00
Micah Lee
31cdac46c6 Merge pull request #755 from mig5/upload_icon_updating
Increment/decrement the upload counters
2018-09-18 17:50:39 -07:00
Miguel Jacq
2bded19462 Fix the auto-scrolling to bottom of Download and Upload windows 2018-09-18 12:59:01 +10:00
Miguel Jacq
35154b8591 Close the upload widget on reset so that it properly disappears from the Uploads window. 2018-09-18 11:51:32 +10:00
Miguel Jacq
bc097c738e Increment/decrement the upload counters 2018-09-18 11:19:20 +10:00
Miguel Jacq
2896f1e3a8 Use the term 'upload' rather than 'download' in the Receive mode tooltip icons 2018-09-17 18:48:22 +10:00
Micah Lee
e6c4c672ea Merge branch 'upload_widget_overlap' of https://github.com/mig5/onionshare into mig5-upload_widget_overlap 2018-09-14 18:33:51 -07:00
Miguel Jacq
b53469fc7d Truncate the length of the uploaded file name if it is longer than the width of the Upload window 2018-09-01 09:20:50 +10:00
Miguel Jacq
757a6bac59 #707 Hide/show the primary action in Receive Mode when tor connection is lost/regained 2018-07-14 16:19:16 +10:00
Micah Lee
cf2a2076fe Remove TODO comment 2018-05-20 15:33:13 -07:00
Micah Lee
5bce32fc7d Make it so the open folder button works in Linux, with nautilus 2018-05-20 14:40:27 -07:00
Micah Lee
880a21086c Rename uploaded files 2018-05-20 14:12:53 -07:00
Micah Lee
06693bded2 Fixed "RuntimeError: dictionary changed size during iteration" exception while updating upload progress 2018-05-20 14:05:34 -07:00
Micah Lee
9f4e287b4b Remove REQUEST_UPLOAD_NEW_FILE_STARTED event, because it's not actually needed 2018-05-20 12:07:15 -07:00
Micah Lee
d8d1dc800d Allow file uploads to finish, and improve uploads styling 2018-05-19 22:58:55 -07:00
Micah Lee
28fe7a4cf5 Refactor uploads GUI so that each upload POST has one progess bar, and a list of files, with partial styling 2018-05-19 22:36:08 -07:00
Micah Lee
b8aa26d72e Start building File/Upload/Uploads GUI 2018-05-08 14:28:02 -07:00
Micah Lee
1db37e13f5 Start making Web events actually put Upload objects into Uploads 2018-05-07 23:07:11 -07:00
Micah Lee
26a94fa161 Make receive mode events just like share mode, and rename REQUEST_DOWNLOAD to REQUEST_SHARE 2018-05-07 22:15:29 -07:00
Micah Lee
de43cd22fa Create an Upload class within Uploads, and add methods to Uploads to add, update, cancel, and reset 2018-05-07 16:38:29 -07:00
Micah Lee
613c3dfbd6 Move all stylesheets definitions into Common, so now we no longer have blocks of css spread across the GUI code, and it's easier to re-use stylesheets 2018-05-07 16:21:22 -07:00
Micah Lee
4f52b4fc86 Make ReceiveMode start using Uploads 2018-05-07 15:44:04 -07:00
Micah Lee
925f96ad0a Rename some images to reuse in ReceiveMode, and make new upload window button images 2018-05-04 17:57:30 -07:00
Micah Lee
bc5f299ecd Start building Uploads widget 2018-05-04 16:26:54 -07:00
Micah Lee
b35bd976d7 Make receive mode info widget show when server is stated, hide when it is not started 2018-05-04 15:53:34 -07:00
Micah Lee
cc1baa74c5 Start creating the information widget for receive mode, and refactor for share mode 2018-05-03 09:29:54 -07:00
Micah Lee
71e2b8aab4 Make the "download page loaded" and "upload page loaded" messages displayed as systray notifications instead of in the status bar, and make it work for Receive Mode 2018-04-29 16:41:05 -07:00
Micah Lee
7f320d3535 Display desktop notification to the user when the receiver closes the server, and finish up closing the server 2018-04-29 15:49:18 -07:00