2 * Copyright 2010-2017, Haiku, Inc. All Rights Reserved.
3 * Copyright 2008-2009, Pier Luigi Fiorini. All Rights Reserved.
4 * Copyright 2004-2008, Michael Davidson. All Rights Reserved.
5 * Copyright 2004-2007, Mikael Eiman. All Rights Reserved.
6 * Distributed under the terms of the MIT License.
8 #ifndef _APP_GROUP_VIEW_H
9 #define _APP_GROUP_VIEW_H
13 #include <GroupView.h>
14 #include <Messenger.h>
19 class NotificationWindow
;
20 class NotificationView
;
22 typedef std::vector
<NotificationView
*> infoview_t
;
24 class AppGroupView
: public BGroupView
{
26 AppGroupView(const BMessenger
& messenger
, const char* label
);
28 virtual void MouseDown(BPoint point
);
29 virtual void MessageReceived(BMessage
* msg
);
30 void Draw(BRect updateRect
);
33 int32
ChildrenCount();
35 void AddInfo(NotificationView
* view
);
36 void SetPreviewModeOn(bool enabled
);
38 const BString
& Group() const;
39 void SetGroup(const char* group
);
42 void _DrawCloseButton(const BRect
& updateRect
);
45 BMessenger fMessenger
;
55 #endif // _APP_GROUP_VIEW_H