18 import Ubuntu.Components 0.1
19 import Unity.Notifications 1.0 as UnityNotifications
21 import
"../Components"
26 objectName:
"notificationList"
30 property bool useModal: snapDecisionProxyModel.count > 0
32 SortFilterProxyModel {
33 id: snapDecisionProxyModel
35 model: notificationList.model
36 filterRole: UnityNotifications.ModelInterface.RoleType
37 filterRegExp: RegExp(UnityNotifications.Notification.SnapDecision)
40 property bool topmostIsFullscreen:
false
41 spacing: topmostIsFullscreen ? 0 : units.gu(.5)
44 currentIndex: (currentIndex < 1 && count > 1) ? 1 : -1
46 delegate: Notification {
47 objectName:
"notification" + index
54 iconSource: model.icon
55 secondaryIconSource: model.secondaryIcon
56 summary: model.summary
58 actions: model.actions
59 notificationId: model.id
60 notification: notificationList.model.getRaw(notificationId)
61 maxHeight: notificationList.height
62 margins: notificationList.margin
66 layer.enabled: add.running ||
remove.running || populate.running
68 Component.onCompleted: {
70 notificationList.topmostIsFullscreen = fullscreen
74 onFullscreenChanged: {
77 notificationList.topmostIsFullscreen = fullscreen
82 populate: Transition {
83 UbuntuNumberAnimation {
86 duration: UbuntuAnimation.SnapDuration
91 UbuntuNumberAnimation {
94 duration: UbuntuAnimation.SnapDuration
99 UbuntuNumberAnimation {
105 displaced: Transition {
106 UbuntuNumberAnimation {
108 duration: UbuntuAnimation.SnapDuration