-
Notifications
You must be signed in to change notification settings - Fork 0
/
smallsbar.h
49 lines (40 loc) · 1.26 KB
/
smallsbar.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* Copyright (c) 2012-2022 Filip "widelec-BB" Maryjanski, BlaBla group.
* All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef __SMALLSBAR_H__
#define __SMALLSBAR_H__
#include <proto/intuition.h>
#include <proto/utility.h>
#include <proto/muimaster.h>
#include <clib/alib_protos.h>
extern struct MUI_CustomClass *SmallSBarClass;
struct MUI_CustomClass *CreateSmallSBarClass(void);
void DeleteSmallSBarClass(void);
struct SBarControl
{
struct SignalSemaphore semaphore;
Object *app;
struct Task *sbarTask;
ULONG sbarSignal;
struct Picture *actPic;
BOOL unread;
struct Picture *unreadPic;
};
/* methods */
#define SBRM_ShowMenu 0xCEDD0000
/* attrs */
#define SBRA_RightClick 0xCEDD1000
/* menu results */
#define SBR_MENU_SHOW_LIST 0x000001
#define SBR_MENU_STATUS_AVAILABLE 0x000002
#define SBR_MENU_STATUS_AWAY 0x000003
#define SBR_MENU_STATUS_INVISIBLE 0x000004
#define SBR_MENU_STATUS_UNAVAILABLE 0x000005
#define SBR_MENU_STATUS_FFC 0x000006
#define SBR_MENU_STATUS_DND 0x000007
#define SBR_MENU_STATUS_DESCRIPTION 0x000008
#define SBR_MENU_QUIT 0x000009
#define SBR_MENU_TALK_TAB 0x0000FF
#endif /* __SMALLSBAR_H__ */