Mon, 19 Mar 2007 06:01:29 +0000
More Gaim to Pidgin stuff
| 11581 | 1 | /** |
| 2 | * @file gtkconvwin.h GTK+ Conversation Window API | |
| 3 | * @ingroup gtkui | |
| 4 | * | |
| 5 | * gaim | |
| 6 | * | |
| 15572 | 7 | * Pidgin is the legal property of its developers, whose names are too numerous |
| 11581 | 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 | */ | |
| 15563 | 25 | #ifndef _PIDGIN_CONVERSATION_WINDOW_H_ |
| 26 | #define _PIDGIN_CONVERSATION_WINDOW_H_ | |
| 11581 | 27 | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
28 | typedef struct _PidginWindow PidginWindow; |
| 11581 | 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 | */ | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
40 | struct _PidginWindow |
| 11581 | 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; | |
|
15486
06bb8277e42c
Warmenhoved patch #1397916: "Turns Block button in conv menu into Unblock after blocking" from Glauber de Oliveira Costa (glommer). You know the drill.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15435
diff
changeset
|
59 | GtkWidget *unblock; |
| 11581 | 60 | GtkWidget *add; |
| 61 | GtkWidget *remove; | |
| 62 | ||
| 63 | GtkWidget *insert_link; | |
| 64 | GtkWidget *insert_image; | |
| 65 | ||
| 66 | GtkWidget *logging; | |
| 67 | GtkWidget *sounds; | |
| 68 | GtkWidget *show_formatting_toolbar; | |
| 69 | GtkWidget *show_timestamps; | |
| 70 | GtkWidget *show_icon; | |
| 71 | ||
| 11594 | 72 | GtkWidget *send_to; |
| 11581 | 73 | |
| 74 | GtkWidget *tray; | |
| 75 | ||
| 76 | GtkWidget *typing_icon; | |
| 77 | ||
| 78 | GtkItemFactory *item_factory; | |
| 79 | ||
| 80 | } menu; | |
| 81 | ||
|
14432
3710852cdab5
[gaim-migrate @ 17076]
Hil <allhilbert@users.sourceforge.net>
parents:
14253
diff
changeset
|
82 | struct |
|
3710852cdab5
[gaim-migrate @ 17076]
Hil <allhilbert@users.sourceforge.net>
parents:
14253
diff
changeset
|
83 | { |
|
3710852cdab5
[gaim-migrate @ 17076]
Hil <allhilbert@users.sourceforge.net>
parents:
14253
diff
changeset
|
84 | GtkWidget *search; |
|
3710852cdab5
[gaim-migrate @ 17076]
Hil <allhilbert@users.sourceforge.net>
parents:
14253
diff
changeset
|
85 | |
|
3710852cdab5
[gaim-migrate @ 17076]
Hil <allhilbert@users.sourceforge.net>
parents:
14253
diff
changeset
|
86 | } dialogs; |
|
3710852cdab5
[gaim-migrate @ 17076]
Hil <allhilbert@users.sourceforge.net>
parents:
14253
diff
changeset
|
87 | |
| 11581 | 88 | /* Tab dragging stuff. */ |
| 89 | gboolean in_drag; | |
| 90 | gboolean in_predrag; | |
| 91 | ||
| 92 | gint drag_tab; | |
| 93 | ||
| 94 | gint drag_min_x, drag_max_x, drag_min_y, drag_max_y; | |
| 95 | ||
| 96 | gint drag_motion_signal; | |
| 97 | gint drag_leave_signal; | |
| 98 | }; | |
| 99 | ||
| 100 | /*@}*/ | |
| 101 | ||
| 102 | /************************************************************************** | |
| 103 | * @name GTK+ Conversation Window API | |
| 104 | **************************************************************************/ | |
| 105 | /*@{*/ | |
| 106 | ||
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
107 | PidginWindow * pidgin_conv_window_new(void); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
108 | void pidgin_conv_window_destroy(PidginWindow *win); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
109 | GList *pidgin_conv_windows_get_list(void); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
110 | void pidgin_conv_window_show(PidginWindow *win); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
111 | void pidgin_conv_window_hide(PidginWindow *win); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
112 | void pidgin_conv_window_raise(PidginWindow *win); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
113 | void pidgin_conv_window_switch_gtkconv(PidginWindow *win, PidginConversation *gtkconv); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
114 | void pidgin_conv_window_add_gtkconv(PidginWindow *win, PidginConversation *gtkconv); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
115 | void pidgin_conv_window_remove_gtkconv(PidginWindow *win, PidginConversation *gtkconv); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
116 | PidginConversation *pidgin_conv_window_get_gtkconv_at_index(const PidginWindow *win, int index); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
117 | PidginConversation *pidgin_conv_window_get_active_gtkconv(const PidginWindow *win); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
118 | GaimConversation *pidgin_conv_window_get_active_conversation(const PidginWindow *win); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
119 | gboolean pidgin_conv_window_is_active_conversation(const GaimConversation *conv); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
120 | gboolean pidgin_conv_window_has_focus(PidginWindow *win); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
121 | PidginWindow *pidgin_conv_window_get_at_xy(int x, int y); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
122 | GList *pidgin_conv_window_get_gtkconvs(PidginWindow *win); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
123 | guint pidgin_conv_window_get_gtkconv_count(PidginWindow *win); |
| 11581 | 124 | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
125 | PidginWindow *pidgin_conv_window_first_with_type(GaimConversationType type); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
126 | PidginWindow *pidgin_conv_window_last_with_type(GaimConversationType type); |
| 11581 | 127 | |
| 128 | /*@}*/ | |
| 129 | ||
| 130 | /************************************************************************** | |
| 131 | * @name GTK+ Conversation Placement API | |
| 132 | **************************************************************************/ | |
| 133 | /*@{*/ | |
| 134 | ||
| 15882 | 135 | typedef void (*PidginConvPlacementFunc)(PidginConversation *); |
| 11581 | 136 | |
| 15563 | 137 | GList *pidgin_conv_placement_get_options(void); |
| 15882 | 138 | void pidgin_conv_placement_add_fnc(const char *id, const char *name, PidginConvPlacementFunc fnc); |
| 15563 | 139 | void pidgin_conv_placement_remove_fnc(const char *id); |
| 140 | const char *pidgin_conv_placement_get_name(const char *id); | |
| 15882 | 141 | PidginConvPlacementFunc pidgin_conv_placement_get_fnc(const char *id); |
| 142 | void pidgin_conv_placement_set_current_func(PidginConvPlacementFunc func); | |
| 143 | PidginConvPlacementFunc pidgin_conv_placement_get_current_func(void); | |
| 15563 | 144 | void pidgin_conv_placement_place(PidginConversation *gtkconv); |
| 11581 | 145 | |
| 146 | /*@}*/ | |
| 147 | ||
| 15563 | 148 | #endif /* _PIDGIN_CONVERSATION_WINDOW_H_ */ |