Notifications preflet and notification_server

Operating Systems / Haiku - Brian Hill [tycho.email] - 23 September 2017 11:41 EDT

Notifications preflet:-Use sliders instead of text fields for width and timeout-Remove icon size choice (mini icon looks horrible)-Consolidate both "Enable" checkboxes into one-Fix Revert button, remove Apply button, add Defaults button-All changes to settings saved immediately-Live example notification message shown when settings changes are made-Add setting for individual apps to specify whether their notifications should be muted-Remove history list (to be implemented later)

BNotification class:-BNotification records the signature and name of application that created it-New functions to get source application signature and name

Notification Server:-Notification pop up view layout fixes and bold font size fix-Remove notifications history from AppUsage class (will be saved in cache instead)-Remove vector of NotificationView objects which isn't needed-Get source application info from notification object, not the received message which is not reliable

6aa0587 Notifications preflet and notification_server
headers/os/app/Notification.h | 7 +-
headers/private/notification/AppUsage.h | 19 +-
headers/private/notification/Notifications.h | 17 +-
src/kits/app/Notification.cpp | 53 ++-
src/preferences/notifications/AppRefFilter.cpp | 66 ++++
src/preferences/notifications/AppRefFilter.h | 21 ++
src/preferences/notifications/DisplayView.cpp | 152 ---------
src/preferences/notifications/DisplayView.h | 34 --
src/preferences/notifications/GeneralView.cpp | 308 +++++++++--------
src/preferences/notifications/GeneralView.h | 35 +-
src/preferences/notifications/Jamfile | 11 +-
src/preferences/notifications/Notifications.cpp | 2 +-
.../notifications/NotificationsConstants.h | 25 ++
.../notifications/NotificationsView.cpp | 377 ++++++++++++++-------
src/preferences/notifications/NotificationsView.h | 50 ++-
src/preferences/notifications/PrefletView.cpp | 41 +--
src/preferences/notifications/PrefletView.h | 14 +-
src/preferences/notifications/PrefletWin.cpp | 157 +++++++--
src/preferences/notifications/PrefletWin.h | 18 +-
src/preferences/notifications/SettingsHost.h | 4 +-
src/preferences/notifications/SettingsPane.cpp | 13 +-
src/preferences/notifications/SettingsPane.h | 9 +-
src/servers/notification/AppGroupView.cpp | 58 ++--
src/servers/notification/AppGroupView.h | 11 +-
src/servers/notification/AppUsage.cpp | 97 ++----
src/servers/notification/NotificationServer.cpp | 7 +-
src/servers/notification/NotificationServer.h | 2 +-
src/servers/notification/NotificationView.cpp | 65 ++--
src/servers/notification/NotificationView.h | 17 +-
src/servers/notification/NotificationWindow.cpp | 202 +++--------
src/servers/notification/NotificationWindow.h | 25 +-
31 files changed, 1041 insertions(+), 876 deletions(-)

Upstream: cgit.haiku-os.org


  • Share