Mercurial > hg
annotate mcabber/src/screen.h @ 701:6c100adfbfb6
Add setting "roster_width" (variable buddylist width)
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Wed, 15 Feb 2006 22:31:19 +0100 |
parents | ae7016aae014 |
children | b26a0bde4cdb |
rev | line source |
---|---|
24 | 1 #ifndef __SCREEN_H__ |
2 #define __SCREEN_H__ 1 | |
3 | |
4 #include <ncurses.h> | |
173 | 5 #include <glib.h> |
24 | 6 |
374
bd5638c21834
Improve logging system (traces)
Mikael Berthe <mikael@lilotux.net>
parents:
370
diff
changeset
|
7 #include "logprint.h" |
bd5638c21834
Improve logging system (traces)
Mikael Berthe <mikael@lilotux.net>
parents:
370
diff
changeset
|
8 |
24 | 9 #define COLOR_GENERAL 3 |
267 | 10 #define COLOR_NMSG 4 |
11 #define COLOR_BD_DESSEL 5 | |
12 #define COLOR_BD_DES 6 | |
24 | 13 |
701
6c100adfbfb6
Add setting "roster_width" (variable buddylist width)
Mikael Berthe <mikael@lilotux.net>
parents:
675
diff
changeset
|
14 // Length of the timestamp & flag prefix in the chat buffer window |
185 | 15 #define PREFIX_WIDTH 17 |
24 | 16 |
17 #define INPUTLINE_LENGTH 1024 | |
18 | |
276
627925d885de
Limit the number of lines in multi-line messages
Mikael Berthe <mikael@lilotux.net>
parents:
267
diff
changeset
|
19 // Only used in screen.c; this is the maximum line number |
627925d885de
Limit the number of lines in multi-line messages
Mikael Berthe <mikael@lilotux.net>
parents:
267
diff
changeset
|
20 // in a multi-line message. Should be < 1000 |
627925d885de
Limit the number of lines in multi-line messages
Mikael Berthe <mikael@lilotux.net>
parents:
267
diff
changeset
|
21 // Note: message length is limited by the HBB_BLOCKSIZE size too |
627925d885de
Limit the number of lines in multi-line messages
Mikael Berthe <mikael@lilotux.net>
parents:
267
diff
changeset
|
22 #define MULTILINE_MAX_LINE_NUMBER 299 |
627925d885de
Limit the number of lines in multi-line messages
Mikael Berthe <mikael@lilotux.net>
parents:
267
diff
changeset
|
23 |
30 | 24 extern int update_roster; |
24 | 25 |
26 void scr_InitCurses(void); | |
374
bd5638c21834
Improve logging system (traces)
Mikael Berthe <mikael@lilotux.net>
parents:
370
diff
changeset
|
27 void scr_TerminateCurses(void); |
151 | 28 void scr_DrawMainWindow(unsigned int fullinit); |
81 | 29 void scr_DrawRoster(void); |
184 | 30 void scr_WriteIncomingMessage(const char *jidfrom, const char *text, |
190 | 31 time_t timestamp, guint prefix); |
50 | 32 void scr_WriteOutgoingMessage(const char *jidto, const char *text); |
24 | 33 void scr_ShowBuddyWindow(void); |
514
979eb0fe2969
Show status changes in buddy window, if it is open
Mikael Berthe <mikael@lilotux.net>
parents:
508
diff
changeset
|
34 bool scr_BuddyBufferExists(const char *jid); |
129 | 35 inline void scr_set_chatmode(int enable); |
238 | 36 inline void scr_set_multimode(int enable); |
37 inline int scr_get_multimode(); | |
654
d7fe7b88e4fc
MUC: Set the new_message flag when joining a room
Mikael Berthe <mikael@lilotux.net>
parents:
580
diff
changeset
|
38 void scr_setmsgflag_if_needed(const char *jid); |
238 | 39 void scr_append_multiline(const char *line); |
40 inline const char *scr_get_multiline(); | |
24 | 41 |
675
ae7016aae014
New "beep_on_message" option
Mikael Berthe <mikael@lilotux.net>
parents:
654
diff
changeset
|
42 inline void scr_Beep(void); |
24 | 43 int scr_Getch(void); |
44 | |
29 | 45 int process_key(int); |
24 | 46 |
322
da138cdebf04
Implement auto-away mode
Mikael Berthe <mikael@lilotux.net>
parents:
314
diff
changeset
|
47 void scr_CheckAutoAway(bool activity); |
da138cdebf04
Implement auto-away mode
Mikael Berthe <mikael@lilotux.net>
parents:
314
diff
changeset
|
48 |
104 | 49 // For commands... |
108 | 50 void scr_RosterTop(void); |
51 void scr_RosterBottom(void); | |
377
00809e3e327e
Add "/roster up" and "/roster down"
Mikael Berthe <mikael@lilotux.net>
parents:
374
diff
changeset
|
52 void scr_RosterUp(void); |
00809e3e327e
Add "/roster up" and "/roster down"
Mikael Berthe <mikael@lilotux.net>
parents:
374
diff
changeset
|
53 void scr_RosterDown(void); |
265 | 54 void scr_RosterSearch(char *); |
480 | 55 void scr_RosterJumpJid(char *); |
361
51ff319947c3
Code cleanup/optimization
Mikael Berthe <mikael@lilotux.net>
parents:
336
diff
changeset
|
56 void scr_BufferTopBottom(int topbottom); |
369
499170ed71c9
Rename some buffer commands, for homogeneity
Mikael Berthe <mikael@lilotux.net>
parents:
364
diff
changeset
|
57 void scr_BufferClear(void); |
370
dd9e2eb52916
Add /buffer search_{backward,forward}
Mikael Berthe <mikael@lilotux.net>
parents:
369
diff
changeset
|
58 void scr_BufferSearch(int direction, const char *text); |
462 | 59 void scr_BufferPercent(int pc); |
464 | 60 void scr_BufferDate(time_t t); |
236 | 61 void scr_RosterUnreadMessage(int); |
330 | 62 void scr_RosterJumpAlternate(void); |
508
5a2132ba2220
Add "/buffer up" and "/buffer down"
Mikael Berthe <mikael@lilotux.net>
parents:
480
diff
changeset
|
63 void scr_BufferScrollUpDown(int updown, unsigned int nblines); |
104 | 64 |
24 | 65 #endif |
576 | 66 |
580 | 67 /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */ |