9709
|
1 /**
|
|
2 * @file gtkdialogs.h Assorted GTK+ dialogs
|
|
3 * @defgroup gtkui GTK+ User Interface
|
|
4 *
|
|
5 * gaim
|
|
6 *
|
|
7 * Gaim is the legal property of its developers, whose names are too numerous
|
|
8 * to list here. Please refer to the COPYRIGHT file distributed with this
|
|
9 * source distribution.
|
|
10 *
|
|
11 * This program is free software; you can redistribute it and/or modify
|
|
12 * it under the terms of the GNU General Public License as published by
|
|
13 * the Free Software Foundation; either version 2 of the License, or
|
|
14 * (at your option) any later version.
|
|
15 *
|
|
16 * This program is distributed in the hope that it will be useful,
|
|
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19 * GNU General Public License for more details.
|
|
20 *
|
|
21 * You should have received a copy of the GNU General Public License
|
|
22 * along with this program; if not, write to the Free Software
|
|
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
24 */
|
9713
|
25 #ifndef _GAIM_GTKDIALOGS_H_
|
|
26 #define _GAIM_GTKDIALOGS_H_
|
9709
|
27
|
9718
|
28 #include "gtkinternal.h"
|
|
29
|
9709
|
30 #include "account.h"
|
|
31 #include "conversation.h"
|
|
32
|
9713
|
33 /* Functions in gtkdialogs.c (these should actually stay in this file) */
|
9714
|
34 void gaim_gtkdialogs_im();
|
|
35 void gaim_gtkdialogs_info();
|
|
36 void gaim_gtkdialogs_log();
|
9728
|
37 void gaim_gtkdialogs_im_with_user(GaimAccount *, const char *);
|
9714
|
38 void gaim_gtkdialogs_warn(GaimConnection *, const char *);
|
|
39
|
9713
|
40 void alias_dialog_bud(GaimBuddy *);
|
|
41 void alias_dialog_contact(GaimContact *);
|
|
42 void alias_dialog_blist_chat(GaimChat *);
|
|
43 void create_away_mess(GtkWidget *, void *);
|
|
44 void show_confirm_del(GaimBuddy *);
|
|
45 void show_confirm_del_group(GaimGroup *);
|
|
46 void show_confirm_del_blist_chat(GaimChat *);
|
|
47 void show_confirm_del_contact(GaimContact *);
|
9714
|
48 void destroy_all_dialogs();
|
|
49
|
|
50 /* Functions in about.c */
|
|
51 extern void show_about(GtkWidget *, void *);
|
|
52
|
|
53 /* Everything after this should probably be moved elsewhere */
|
9713
|
54
|
9709
|
55 /**
|
|
56 * Our UI's identifier.
|
|
57 */
|
|
58 #define GAIM_GTK_UI "gtk-gaim"
|
|
59
|
|
60
|
|
61 #define GAIM_DIALOG(x) x = gtk_window_new(GTK_WINDOW_TOPLEVEL); \
|
|
62 gtk_window_set_type_hint(GTK_WINDOW(x), GDK_WINDOW_TYPE_HINT_DIALOG)
|
|
63 #define GAIM_WINDOW_ICONIFIED(x) (gdk_window_get_state(GTK_WIDGET(x)->window) & GDK_WINDOW_STATE_ICONIFIED)
|
|
64
|
|
65 #define DEFAULT_FONT_FACE "Helvetica"
|
|
66
|
|
67
|
|
68 /* XXX CUI: away messages aren't really anything more than char* but we need two char*'s
|
|
69 * for the UI so that people can name their away messages when they save them. So these
|
|
70 * are really a UI function and struct away_message should be removed from the core. */
|
|
71 /* WTF? How does having a title for something mean that it is part of the UI? */
|
|
72 struct away_message {
|
|
73 char name[80];
|
|
74 char message[2048];
|
|
75 };
|
|
76
|
|
77
|
|
78
|
|
79 /* this is used for queuing messages received while away. This is really a UI function
|
|
80 * which is why the struct is here. */
|
|
81
|
|
82 struct queued_message {
|
|
83 char name[80];
|
|
84 char alias[80];
|
|
85 char *message;
|
|
86 time_t tm;
|
|
87 GaimAccount *account;
|
|
88 GaimMessageFlags flags;
|
|
89 };
|
|
90
|
|
91 struct smiley_theme {
|
|
92 char *path;
|
|
93 char *name;
|
|
94 char *desc;
|
|
95 char *icon;
|
|
96 char *author;
|
|
97
|
|
98 struct smiley_list *list;
|
|
99 };
|
|
100
|
|
101 /* Globals in main.c */
|
|
102 extern GtkWidget *mainwindow;
|
|
103 extern int docklet_count;
|
|
104
|
|
105 /* Globals in away.c */
|
|
106 extern GSList *away_messages;
|
|
107 extern struct away_message *awaymessage;
|
|
108 extern GtkWidget *awaymenu;
|
|
109 extern GtkWidget *awayqueue;
|
|
110 extern GtkListStore *awayqueuestore;
|
|
111
|
|
112 /* Globals in themes.c */
|
|
113 extern struct smiley_theme *current_smiley_theme;
|
|
114 extern GSList *smiley_themes;
|
|
115
|
|
116 /* Functions in main.c */
|
|
117 extern void show_login();
|
|
118 extern void gaim_setup(GaimConnection *);
|
|
119
|
|
120 /* Functions in away.c */
|
|
121 extern void rem_away_mess(GtkWidget *, struct away_message *);
|
|
122 extern void do_away_message(GtkWidget *, struct away_message *);
|
|
123 extern void do_away_menu();
|
|
124 extern void toggle_away_queue();
|
|
125 extern void purge_away_queue(GSList**);
|
|
126 extern void do_im_back(GtkWidget *w, GtkWidget *x);
|
|
127
|
|
128 /* Functions in session.c */
|
|
129 extern void session_init(gchar *, gchar *, gchar *);
|
|
130 extern void session_end();
|
|
131
|
|
132 /* Functions in themes.c */
|
|
133 extern void smiley_themeize(GtkWidget *);
|
|
134 extern void smiley_theme_probe();
|
|
135 extern void load_smiley_theme(const char *file, gboolean load);
|
|
136 extern GSList *get_proto_smileys(const char *id);
|
|
137
|
9713
|
138 #endif /* _GAIM_GTKDIALOGS_H_ */
|