comparison mcabber/screen.h @ 22:6a97e7cd00d9

[/trunk] Changeset 37 by mikael * Unexport the scr_SearchWindow() function. Use the new scr_IsHiddenMessage() function instead.
author mikael
date Sun, 27 Mar 2005 19:32:38 +0000
parents 7eeda3a06b21
children
comparison
equal deleted inserted replaced
21:7eeda3a06b21 22:6a97e7cd00d9
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"
8 5
9 #define COLOR_POPUP 1 6 #define COLOR_POPUP 1
10 #define COLOR_GENERAL 3 7 #define COLOR_GENERAL 3
11 #define COLOR_BD_CONSEL 4 8 #define COLOR_BD_CONSEL 4
12 #define COLOR_BD_CON 5 9 #define COLOR_BD_CON 5
15 12
16 #define LOG_WIN_HEIGHT (5+2) 13 #define LOG_WIN_HEIGHT (5+2)
17 #define CHAT_WIN_HEIGHT (maxY-1-LOG_WIN_HEIGHT) 14 #define CHAT_WIN_HEIGHT (maxY-1-LOG_WIN_HEIGHT)
18 15
19 #define INPUTLINE_LENGTH 1024 16 #define INPUTLINE_LENGTH 1024
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 hidden_msg;
29 struct list_head list;
30 } window_entry_t;
31 17
32 extern int update_roaster; 18 extern int update_roaster;
33 19
34 void scr_InitCurses(void); 20 void scr_InitCurses(void);
35 void scr_DrawMainWindow(void); 21 void scr_DrawMainWindow(void);
40 int force_show); 26 int force_show);
41 void scr_WriteIncomingMessage(char *jidfrom, char *text); 27 void scr_WriteIncomingMessage(char *jidfrom, char *text);
42 void scr_RoolWindow(void); 28 void scr_RoolWindow(void);
43 void scr_ShowBuddyWindow(void); 29 void scr_ShowBuddyWindow(void);
44 void scr_LogPrint(const char *fmt, ...); 30 void scr_LogPrint(const char *fmt, ...);
45 window_entry_t *scr_SearchWindow(char *winId); 31
32 int scr_IsHiddenMessage(char *jid);
46 33
47 WINDOW *scr_GetRosterWindow(void); 34 WINDOW *scr_GetRosterWindow(void);
48 WINDOW *scr_GetStatusWindow(void); 35 WINDOW *scr_GetStatusWindow(void);
49 WINDOW *scr_GetInputWindow(void); 36 WINDOW *scr_GetInputWindow(void);
50 37