Tue, 28 Feb 2012 04:25:49 +0000
propagate from branch 'im.pidgin.pidgin' (head 1edfa83f6ff820fb7904d5bab5b0943f691976f6)
to branch 'im.pidgin.cpw.qulogic.gtk3-required' (head c73cb391930b3e14ef63dedb389f5bfe01077508)
| 11581 | 1 | /** |
| 2 | * @file gtkconvwin.h GTK+ Conversation Window API | |
|
16254
eeb2bba4dc94
Rename the Doxygen group from gtkui to pidgin.
Richard Laager <rlaager@pidgin.im>
parents:
15931
diff
changeset
|
3 | * @ingroup pidgin |
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
4 | */ |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
5 | |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
6 | /* pidgin |
| 11581 | 7 | * |
| 15572 | 8 | * Pidgin is the legal property of its developers, whose names are too numerous |
| 11581 | 9 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 10 | * source distribution. | |
| 11 | * | |
| 12 | * This program is free software; you can redistribute it and/or modify | |
| 13 | * it under the terms of the GNU General Public License as published by | |
| 14 | * the Free Software Foundation; either version 2 of the License, or | |
| 15 | * (at your option) any later version. | |
| 16 | * | |
| 17 | * This program is distributed in the hope that it will be useful, | |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 20 | * GNU General Public License for more details. | |
| 21 | * | |
| 22 | * You should have received a copy of the GNU General Public License | |
| 23 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
16254
diff
changeset
|
24 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 11581 | 25 | */ |
| 15563 | 26 | #ifndef _PIDGIN_CONVERSATION_WINDOW_H_ |
| 27 | #define _PIDGIN_CONVERSATION_WINDOW_H_ | |
| 11581 | 28 | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
29 | typedef struct _PidginWindow PidginWindow; |
| 11581 | 30 | |
| 31 | ||
| 32 | /************************************************************************** | |
| 33 | * @name Structures | |
| 34 | **************************************************************************/ | |
| 35 | /*@{*/ | |
| 36 | ||
| 37 | /** | |
| 38 | * A GTK+ representation of a graphical window containing one or more | |
| 39 | * conversations. | |
| 40 | */ | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
41 | struct _PidginWindow |
| 11581 | 42 | { |
| 43 | GtkWidget *window; /**< The window. */ | |
| 44 | GtkWidget *notebook; /**< The notebook of conversations. */ | |
| 45 | GList *gtkconvs; | |
| 46 | ||
| 47 | struct | |
| 48 | { | |
| 49 | GtkWidget *menubar; | |
| 50 | ||
|
32359
ce65a3b059ac
Use GtkActions instead of GtkWidgets for the shortcuts to items in the menu
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32358
diff
changeset
|
51 | GtkAction *view_log; |
|
ce65a3b059ac
Use GtkActions instead of GtkWidgets for the shortcuts to items in the menu
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32358
diff
changeset
|
52 | |
|
ce65a3b059ac
Use GtkActions instead of GtkWidgets for the shortcuts to items in the menu
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32358
diff
changeset
|
53 | GtkAction *send_file; |
|
32438
dc8991868906
A boring and large patch so I can merge heads.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32386
diff
changeset
|
54 | GtkAction *get_attention; |
|
32359
ce65a3b059ac
Use GtkActions instead of GtkWidgets for the shortcuts to items in the menu
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32358
diff
changeset
|
55 | GtkAction *add_pounce; |
|
ce65a3b059ac
Use GtkActions instead of GtkWidgets for the shortcuts to items in the menu
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32358
diff
changeset
|
56 | GtkAction *get_info; |
|
ce65a3b059ac
Use GtkActions instead of GtkWidgets for the shortcuts to items in the menu
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32358
diff
changeset
|
57 | GtkAction *invite; |
|
ce65a3b059ac
Use GtkActions instead of GtkWidgets for the shortcuts to items in the menu
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32358
diff
changeset
|
58 | |
|
ce65a3b059ac
Use GtkActions instead of GtkWidgets for the shortcuts to items in the menu
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32358
diff
changeset
|
59 | GtkAction *alias; |
|
ce65a3b059ac
Use GtkActions instead of GtkWidgets for the shortcuts to items in the menu
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32358
diff
changeset
|
60 | GtkAction *block; |
|
ce65a3b059ac
Use GtkActions instead of GtkWidgets for the shortcuts to items in the menu
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32358
diff
changeset
|
61 | GtkAction *unblock; |
|
ce65a3b059ac
Use GtkActions instead of GtkWidgets for the shortcuts to items in the menu
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32358
diff
changeset
|
62 | GtkAction *add; |
|
ce65a3b059ac
Use GtkActions instead of GtkWidgets for the shortcuts to items in the menu
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32358
diff
changeset
|
63 | GtkAction *remove; |
|
ce65a3b059ac
Use GtkActions instead of GtkWidgets for the shortcuts to items in the menu
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32358
diff
changeset
|
64 | |
|
ce65a3b059ac
Use GtkActions instead of GtkWidgets for the shortcuts to items in the menu
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32358
diff
changeset
|
65 | GtkAction *insert_link; |
|
ce65a3b059ac
Use GtkActions instead of GtkWidgets for the shortcuts to items in the menu
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32358
diff
changeset
|
66 | GtkAction *insert_image; |
|
ce65a3b059ac
Use GtkActions instead of GtkWidgets for the shortcuts to items in the menu
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32358
diff
changeset
|
67 | |
|
ce65a3b059ac
Use GtkActions instead of GtkWidgets for the shortcuts to items in the menu
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32358
diff
changeset
|
68 | GtkAction *logging; |
|
ce65a3b059ac
Use GtkActions instead of GtkWidgets for the shortcuts to items in the menu
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32358
diff
changeset
|
69 | GtkAction *sounds; |
|
ce65a3b059ac
Use GtkActions instead of GtkWidgets for the shortcuts to items in the menu
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32358
diff
changeset
|
70 | GtkAction *show_formatting_toolbar; |
|
ce65a3b059ac
Use GtkActions instead of GtkWidgets for the shortcuts to items in the menu
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32358
diff
changeset
|
71 | GtkAction *show_timestamps; |
|
26634
91dbaa876a22
Revert unintended space removal.
Michael Ruprecht <maiku@pidgin.im>
parents:
26526
diff
changeset
|
72 | |
| 11594 | 73 | GtkWidget *send_to; |
| 11581 | 74 | |
| 75 | GtkWidget *tray; | |
| 76 | ||
| 77 | GtkWidget *typing_icon; | |
| 78 | ||
|
32358
2d2e5d960297
Start converting the conversation window to UI manager. The auto-generated
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26634
diff
changeset
|
79 | GtkUIManager *ui; |
| 11581 | 80 | |
| 81 | } menu; | |
| 82 | ||
|
14432
3710852cdab5
[gaim-migrate @ 17076]
Hil <allhilbert@users.sourceforge.net>
parents:
14253
diff
changeset
|
83 | struct |
|
3710852cdab5
[gaim-migrate @ 17076]
Hil <allhilbert@users.sourceforge.net>
parents:
14253
diff
changeset
|
84 | { |
|
3710852cdab5
[gaim-migrate @ 17076]
Hil <allhilbert@users.sourceforge.net>
parents:
14253
diff
changeset
|
85 | GtkWidget *search; |
|
3710852cdab5
[gaim-migrate @ 17076]
Hil <allhilbert@users.sourceforge.net>
parents:
14253
diff
changeset
|
86 | |
|
3710852cdab5
[gaim-migrate @ 17076]
Hil <allhilbert@users.sourceforge.net>
parents:
14253
diff
changeset
|
87 | } dialogs; |
|
3710852cdab5
[gaim-migrate @ 17076]
Hil <allhilbert@users.sourceforge.net>
parents:
14253
diff
changeset
|
88 | |
| 11581 | 89 | /* Tab dragging stuff. */ |
| 90 | gboolean in_drag; | |
| 91 | gboolean in_predrag; | |
| 92 | ||
| 93 | gint drag_tab; | |
| 94 | ||
| 95 | gint drag_min_x, drag_max_x, drag_min_y, drag_max_y; | |
| 96 | ||
| 97 | gint drag_motion_signal; | |
| 98 | gint drag_leave_signal; | |
|
26525
ad90b00d3bc7
Move these variables to the end to not break ABI.
Michael Ruprecht <maiku@pidgin.im>
parents:
23712
diff
changeset
|
99 | |
| 26526 | 100 | /* Media menu options. */ |
|
32359
ce65a3b059ac
Use GtkActions instead of GtkWidgets for the shortcuts to items in the menu
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32358
diff
changeset
|
101 | GtkAction *audio_call; |
|
ce65a3b059ac
Use GtkActions instead of GtkWidgets for the shortcuts to items in the menu
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32358
diff
changeset
|
102 | GtkAction *video_call; |
|
ce65a3b059ac
Use GtkActions instead of GtkWidgets for the shortcuts to items in the menu
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32358
diff
changeset
|
103 | GtkAction *audio_video_call; |
| 11581 | 104 | }; |
| 105 | ||
| 106 | /*@}*/ | |
| 107 | ||
|
32790
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32696
diff
changeset
|
108 | G_BEGIN_DECLS |
|
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32696
diff
changeset
|
109 | |
| 11581 | 110 | /************************************************************************** |
| 111 | * @name GTK+ Conversation Window API | |
| 112 | **************************************************************************/ | |
| 113 | /*@{*/ | |
| 114 | ||
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
115 | PidginWindow * pidgin_conv_window_new(void); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
116 | void pidgin_conv_window_destroy(PidginWindow *win); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
117 | GList *pidgin_conv_windows_get_list(void); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
118 | void pidgin_conv_window_show(PidginWindow *win); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
119 | void pidgin_conv_window_hide(PidginWindow *win); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
120 | void pidgin_conv_window_raise(PidginWindow *win); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
121 | 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
|
122 | 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
|
123 | 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
|
124 | 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
|
125 | PidginConversation *pidgin_conv_window_get_active_gtkconv(const PidginWindow *win); |
| 15884 | 126 | PurpleConversation *pidgin_conv_window_get_active_conversation(const PidginWindow *win); |
| 127 | gboolean pidgin_conv_window_is_active_conversation(const PurpleConversation *conv); | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
128 | gboolean pidgin_conv_window_has_focus(PidginWindow *win); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
129 | 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
|
130 | GList *pidgin_conv_window_get_gtkconvs(PidginWindow *win); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
131 | guint pidgin_conv_window_get_gtkconv_count(PidginWindow *win); |
| 11581 | 132 | |
| 15884 | 133 | PidginWindow *pidgin_conv_window_first_with_type(PurpleConversationType type); |
| 134 | PidginWindow *pidgin_conv_window_last_with_type(PurpleConversationType type); | |
| 11581 | 135 | |
| 136 | /*@}*/ | |
| 137 | ||
| 138 | /************************************************************************** | |
| 139 | * @name GTK+ Conversation Placement API | |
| 140 | **************************************************************************/ | |
| 141 | /*@{*/ | |
| 142 | ||
| 15882 | 143 | typedef void (*PidginConvPlacementFunc)(PidginConversation *); |
| 11581 | 144 | |
| 15563 | 145 | GList *pidgin_conv_placement_get_options(void); |
| 15882 | 146 | void pidgin_conv_placement_add_fnc(const char *id, const char *name, PidginConvPlacementFunc fnc); |
| 15563 | 147 | void pidgin_conv_placement_remove_fnc(const char *id); |
| 148 | const char *pidgin_conv_placement_get_name(const char *id); | |
| 15882 | 149 | PidginConvPlacementFunc pidgin_conv_placement_get_fnc(const char *id); |
| 150 | void pidgin_conv_placement_set_current_func(PidginConvPlacementFunc func); | |
| 151 | PidginConvPlacementFunc pidgin_conv_placement_get_current_func(void); | |
| 15563 | 152 | void pidgin_conv_placement_place(PidginConversation *gtkconv); |
| 11581 | 153 | |
| 154 | /*@}*/ | |
| 155 | ||
|
32790
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32696
diff
changeset
|
156 | G_END_DECLS |
|
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32696
diff
changeset
|
157 | |
| 15563 | 158 | #endif /* _PIDGIN_CONVERSATION_WINDOW_H_ */ |