comparison pidgin/gtkconvwin.h @ 15374:5fe8042783c1

Rename gtk/ and libgaim/ to pidgin/ and libpurple/
author Sean Egan <seanegan@gmail.com>
date Sat, 20 Jan 2007 02:32:10 +0000
parents
children c9497aad9fc4
comparison
equal deleted inserted replaced
15373:f79e0f4df793 15374:5fe8042783c1
1 /**
2 * @file gtkconvwin.h GTK+ Conversation Window API
3 * @ingroup gtkui
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 */
25 #ifndef _GAIM_GTKCONVERSATION_WINDOW_H_
26 #define _GAIM_GTKCONVERSATION_WINDOW_H_
27
28 typedef struct _GaimGtkWindow GaimGtkWindow;
29
30
31 /**************************************************************************
32 * @name Structures
33 **************************************************************************/
34 /*@{*/
35
36 /**
37 * A GTK+ representation of a graphical window containing one or more
38 * conversations.
39 */
40 struct _GaimGtkWindow
41 {
42 GtkWidget *window; /**< The window. */
43 GtkWidget *notebook; /**< The notebook of conversations. */
44 GList *gtkconvs;
45
46 struct
47 {
48 GtkWidget *menubar;
49
50 GtkWidget *view_log;
51
52 GtkWidget *send_file;
53 GtkWidget *add_pounce;
54 GtkWidget *get_info;
55 GtkWidget *invite;
56
57 GtkWidget *alias;
58 GtkWidget *block;
59 GtkWidget *add;
60 GtkWidget *remove;
61
62 GtkWidget *insert_link;
63 GtkWidget *insert_image;
64
65 GtkWidget *logging;
66 GtkWidget *sounds;
67 GtkWidget *show_formatting_toolbar;
68 GtkWidget *show_timestamps;
69 GtkWidget *show_icon;
70
71 GtkWidget *send_to;
72
73 GtkWidget *tray;
74
75 GtkWidget *typing_icon;
76
77 GtkItemFactory *item_factory;
78
79 } menu;
80
81 struct
82 {
83 GtkWidget *search;
84
85 } dialogs;
86
87 /* Tab dragging stuff. */
88 gboolean in_drag;
89 gboolean in_predrag;
90
91 gint drag_tab;
92
93 gint drag_min_x, drag_max_x, drag_min_y, drag_max_y;
94
95 gint drag_motion_signal;
96 gint drag_leave_signal;
97 };
98
99 /*@}*/
100
101 /**************************************************************************
102 * @name GTK+ Conversation Window API
103 **************************************************************************/
104 /*@{*/
105
106 GaimGtkWindow * gaim_gtk_conv_window_new(void);
107 void gaim_gtk_conv_window_destroy(GaimGtkWindow *win);
108 GList *gaim_gtk_conv_windows_get_list(void);
109 void gaim_gtk_conv_window_show(GaimGtkWindow *win);
110 void gaim_gtk_conv_window_hide(GaimGtkWindow *win);
111 void gaim_gtk_conv_window_raise(GaimGtkWindow *win);
112 void gaim_gtk_conv_window_switch_gtkconv(GaimGtkWindow *win, GaimGtkConversation *gtkconv);
113 void gaim_gtk_conv_window_add_gtkconv(GaimGtkWindow *win, GaimGtkConversation *gtkconv);
114 void gaim_gtk_conv_window_remove_gtkconv(GaimGtkWindow *win, GaimGtkConversation *gtkconv);
115 GaimGtkConversation *gaim_gtk_conv_window_get_gtkconv_at_index(const GaimGtkWindow *win, int index);
116 GaimGtkConversation *gaim_gtk_conv_window_get_active_gtkconv(const GaimGtkWindow *win);
117 GaimConversation *gaim_gtk_conv_window_get_active_conversation(const GaimGtkWindow *win);
118 gboolean gaim_gtk_conv_window_is_active_conversation(const GaimConversation *conv);
119 gboolean gaim_gtk_conv_window_has_focus(GaimGtkWindow *win);
120 GaimGtkWindow *gaim_gtk_conv_window_get_at_xy(int x, int y);
121 GList *gaim_gtk_conv_window_get_gtkconvs(GaimGtkWindow *win);
122 guint gaim_gtk_conv_window_get_gtkconv_count(GaimGtkWindow *win);
123
124 GaimGtkWindow *gaim_gtk_conv_window_first_with_type(GaimConversationType type);
125 GaimGtkWindow *gaim_gtk_conv_window_last_with_type(GaimConversationType type);
126
127 /*@}*/
128
129 /**************************************************************************
130 * @name GTK+ Conversation Placement API
131 **************************************************************************/
132 /*@{*/
133
134 typedef void (*GaimConvPlacementFunc)(GaimGtkConversation *);
135
136 GList *gaim_gtkconv_placement_get_options(void);
137 void gaim_gtkconv_placement_add_fnc(const char *id, const char *name, GaimConvPlacementFunc fnc);
138 void gaim_gtkconv_placement_remove_fnc(const char *id);
139 const char *gaim_gtkconv_placement_get_name(const char *id);
140 GaimConvPlacementFunc gaim_gtkconv_placement_get_fnc(const char *id);
141 void gaim_gtkconv_placement_set_current_func(GaimConvPlacementFunc func);
142 GaimConvPlacementFunc gaim_gtkconv_placement_get_current_func(void);
143 void gaim_gtkconv_placement_place(GaimGtkConversation *gtkconv);
144
145 /*@}*/
146
147 #endif /* _GAIM_GTKCONVERSATION_WINDOW_H_ */