[gaim-migrate @ 3063]
[pidgin-git.git] / src / convo.h
blob24868dbe0cc9b827b03d40abe0f57d8d72122ba0
1 /*
2 * gaim
4 * Copyright (C) 1998-1999, Mark Spencer <markster@marko.net>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #ifndef _CONVO_H_
23 #define _CONVO_H_
25 #include <gtk/gtk.h>
26 #include "gaim.h"
28 #include "pixmaps/tmp_send.xpm"
29 #include "pixmaps/gnome_remove.xpm"
30 #include "pixmaps/gnome_add.xpm"
31 #include "pixmaps/cancel.xpm"
32 #include "pixmaps/warn.xpm"
33 #include "pixmaps/tb_search.xpm"
34 #include "pixmaps/block.xpm"
36 extern GtkWidget *convo_notebook;
37 extern GtkWidget *chat_notebook;
39 /* we declare all of the global functions for chat and IM windows here, so
40 * that it's easy to keep them merged. */
42 /* chat first */
43 extern void im_callback(GtkWidget *, struct conversation *);
44 extern void ignore_callback(GtkWidget *, struct conversation *);
45 extern void whisper_callback(GtkWidget *, struct conversation *);
46 extern void invite_callback(GtkWidget *, struct conversation *);
47 extern void tab_complete(struct conversation *c);
49 /* now IM */
50 extern void warn_callback(GtkWidget *, struct conversation *);
51 extern void block_callback(GtkWidget *, struct conversation *);
52 extern void add_callback(GtkWidget *, struct conversation *);
54 /* now both */
55 extern int set_dispstyle (int);
56 extern void info_callback(GtkWidget *, struct conversation *);
57 extern void do_bold(GtkWidget *, GtkWidget *);
58 extern void do_italic(GtkWidget *, GtkWidget *);
59 extern void do_underline(GtkWidget *, GtkWidget *);
60 extern void do_strike(GtkWidget *, GtkWidget *);
61 extern void do_small(GtkWidget *, GtkWidget *);
62 extern void do_normal(GtkWidget *, GtkWidget *);
63 extern void do_big(GtkWidget *, GtkWidget *);
64 extern void toggle_font(GtkWidget *, struct conversation *);
65 extern void toggle_color(GtkWidget *, struct conversation *);
66 extern void toggle_loggle(GtkWidget *, struct conversation *);
67 extern void insert_smiley(GtkWidget *, struct conversation *);
68 /* sound is handled by set_option */
69 extern gboolean keypress_callback(GtkWidget *, GdkEventKey *, struct conversation *);
70 extern void check_spelling( GtkEditable *, gchar *, gint, gint *, gpointer);
71 extern int entry_key_pressed(GtkWidget *, GtkWidget *);
73 extern void convo_switch(GtkNotebook *, GtkWidget *, gint, gpointer);
74 extern gint delete_all_convo(GtkWidget *, GdkEventAny *, gpointer);
76 extern GtkWidget *build_conv_toolbar(struct conversation *);
78 extern void send_callback(GtkWidget *, struct conversation *);
79 extern int close_callback(GtkWidget *, struct conversation *);
81 extern gboolean meify(char *, int);
83 #endif /* _CONVO_H_ */