2417
|
1 /*
|
|
2 * gaim
|
|
3 *
|
|
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.
|
|
10 *
|
|
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.
|
|
15 *
|
|
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
|
|
19 *
|
|
20 */
|
|
21
|
|
22 #ifndef _UI_H_
|
|
23 #define _UI_H_
|
|
24
|
|
25 #ifdef HAVE_CONFIG_H
|
|
26 #include <config.h>
|
|
27 #endif
|
|
28
|
|
29 #include <gtk/gtk.h>
|
|
30 #ifdef USE_APPLET
|
|
31 #include <applet-widget.h>
|
|
32 #endif /* USE_APPLET */
|
|
33 #ifdef USE_GNOME
|
|
34 #include <gnome.h>
|
|
35 #endif
|
|
36 #if USE_PIXBUF
|
|
37 #include <gdk-pixbuf/gdk-pixbuf.h>
|
|
38 #endif
|
|
39
|
|
40 #define FACE_ANGEL 0
|
|
41 #define FACE_BIGSMILE 1
|
|
42 #define FACE_BURP 2
|
|
43 #define FACE_CROSSEDLIPS 3
|
|
44 #define FACE_CRY 4
|
|
45 #define FACE_EMBARRASSED 5
|
|
46 #define FACE_KISS 6
|
|
47 #define FACE_MONEYMOUTH 7
|
|
48 #define FACE_SAD 8
|
|
49 #define FACE_SCREAM 9
|
|
50 #define FACE_SMILE 10
|
|
51 #define FACE_SMILE8 11
|
|
52 #define FACE_THINK 12
|
|
53 #define FACE_TONGUE 13
|
|
54 #define FACE_WINK 14
|
|
55 #define FACE_YELL 15
|
|
56 #define FACE_TOTAL 16
|
|
57
|
|
58 struct debug_window {
|
|
59 GtkWidget *window;
|
|
60 GtkWidget *entry;
|
|
61 };
|
|
62 extern struct debug_window *dw;
|
|
63
|
|
64 /* CUI: save_pos and window_size are used by gaimrc.c which is core.
|
|
65 * Need to figure out options saving. Same goes for several global variables as well. */
|
|
66 struct save_pos {
|
|
67 int x;
|
|
68 int y;
|
|
69 int width;
|
|
70 int height;
|
|
71 int xoff;
|
|
72 int yoff;
|
|
73 };
|
|
74
|
|
75 struct window_size {
|
|
76 int width;
|
|
77 int height;
|
|
78 int entry_height;
|
|
79 };
|
|
80
|
|
81 #define EDIT_GC 0
|
|
82 #define EDIT_GROUP 1
|
|
83 #define EDIT_BUDDY 2
|
|
84
|
|
85 /* Globals in applet.c */
|
|
86 #ifdef USE_APPLET
|
|
87 extern GtkWidget *applet;
|
|
88 #endif /* USE_APPLET */
|
|
89
|
|
90 /* Globals in buddy.c */
|
|
91 extern GtkWidget *buddies;
|
|
92 extern GtkWidget *bpmenu;
|
|
93 extern GtkWidget *blist;
|
|
94
|
|
95 /* Globals in buddy_chat.c */
|
|
96 /* it is very important that you don't use this for anything.
|
|
97 * its sole purpose is to allow all group chats to be in one
|
|
98 * window. use struct gaim_connection's buddy_chats instead. */
|
|
99 extern GList *chats;
|
|
100 /* these are ok to use */
|
|
101 extern GtkWidget *all_chats;
|
|
102 extern GtkWidget *chat_notebook;
|
|
103 extern GtkWidget *joinchat;
|
|
104
|
|
105 /* Globals in dialog.c */
|
|
106 extern char fontface[64];
|
|
107 extern int fontsize;
|
|
108 extern GdkColor bgcolor;
|
|
109 extern GdkColor fgcolor;
|
|
110 extern int smiley_array[FACE_TOTAL];
|
|
111
|
|
112 /* Globals in prpl.c */
|
|
113 extern GtkWidget *protomenu;
|
|
114
|
|
115 /* Functions in about.c */
|
|
116 extern void show_about(GtkWidget *, void *);
|
|
117 extern void gaim_help(GtkWidget *, void *);
|
|
118
|
|
119 #endif /* _UI_H_ */
|