summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-curses.h
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2007-10-31 17:19:41 +0100
committerSebastien Helleu <flashcode@flashtux.org>2007-10-31 17:19:41 +0100
commit7f90ccd2ad8dc4be4ed0b6471ad8c4315784e334 (patch)
treebbcdc2facc24e917270a20539cd16dc18611151d /src/gui/curses/gui-curses.h
parent140623a314260dc77134fe63c3f13db05eb4b20f (diff)
downloadweechat-7f90ccd2ad8dc4be4ed0b6471ad8c4315784e334.zip
Renamed many sources and functions in src/gui, improved display of messages in buffer (faster and using less memory)
Diffstat (limited to 'src/gui/curses/gui-curses.h')
-rw-r--r--src/gui/curses/gui-curses.h41
1 files changed, 5 insertions, 36 deletions
diff --git a/src/gui/curses/gui-curses.h b/src/gui/curses/gui-curses.h
index 190a29143..2801b6862 100644
--- a/src/gui/curses/gui-curses.h
+++ b/src/gui/curses/gui-curses.h
@@ -28,37 +28,11 @@
#include <curses.h>
#endif
-/* shift ncurses colors for compatibility with colors
- in IRC messages (same as other IRC clients) */
-
-#define WEECHAT_COLOR_BLACK COLOR_BLACK
-#define WEECHAT_COLOR_RED COLOR_BLUE
-#define WEECHAT_COLOR_GREEN COLOR_GREEN
-#define WEECHAT_COLOR_YELLOW COLOR_CYAN
-#define WEECHAT_COLOR_BLUE COLOR_RED
-#define WEECHAT_COLOR_MAGENTA COLOR_MAGENTA
-#define WEECHAT_COLOR_CYAN COLOR_YELLOW
-#define WEECHAT_COLOR_WHITE COLOR_WHITE
-
#define WINDOW_MIN_WIDTH 10
#define WINDOW_MIN_HEIGHT 5
#define GUI_CURSES(window) ((t_gui_curses_objects *)(window->gui_objects))
-typedef struct t_gui_panel_window t_gui_panel_window;
-
-struct t_gui_panel_window
-{
- t_gui_panel *panel; /* pointer to panel */
- int x, y; /* position of window */
- int width, height; /* window size */
- WINDOW *win_panel; /* panel Curses window */
- WINDOW *win_separator; /* separator (optional) */
- t_gui_panel_window *next_panel_window;
- /* link to next panel window */
- /* (only used if panel is in windows) */
-};
-
typedef struct t_gui_curses_objects t_gui_curses_objects;
struct t_gui_curses_objects
@@ -70,11 +44,9 @@ struct t_gui_curses_objects
WINDOW *win_infobar; /* info bar window */
WINDOW *win_input; /* input window */
WINDOW *win_separator; /* separation between 2 splited (V) win */
- t_gui_panel_window *panel_windows; /* panel windows */
};
-extern t_gui_color gui_weechat_colors[];
-extern int gui_irc_colors[GUI_NUM_IRC_COLORS][2];
+extern struct t_gui_color gui_weechat_colors[];
extern int gui_refresh_screen_needed;
/* color functions */
@@ -82,7 +54,8 @@ extern int gui_color_get_pair (int);
extern void gui_color_init ();
/* chat functions */
-extern void gui_chat_calculate_line_diff (t_gui_window *, t_gui_line **, int *, int);
+extern void gui_chat_calculate_line_diff (struct t_gui_window *,
+ struct t_gui_line **, int *, int);
/* keyboard functions */
extern void gui_keyboard_default_bindings ();
@@ -94,11 +67,7 @@ extern void gui_window_wprintw (WINDOW *, char *, ...);
extern void gui_window_curses_clear (WINDOW *, int);
extern void gui_window_set_weechat_color (WINDOW *, int);
extern void gui_window_refresh_screen_sigwinch ();
-extern void gui_window_set_title ();
-extern void gui_window_reset_title ();
-
-/* panel functions */
-extern int gui_panel_window_get_size (t_gui_panel *, t_gui_window *, int);
-extern void gui_panel_redraw_buffer (t_gui_buffer *);
+extern void gui_window_title_set ();
+extern void gui_window_title_reset ();
#endif /* gui-curses.h */