Mercurial > ~mikael > mcabber > hg
comparison mcabber/screen.h @ 13:4c3d7b8a29c4
[/trunk] Changeset 28 by mikael
* Display pending message indicator in the roaster.
Not very good yet, because it isn't refreshed automatically.
author | mikael |
---|---|
date | Wed, 23 Mar 2005 20:26:08 +0000 |
parents | b8815158a45d |
children | c87d8adc9100 |
comparison
equal
deleted
inserted
replaced
12:70ca5b9c648a | 13:4c3d7b8a29c4 |
---|---|
1 #ifndef __SCREEN_H__ | 1 #ifndef __SCREEN_H__ |
2 #define __SCREEN_H__ 1 | 2 #define __SCREEN_H__ 1 |
3 | 3 |
4 #include <ncurses.h> | 4 #include <ncurses.h> |
5 #include <panel.h> | |
6 | |
7 #include "list.h" | |
5 | 8 |
6 #define COLOR_POPUP 1 | 9 #define COLOR_POPUP 1 |
7 #define COLOR_GENERAL 3 | 10 #define COLOR_GENERAL 3 |
8 #define COLOR_BD_CONSEL 4 | 11 #define COLOR_BD_CONSEL 4 |
9 #define COLOR_BD_CON 5 | 12 #define COLOR_BD_CON 5 |
13 #define LOG_WIN_HEIGHT (5+2) | 16 #define LOG_WIN_HEIGHT (5+2) |
14 #define CHAT_WIN_HEIGHT (maxY-1-LOG_WIN_HEIGHT) | 17 #define CHAT_WIN_HEIGHT (maxY-1-LOG_WIN_HEIGHT) |
15 | 18 |
16 #define INPUTLINE_LENGTH 1024 | 19 #define INPUTLINE_LENGTH 1024 |
17 | 20 |
21 | |
22 typedef struct _window_entry_t { | |
23 WINDOW *win; | |
24 PANEL *panel; | |
25 char *name; | |
26 int nlines; | |
27 char **texto; | |
28 int pending_msg; | |
29 struct list_head list; | |
30 } window_entry_t; | |
31 | |
18 void scr_InitCurses(void); | 32 void scr_InitCurses(void); |
19 void scr_DrawMainWindow(void); | 33 void scr_DrawMainWindow(void); |
20 void scr_TerminateCurses(void); | 34 void scr_TerminateCurses(void); |
21 void scr_CreatePopup(char *title, char *texto, int corte, int type, | 35 void scr_CreatePopup(char *title, char *texto, int corte, int type, |
22 char *returnstring); | 36 char *returnstring); |
25 void scr_WriteMessage(int sock); | 39 void scr_WriteMessage(int sock); |
26 void scr_WriteIncomingMessage(char *jidfrom, char *text); | 40 void scr_WriteIncomingMessage(char *jidfrom, char *text); |
27 void scr_RoolWindow(void); | 41 void scr_RoolWindow(void); |
28 void scr_ShowBuddyWindow(void); | 42 void scr_ShowBuddyWindow(void); |
29 void scr_LogPrint(const char *fmt, ...); | 43 void scr_LogPrint(const char *fmt, ...); |
44 window_entry_t *scr_SearchWindow(char *winId); | |
30 | 45 |
31 WINDOW *scr_GetRosterWindow(void); | 46 WINDOW *scr_GetRosterWindow(void); |
32 WINDOW *scr_GetStatusWindow(void); | 47 WINDOW *scr_GetStatusWindow(void); |
33 WINDOW *scr_GetInputWindow(void); | 48 WINDOW *scr_GetInputWindow(void); |
34 | 49 |