History log of /haiku/src/servers/notification/AppGroupView.cpp
Revision Date Author Comments
# 62c7ec5c 23-Nov-2018 Augustin Cavalier <waddlesplash@gmail.com>

Fix various instances of -Wset-but-unused.

Largely no functional change; most of these are just
removing the unused variables.


# a657e677 24-Sep-2017 Brian Hill <supernova@tycho.email>

Notification preflet and server changes

Remove unneeded classes from preflet jamfile
Fix some notification layout and bold text issues


# 6aa05872 23-Sep-2017 Brian Hill <supernova@tycho.email>

Notifications preflet and notification_server

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


# 56a63697 16-Apr-2015 Michael Lotz <mmlr@mlotz.ch>

notification_server: Don't remove the views from the layout.

Removing the view from the window and deleting it is fine. This is a
quick fix for #11976. The underlaying issue of how BLayout::RemoveView
should work still needs to be fixed.


# f6afd3e9 07-Mar-2013 Ryan Leavengood <leavengood@gmail.com>

Improve alignment and layout of the notifications.

Implements diver's mockup from #8566.


# 82a67460 05-Nov-2012 Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>

Use Web+ tabs close button

Fixes #9566


# 91b52305 27-Mar-2012 Alex Wilson <yourpalal2@gmail.com>

Resolve TODO about possible use after free bug.


# 3c7caf81 27-Mar-2012 Alex Wilson <yourpalal2@gmail.com>

Fix a bug that caused some NotificationViews to be double-shown.

This bug affected views added while the window was hidden, and would
result in that view not being hidden when the group was collapsed for
the first time.


# d19e651f 21-Jan-2012 Alex Wilson <yourpalal2@gmail.com>

Expand click rects when checking for close/collapse clicks.


# 259ffc02 20-Jan-2012 Alex Wilson <yourpalal2@gmail.com>

Style cleanup in notification_server: #includes


# 617ee9ee 22-Feb-2012 Alex Wilson <yourpalal2@gmail.com>

be_control_look is never NULL, so we don't need backup drawing code.


# 002fd626 14-Jan-2012 Alex Wilson <yourpalal2@gmail.com>

Fix NotificationWindow's collapsing bug. (#8288)

When a BTwoDimensionalLayout has no visible elements, it has a max size
of B_SIZE_UNLIMITED in both dimensions. In this case, we want it to
shrink down to just the insets.


# 8090bd4a 14-Jan-2012 Alex Wilson <yourpalal2@gmail.com>

Add a TODO about a possible use after free bug.


# 80f96f76 14-Jan-2012 Alex Wilson <yourpalal2@gmail.com>

In NotificationWindow, have AppGroupViews get deleted upon expiry.

I.e. once there are no more notifications in the AppGroupView, we get
the NotificationWindow to delete it. As a result of this change, we no
longer need the AppGroupView.cpp _ResizeViews() method.


# cbdd108a 14-Jan-2012 Alex Wilson <yourpalal2@gmail.com>

In NotificationWindow, delete AppGroupViews when closed.

This is preferable to having them kick around for as long as the server
is running. They don't yet close when all of the notifications for the
view time out, that's coming next.


# 5c6b9eb0 23-Feb-2012 Jerome Duval <jerome.duval@gmail.com>

Some fixes for GCC 4.6 warning: variable set but not used


# 6da19b09 22-Jan-2012 Sergei Reznikov <reznikov.sergei@gmail.com>

Fix Notification Group header text drawing

* This fixes the drawing issues in the "font aliasing" area that are
appeared as small white points on the gray background.

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>


# 3b9ae746 03-Nov-2011 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Remove unused code. Thanks to ummccoullough for noticing.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43171 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 44c6e69b 03-Nov-2011 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Even more work on notification window:
* Use the layout kit. That makes the code simpler.
* Group headers now look like deskbar team entries. I had the answer just under my eyes all the time.
* Folding and closing a group are back. However, folding does not work yet.
* We need to select a better default "failure" color, as red looks a bit aggressive.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43170 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e0890a26 02-Nov-2011 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Fix the layouting of notifications again.

