de9dcd41f8
#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
46 lines
1.1 KiB
C
46 lines
1.1 KiB
C
/*
|
|
* Copyright 2010, Haiku, Inc. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _NOTIFICATIONS_H
|
|
#define _NOTIFICATIONS_H
|
|
|
|
#include <Mime.h>
|
|
|
|
#define kNotificationServerSignature "application/x-vnd.Haiku-notification_server"
|
|
|
|
// Messages
|
|
const uint32 kNotificationMessage = 'nssm';
|
|
|
|
// Notification layout
|
|
enum infoview_layout {
|
|
TitleAboveIcon = 0,
|
|
AllTextRightOfIcon = 1
|
|
};
|
|
|
|
// Settings constants
|
|
extern const char* kSettingsDirectory;
|
|
extern const char* kFiltersSettings;
|
|
extern const char* kGeneralSettings;
|
|
extern const char* kDisplaySettings;
|
|
|
|
// General settings
|
|
extern const char* kAutoStartName;
|
|
extern const char* kTimeoutName;
|
|
|
|
// General default settings
|
|
const float kDefaultAutoStart = false;
|
|
const int32 kDefaultTimeout = 10;
|
|
|
|
// Display settings
|
|
extern const char* kWidthName;
|
|
extern const char* kIconSizeName;
|
|
extern const char* kLayoutName;
|
|
|
|
// Display default settings
|
|
const float kDefaultWidth = 300.0f;
|
|
const icon_size kDefaultIconSize = B_LARGE_ICON;
|
|
const infoview_layout kDefaultLayout = TitleAboveIcon;
|
|
|
|
#endif // _NOTIFICATIONS_H
|