Commit Graph
28 Commits
Author SHA1 Message Date
Kenneth Hsu 2aa76881a5 Mark fields that don't need to be reassigned as readonly.
This makes it explicit at compile-time that these fields should not be
reassigned outside the constructor.
2019-10-19 13:59:22 -07:00
Kenneth Hsu 70be230c29 Remove unused IMenuItem.SetEnabled method. 2019-04-27 16:42:48 -07:00
Kenneth Hsu 0379eb417e Remove unused ImageToGtk method. 2019-04-27 16:35:24 -07:00
Kenneth Hsu bd12d98210 Fix GTK notification icons.
Previously, the icon variable was unused and the information icon was
always displayed. Now, we display different icons for information,
warning, and error notifications.
2019-04-17 20:01:19 -07:00
Kenneth Hsu bb4e5a1d18 Use consistent comment for no-op methods. 2018-12-09 21:42:40 -08:00
Kenneth Hsu e91e79e884 Convert write-only IMenuItem.Icon property to method.
Write-only properties are confusing and the behavior is better
implemented as a method, which more clearly conveys the write-only
semantics.
2018-12-09 20:23:05 -08:00
Kenneth Hsu 97dbfadfb2 Convert write-only IMenuItem.Default property to method.
Write-only properties are confusing and the behavior is better
implemented as a method, which more clearly conveys the write-only
semantics.
2018-12-09 20:23:05 -08:00
Kenneth Hsu ee9df1bf75 Convert write-only IMenuItem.Enabled property to method.
Write-only properties are confusing and the behavior is better
implemented as a method, which more clearly conveys the write-only
semantics.
2018-12-09 20:23:05 -08:00
Kenneth Hsu 3718a8deda Convert write-only IMenuItem.Text property to method.
Write-only properties are confusing and the behavior is better
implemented as a method, which more clearly conveys the write-only
semantics.
2018-12-09 20:23:05 -08:00
Kenneth Hsu cd72cc4bd5 Convert write-only TrayIconBase.Icon property to method.
Write-only properties are confusing and the behavior is better
implemented as a method, which more clearly conveys the write-only
semantics.
2018-12-08 10:39:06 -08:00
verhoek 8bb406cd15 Migrated to use the platform class. 2018-11-02 22:17:16 +01:00
Kenneth Skovhede e1c7a06591 Added the ENABLE_GTK preprocessor directive which is more telling than __WindowsGTK__.
Added help output that tells what toolkits are supported.
2017-05-23 10:17:55 +02:00
Kenneth Skovhede 93bd5880d9 Updated the way icons are loaded on Linux with Gtk and AppIndicator trayicons.
The icons are now loaded from SVG to give the best possible resolution.
This fixes #1710
This fixes #2034
2016-10-27 10:35:02 +02:00
Kenneth Skovhede 46a3d51507 Changed the way icons are loaded to hopefully get pretty icons on Windows.
This should fix #1646
2016-03-21 23:52:04 +01:00
Kenneth Skovhede 8d13e698eb Updated copyright notices 2015-01-20 21:44:52 +01:00
Kenneth Skovhede 4310844961 Implemented desktop notifications 2014-08-04 22:16:15 +02:00
Kenneth Skovhede d74730cbba Changed name of event in trayicon 2014-08-04 20:38:43 +02:00
Kenneth Skovhede b54a2f79c1 More OSX-like look for the GTK version of the tray icon and menu 2014-07-07 01:33:40 +02:00
Kenneth Skovhede 07f96071ab Added method to call back on the UI thread for events invoked in the http listener thread. 2014-04-09 15:59:08 +02:00
Kenneth Skovhede 922e06f0ca Fixed opening the status window on left-click on the tray icon 2014-03-28 13:19:39 +01:00
Kenneth Skovhede b0c95312d5 Improved compile experience on windows a bit 2014-03-20 15:31:01 +01:00
Kenneth Skovhede dcf5e12ab9 Changed from using the Properties Resource manager to using manually managed image resources 2014-03-10 12:27:08 +01:00
Kenneth Skovhede d14ec9432f Rewrote the storage of backup setups 2013-11-23 14:26:36 +01:00
kenneth@hexad.dk a4b40763c8 Simplified the TrayIcon
git-svn-id: https://duplicati.googlecode.com/svn/trunk@1352 59da171f-624f-0410-aa54-27559c288bec
2012-07-02 18:07:36 +00:00
kenneth@hexad.dk 9c901a2eda Committed temporary work on the edit dialogs
git-svn-id: https://duplicati.googlecode.com/svn/trunk@1244 59da171f-624f-0410-aa54-27559c288bec
2012-05-05 20:13:33 +00:00
kenneth@hexad.dk ba44c96a0c There is now basic UI functionality for windows, complete with callbacks from the UI to the tray icon, and a connection to the server.
git-svn-id: https://duplicati.googlecode.com/svn/trunk@1194 59da171f-624f-0410-aa54-27559c288bec
2012-03-29 18:02:07 +00:00
kenneth@hexad.dk eeee931ea0 All tray icons are now working.
This changes all implementations to run off the TrayIconBase, so there is only a single place to maintain the tray icon and menus.
WinForms and Gtk has been updated to use this new implementation.
The ApplicationIndicator has been added so the TrayIcon now shows under Ubuntu Unity as well.
Cocoa support has been added so there is now a NSStatusItem. In order to debug this, a special MonoDevelop-MonoMac project has been added, but this is not used in the solution. The project just loads the regular implementation, but the project builds a .app package and debugs from it. Everything should build on a stock Windows machine with VS, and Ubuntu/OSX with MonoDevelop (needs WinForms to build, but not to run).

The TrayIcon icons are now limited to Idle,Paused,Running and an Error/Warning notifier overlay, giving a total of six icons.
The graphics needs to be updated to reflect this, and the server SuggestedStatusIcon should be changed to only output one of these states.

git-svn-id: https://duplicati.googlecode.com/svn/branches/v2.0@1039 59da171f-624f-0410-aa54-27559c288bec
2011-11-28 11:05:42 +00:00
kenneth@hexad.dk 7432401bc1 Fixed a Gtk tray icon running of the http server, simplified some reporting from the server to reduce the amount of logic in each tray icon implementation.
Cocoa -> You are next!

git-svn-id: https://duplicati.googlecode.com/svn/branches/v2.0@1032 59da171f-624f-0410-aa54-27559c288bec
2011-11-23 20:52:28 +00:00