I'm not sure about the ApGroupView being (and looking like) a BBox.
Thoughts about that ?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43119 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4ec6c3a0 02-Nov-2011 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Merge patch by plfiorini :

Some changes to the API for notifications.
* Don't go through be_roster to send a notification, but use Notification->Send() instead.
* Rename App to Group to make the purpose clearer

And some changes to the notification code itself:
* Use the Notification class as the way to convey informations about a notification. Allows easier extension of this class
* Code cleanup
* Use of the layout kit for the notify window

Unfortunately, the latter part clashes quite a bit with the changes I already did to the notification window, so it's now quite broken. Working on that next, but I wanted to separate that work from the patch ...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43114 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0e07be06 04-Sep-2011 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

More fixes to the notification windows :
* Rewrite the positionning code properly. There's a remaining bug when deskbar is on the left, but I think it comes from DecoratorFrame()
Tweak the position of UI elements :
* Shift the close cross a bit
* Make the icon stripe the same as in alerts, and align the icon the same way
* Adjust the text position, too
AppGroupView:
* remove the remaining "lines" in collapsed mode (looked like artifacts)
* Grey out the title in collapsed mode


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42714 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9dcd41a8 06-Aug-2011 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Some tweakings to the notificationsystem to make it look more like a regular alert.
Feel free to improve on it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42586 a95241bf-73f2-0310-859d-f6bbb57e9c96


# de9dcd41 27-May-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by plfiorini: Integration of InfoPopper as a system service. See ticket
#1245. There are some TODOs outlined in the ticket, but they will be much
easier to review as individual patches against trunk, versus as a new version
of the huge patch.

I've messed a lot with src/servers/notification/NotificationsView.cpp in order
to resolve a crash I was getting when testing this thing (rewrote line
wrapping). I've also replaced the icons with the one that zuMi did long ago.

Thanks, plfiorini, for working on this code as much as you did!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36949 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 56a63697ae2471084f4fa7ecc753f2a6582ccef2 16-Apr-2015 Michael Lotz <mmlr@mlotz.ch>

notification_server: Don't remove the views from the layout.

Removing the view from the window and deleting it is fine. This is a
quick fix for #11976. The underlaying issue of how BLayout::RemoveView
should work still needs to be fixed.


# f6afd3e9f7b5580118731286dbc21a333d298458 07-Mar-2013 Ryan Leavengood <leavengood@gmail.com>

Improve alignment and layout of the notifications.

Implements diver's mockup from #8566.


# 82a674605b14403f45c28163480890ef16164476 05-Nov-2012 Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>

Use Web+ tabs close button

Fixes #9566


# 91b523054febe7c9bea327e9596e8da5ff94f20e 27-Mar-2012 Alex Wilson <yourpalal2@gmail.com>

Resolve TODO about possible use after free bug.


# 3c7caf81db30da3f538525d11d60a1c65b8b4ab6 27-Mar-2012 Alex Wilson <yourpalal2@gmail.com>

Fix a bug that caused some NotificationViews to be double-shown.

This bug affected views added while the window was hidden, and would
result in that view not being hidden when the group was collapsed for
the first time.


# d19e651f97c678f334ed212699f7d0f4f9676309 21-Jan-2012 Alex Wilson <yourpalal2@gmail.com>

Expand click rects when checking for close/collapse clicks.


# 259ffc02528c0a87b4c5c7a4673efbd4eb27b4b1 20-Jan-2012 Alex Wilson <yourpalal2@gmail.com>

Style cleanup in notification_server: #includes


# 617ee9eef69de6339660ce1faef5e6367dfa40df 22-Feb-2012 Alex Wilson <yourpalal2@gmail.com>

be_control_look is never NULL, so we don't need backup drawing code.


# 002fd626d6f0be3261121d320ef8a411af389797 14-Jan-2012 Alex Wilson <yourpalal2@gmail.com>

Fix NotificationWindow's collapsing bug. (#8288)

When a BTwoDimensionalLayout has no visible elements, it has a max size
of B_SIZE_UNLIMITED in both dimensions. In this case, we want it to
shrink down to just the insets.


# 8090bd4a30aa3845a5a7bdc378feadb8f6de3256 14-Jan-2012 Alex Wilson <yourpalal2@gmail.com>

