mirror of
https://review.haiku-os.org/haiku
synced 2025-02-19 03:59:11 +01:00
#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
47 lines
1.0 KiB
C++
47 lines
1.0 KiB
C++
/*
|
|
* Copyright 2010, Haiku, Inc. All Rights Reserved.
|
|
* Copyright 2009, Pier Luigi Fiorini.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _APPS_VIEW_H
|
|
#define _APPS_VIEW_H
|
|
|
|
#include <View.h>
|
|
|
|
#include <notification/AppUsage.h>
|
|
|
|
typedef std::map<BString, AppUsage *> appusage_t;
|
|
|
|
class BCheckBox;
|
|
class BTextControl;
|
|
class BColumnListView;
|
|
class BStringColumn;
|
|
class BDateColumn;
|
|
|
|
class NotificationsView : public BView {
|
|
public:
|
|
NotificationsView();
|
|
|
|
virtual void AttachedToWindow();
|
|
virtual void MessageReceived(BMessage* msg);
|
|
|
|
private:
|
|
status_t _LoadAppUsage();
|
|
void _PopulateApplications();
|
|
void _Populate(AppUsage* usage);
|
|
|
|
appusage_t fAppFilters;
|
|
BCheckBox* fBlockAll;
|
|
BTextControl* fSearch;
|
|
BColumnListView* fApplications;
|
|
BStringColumn* fAppCol;
|
|
BStringColumn* fAppEnabledCol;
|
|
BColumnListView* fNotifications;
|
|
BStringColumn* fTitleCol;
|
|
BDateColumn* fDateCol;
|
|
BStringColumn* fTypeCol;
|
|
BStringColumn* fAllowCol;
|
|
};
|
|
|
|
#endif // _APPS_VIEW_H
|