Commit Graph

54 Commits

Author SHA1 Message Date
131b4d1649 Use explicit c'tor in all Qt Widgets GUI related classes 2024-04-12 02:35:18 +02:00
93b5d66875 Allow browsing remote/global files 2024-04-05 01:30:00 +02:00
6a16333dfd Update statistics icons dynamically when color palette changes 2023-06-08 14:04:16 +02:00
58b8a4e540 Allow showing Syncthing UI in Chromium-based browser in "app mode"
See https://github.com/Martchus/syncthingtray/issues/178
2023-03-27 20:28:52 +02:00
10c656cc5e Show error when settings cannot be restored or saved
* State the error type and location of the relevant file
* Help debugging problems related to settings
2023-02-17 19:20:10 +01:00
802937264b Simplify code by removing dialog parent 2023-01-28 18:35:50 +01:00
71c56edfd8 Allow showing Syncthing Tray as normal application/window
* Remove experimental pinning feature again and instead allow using a
  normal window
    * Pinning made it inconvenient to close the (frameless) window again
    * Pinning required hiding/showing the window which didn't look very
      nice (and setting flags directly via `QWindow` didn't work as well)
* As normal application/window positioning issues on Wayland are less
  problematic (and those aren't going to be fixed any time soon, if at all)
2022-11-29 23:06:15 +01:00
ace27f9e9c Fix saving pinned state persistently 2022-10-07 23:15:25 +02:00
4896261ef9 Allow opening launcher settings from wizard in case of an error to check logs 2022-10-02 20:33:07 +02:00
bd5b93d311 Implement completion of wizard
Applying settings is still only implemented for one of the cases.
2022-10-01 22:25:33 +02:00
442aee992a Unify code for showing wizard 2022-10-01 20:25:21 +02:00
66948336d5 Allow to disable tab texts (to shown only icons anymore)
When configuring a smaller size for the Qt Widgets based UI it might be
preferred to show only the icons instead of having the tab buttons
overflow.
2022-09-05 21:56:22 +02:00
394af9bce7 Improve first launch message in preparation for adding a setup wizard 2022-08-06 21:08:55 +02:00
2139b204e3 Determine whether to use bright custom colors automatically 2022-07-16 19:28:31 +02:00
0b801bc505 Make internal errors also accessible when starting with --windowed
* Show the button for the internal errors dialog in the tray widget like it
  is done when the `UNIFY_TRAY_MENUS` config is activated
2021-10-09 01:14:54 +02:00
8c4e2168bc Avoid misplaced/clipped dialogs when default dialog size doesn't fit screen
https://github.com/Martchus/syncthingtray/issues/89
2021-03-24 14:40:59 +01:00
975e86c895 Allow backend libraries to be used from other projects
So far the backend libraries' include paths were relative within this
repository. This means the header files could not be used at their
installed location.

This change replaces them with "<>" includes to fix that problem and adds
a new include directory so building everything at once still works.

With this change it should be easier to actually split some parts into
another repository if this one would become too big.
2021-01-25 19:48:11 +01:00
57e9865ace Sort devices by name 2020-10-20 19:36:02 +02:00
a6727b0fa7 Show the connection config name in tooltip when displaying multiple icons 2020-10-19 18:33:10 +02:00
4078e6ff2a Prevent crash deleting s_dialogParent 2020-10-18 17:13:52 +02:00
2c1dbff82b Allow specifiying multiple connection configurations 2020-10-18 16:28:17 +02:00
3e1beaa11d Sort directories by name/ID
* Use the name as sorting criteria and fall back to the ID if there's no
  name
* Use new SyncthingSortFilterDirectoryModel also for Plasmoid's filtering
* See https://github.com/Martchus/syncthingtray/issues/75
2020-10-18 15:48:02 +02:00
bcb2b49b72 Don't use lower-case Qt macros 2020-03-08 13:50:32 +01:00
13e0732168 Show context menu on recent changes view 2020-01-23 20:07:11 +01:00
6026339c83 Show recent changes 2020-01-18 16:43:13 +01:00
19816437ea Use a different parent for dialogs
This allows customizing the tray menu/widget using style sheets
without affecting the dialogs.
2019-07-31 20:47:19 +02:00
9b8191c105 Use consistent prefix for static member variables 2019-07-27 15:11:50 +02:00
1bdba31c70 Improve behavior under Wayland
* Add workaround for using QCursor::pos()
* Set window flags and parent of TrayMenu to it is shown
  like a context menu
2019-07-27 15:04:14 +02:00
708334443f Add option to unify tray menus
* Don't create context menu
* Show the "Close" action and the "Internal errors"
  action in the tray widget
* Use this by default on Mac OS
2019-07-17 19:07:58 +02:00
c521e2f808 Apply clang-format 2019-07-13 13:21:25 +02:00
2112b00347 Allow to show start/stop button for launcher 2019-07-12 20:32:55 +02:00
64473df5ba Adapt to changes in c++utilities 2019-06-10 22:48:26 +02:00
3bcdf26cca Show global statistics on widgets-based GUI 2019-02-18 00:35:32 +01:00
8b6cf6a282 Remove unused function in TrayWidget 2018-12-23 21:17:24 +01:00
533a5d0939 Use override 2018-10-10 21:26:46 +02:00
49b33e5afe Ensure errors on first connection after startup are handled 2018-05-15 22:01:03 +02:00
988765f2ba Show new dev/dir notifications in usual tray icon and Plasmoid 2018-05-01 22:27:03 +02:00
146d4870e4 Refactor preventing unwanted error messages
* See https://github.com/Martchus/syncthingtray/issues/15
* Not tested yet
2018-04-02 20:35:30 +02:00
c9039ff6aa Ensure webview defs are present 2018-01-27 23:34:36 +01:00
79fe97d952 Refactor notifications
* Use SyncthingNotifier class
* Show 'Sync complete' on FolderCompletion event
* Add extra structure for stats
2018-01-27 23:27:50 +01:00
69ffaeb1f3 Apply tidy after updating to clang-format 5.0.0
The behavior of clang-format slightly changed in Clang 5.0.0:
http://releases.llvm.org/5.0.0/tools/clang/docs/ReleaseNotes.html#clang-format
2017-09-17 21:48:15 +02:00
7b19be01f2 tray: Allow specifying name of initial connection via CLI
This includes refactoring TrayWidget::applySettings() which
is now a member function and only affects the current instance.

This prevents applying settings on every instance every time
a new tray widget is created.

To apply settings for all tray widgets, the static function
TrayWidget::applySettingsOnAllInstances() is used instead.
2017-08-09 01:11:47 +02:00
732a5fdd8d Apply clang-format 2017-05-01 03:34:43 +02:00
49ff5a7b65 Move widgets from tray app to separate lib
So settings pages, web view and other widgets
can be used in other components such as the
Dolphin plugin and Plasmoid, too.
2017-04-23 18:31:18 +02:00
0dbfda37aa Use web view defs provided by qtutilities 2017-03-14 23:24:52 +01:00
Marius Kittler
5101872532 Allow pausing/resuming dirs in GUI 2017-02-23 15:57:17 +01:00
b2a66c806b Don't connect to local instance when not running
Prevent connection attempt to local instance at startup
or after applying settings when Syncthing systemd unit
isn't running
2017-01-12 22:18:40 +01:00
3cadd8cbcb Improve systemd integration
* Allow using systemd unit status to better handle
  reconnect attempts to local instance
* Misc adjustments
2016-12-27 16:22:37 +01:00
6c99293087 Allow triggering current tray 2016-12-26 19:50:10 +01:00
0ecb26a4cf Allow dismissing new notifications 2016-12-26 19:19:10 +01:00