Add a TODO about a possible use after free bug.


# 80f96f761c949c24266a8f96d5e7d8ba83cb69eb 14-Jan-2012 Alex Wilson <yourpalal2@gmail.com>

In NotificationWindow, have AppGroupViews get deleted upon expiry.

I.e. once there are no more notifications in the AppGroupView, we get
the NotificationWindow to delete it. As a result of this change, we no
longer need the AppGroupView.cpp _ResizeViews() method.


# cbdd108a09ab47c523a6debd679eddbe35d1b15c 14-Jan-2012 Alex Wilson <yourpalal2@gmail.com>

In NotificationWindow, delete AppGroupViews when closed.

This is preferable to having them kick around for as long as the server
is running. They don't yet close when all of the notifications for the
view time out, that's coming next.


# 5c6b9eb00d0d623c12f72eb82a471cb4c71f4f33 23-Feb-2012 Jerome Duval <jerome.duval@gmail.com>

Some fixes for GCC 4.6 warning: variable set but not used


# 6da19b0993ba99845efbd7bdf2fb865eef1a53f3 22-Jan-2012 Sergei Reznikov <reznikov.sergei@gmail.com>

Fix Notification Group header text drawing

* This fixes the drawing issues in the "font aliasing" area that are
appeared as small white points on the gray background.

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>


# 3b9ae7468045bba6d8135672993cf45837be7ac9 03-Nov-2011 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Remove unused code. Thanks to ummccoullough for noticing.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43171 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 44c6e69bd178b3fcfc48b180b394d4075a89d091 03-Nov-2011 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Even more work on notification window:
* Use the layout kit. That makes the code simpler.
* Group headers now look like deskbar team entries. I had the answer just under my eyes all the time.
* Folding and closing a group are back. However, folding does not work yet.
* We need to select a better default "failure" color, as red looks a bit aggressive.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43170 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e0890a26f4d0ff7424358130b8e439bcbcd3229b 02-Nov-2011 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Fix the layouting of notifications again.

I'm not sure about the ApGroupView being (and looking like) a BBox.
Thoughts about that ?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43119 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4ec6c3a042bbc8e2e94b2ccd19c1e9289232d1e4 02-Nov-2011 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Merge patch by plfiorini :

Some changes to the API for notifications.
* Don't go through be_roster to send a notification, but use Notification->Send() instead.
* Rename App to Group to make the purpose clearer

And some changes to the notification code itself:
* Use the Notification class as the way to convey informations about a notification. Allows easier extension of this class
* Code cleanup
* Use of the layout kit for the notify window

Unfortunately, the latter part clashes quite a bit with the changes I already did to the notification window, so it's now quite broken. Working on that next, but I wanted to separate that work from the patch ...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43114 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0e07be0657199891e6bb66383b722763223e9f5c 04-Sep-2011 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

More fixes to the notification windows :
* Rewrite the positionning code properly. There's a remaining bug when deskbar is on the left, but I think it comes from DecoratorFrame()
Tweak the position of UI elements :
* Shift the close cross a bit
* Make the icon stripe the same as in alerts, and align the icon the same way
* Adjust the text position, too
AppGroupView:
* remove the remaining "lines" in collapsed mode (looked like artifacts)
* Grey out the title in collapsed mode


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42714 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9dcd41a8afd79a7743783f689707d6a4a62e25f6 06-Aug-2011 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Some tweakings to the notificationsystem to make it look more like a regular alert.
Feel free to improve on it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42586 a95241bf-73f2-0310-859d-f6bbb57e9c96


# de9dcd41f8865290849ce03385126dca1cd43a49 27-May-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by plfiorini: Integration of InfoPopper as a system service. See ticket
#1245. There are some TODOs outlined in the ticket, but they will be much
easier to review as individual patches against trunk, versus as a new version
of the huge patch.

I've messed a lot with src/servers/notification/NotificationsView.cpp in order
to resolve a crash I was getting when testing this thing (rewrote line
wrapping). I've also replaced the icons with the one that zuMi did long ago.

Thanks, plfiorini, for working on this code as much as you did!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36949 a95241bf-73f2-0310-859d-f6bbb57e9c96