0
|
1 #ifndef __SCREEN_H__ |
|
2 #define __SCREEN_H__ 1 |
|
3 |
|
4 #include <ncurses.h> |
13
|
5 #include <panel.h> |
|
6 |
|
7 #include "list.h" |
0
|
8 |
|
9 #define COLOR_POPUP 1 |
|
10 #define COLOR_GENERAL 3 |
|
11 #define COLOR_BD_CONSEL 4 |
|
12 #define COLOR_BD_CON 5 |
|
13 #define COLOR_BD_DESSEL 6 |
|
14 #define COLOR_BD_DES 7 |
|
15 |
1
|
16 #define LOG_WIN_HEIGHT (5+2) |
|
17 #define CHAT_WIN_HEIGHT (maxY-1-LOG_WIN_HEIGHT) |
|
18 |
|
19 #define INPUTLINE_LENGTH 1024 |
|
20 |
13
|
21 |
|
22 typedef struct _window_entry_t { |
|
23 WINDOW *win; |
|
24 PANEL *panel; |
|
25 char *name; |
|
26 int nlines; |
|
27 char **texto; |
15
|
28 int hidden_msg; |
13
|
29 struct list_head list; |
|
30 } window_entry_t; |
|
31 |
14
|
32 extern int update_roaster; |
|
33 |
0
|
34 void scr_InitCurses(void); |
|
35 void scr_DrawMainWindow(void); |
|
36 void scr_TerminateCurses(void); |
|
37 void scr_CreatePopup(char *title, char *texto, int corte, int type, |
|
38 char *returnstring); |
11
|
39 void scr_WriteInWindow(char *nombreVentana, char *texto, int TimeStamp, |
|
40 int force_show); |
0
|
41 void scr_WriteMessage(int sock); |
|
42 void scr_WriteIncomingMessage(char *jidfrom, char *text); |
|
43 void scr_RoolWindow(void); |
|
44 void scr_ShowBuddyWindow(void); |
4
|
45 void scr_LogPrint(const char *fmt, ...); |
13
|
46 window_entry_t *scr_SearchWindow(char *winId); |
0
|
47 |
|
48 WINDOW *scr_GetRosterWindow(void); |
|
49 WINDOW *scr_GetStatusWindow(void); |
2
|
50 WINDOW *scr_GetInputWindow(void); |
0
|
51 |
|
52 int scr_Getch(void); |
|
53 |
2
|
54 int process_key(int, int sock); |
0
|
55 |
|
56 #endif |