mirror of
https://review.haiku-os.org/haiku
synced 2025-02-12 00:28:19 +01:00
* 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
47 lines
1.0 KiB
C++
47 lines
1.0 KiB
C++
/*
|
|
* Copyright 2010, Haiku, Inc. All Rights Reserved.
|
|
* Copyright 2008-2009, Pier Luigi Fiorini. All Rights Reserved.
|
|
* Copyright 2004-2008, Michael Davidson. All Rights Reserved.
|
|
* Copyright 2004-2007, Mikael Eiman. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _APP_GROUP_VIEW_H
|
|
#define _APP_GROUP_VIEW_H
|
|
|
|
#include <vector>
|
|
|
|
#include <GroupView.h>
|
|
#include <String.h>
|
|
|
|
class BGroupView;
|
|
|
|
class NotificationWindow;
|
|
class NotificationView;
|
|
|
|
typedef std::vector<NotificationView*> infoview_t;
|
|
|
|
class AppGroupView : public BGroupView {
|
|
public:
|
|
AppGroupView(NotificationWindow* win, const char* label);
|
|
|
|
virtual void MouseDown(BPoint point);
|
|
virtual void MessageReceived(BMessage* msg);
|
|
void Draw(BRect updateRect);
|
|
|
|
bool HasChildren();
|
|
|
|
void AddInfo(NotificationView* view);
|
|
|
|
private:
|
|
void _ResizeViews();
|
|
|
|
BString fLabel;
|
|
NotificationWindow* fParent;
|
|
infoview_t fInfo;
|
|
bool fCollapsed;
|
|
BRect fCloseRect;
|
|
BRect fCollapseRect;
|
|
};
|
|
|
|
#endif // _APP_GROUP_VIEW_H
|