Tue, 26 Jun 2012 00:18:16 -0400
Move actions into the menu.
| 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 | { | |
|
33077
32318963e724
Move actions into the menu.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33076
diff
changeset
|
49 | GtkUIManager *ui; |
| 11581 | 50 | GtkWidget *menubar; |
| 51 | ||
|
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
|
52 | 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
|
53 | |
|
33077
32318963e724
Move actions into the menu.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33076
diff
changeset
|
54 | GtkAction *audio_call; |
|
32318963e724
Move actions into the menu.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33076
diff
changeset
|
55 | GtkAction *video_call; |
|
32318963e724
Move actions into the menu.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33076
diff
changeset
|
56 | GtkAction *audio_video_call; |
|
32318963e724
Move actions into the menu.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33076
diff
changeset
|
57 | |
|
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
|
58 | 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
|
59 | 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
|
60 | 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
|
61 | 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
|
62 | 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
|
63 | |
|
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 | 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
|
65 | 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
|
66 | 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
|
67 | 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
|
68 | 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
|
69 | |
|
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 *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
|
71 | 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
|
72 | |
|
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
|
73 | 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
|
74 | 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
|
75 | GtkAction *show_formatting_toolbar; |
|
26634
91dbaa876a22
Revert unintended space removal.
Michael Ruprecht <maiku@pidgin.im>
parents:
26526
diff
changeset
|
76 | |
| 11594 | 77 | GtkWidget *send_to; |
| 11581 | 78 | |
| 79 | GtkWidget *tray; | |
| 80 | ||
| 81 | GtkWidget *typing_icon; | |
| 82 | ||
| 83 | } menu; | |
| 84 | ||
| 85 | /* Tab dragging stuff. */ | |
| 86 | gboolean in_drag; | |
| 87 | gboolean in_predrag; | |
| 88 | ||
| 89 | gint drag_tab; | |
| 90 | ||
| 91 | gint drag_min_x, drag_max_x, drag_min_y, drag_max_y; | |
| 92 | ||
| 93 | gint drag_motion_signal; | |
| 94 | gint drag_leave_signal; | |
| 95 | }; | |
| 96 | ||
| 97 | /*@}*/ | |
| 98 | ||
|
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
|
99 | 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
|
100 | |
| 11581 | 101 | /************************************************************************** |
| 102 | * @name GTK+ Conversation Window API | |
| 103 | **************************************************************************/ | |
| 104 | /*@{*/ | |
| 105 | ||
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
106 | PidginWindow * pidgin_conv_window_new(void); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
107 | void pidgin_conv_window_destroy(PidginWindow *win); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
108 | GList *pidgin_conv_windows_get_list(void); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
109 | void pidgin_conv_window_show(PidginWindow *win); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
110 | void pidgin_conv_window_hide(PidginWindow *win); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
111 | void pidgin_conv_window_raise(PidginWindow *win); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
112 | 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
|
113 | 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
|
114 | 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
|
115 | 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
|
116 | PidginConversation *pidgin_conv_window_get_active_gtkconv(const PidginWindow *win); |
| 15884 | 117 | PurpleConversation *pidgin_conv_window_get_active_conversation(const PidginWindow *win); |
| 118 | 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
|
119 | gboolean pidgin_conv_window_has_focus(PidginWindow *win); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
120 | 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
|
121 | GList *pidgin_conv_window_get_gtkconvs(PidginWindow *win); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
122 | guint pidgin_conv_window_get_gtkconv_count(PidginWindow *win); |
| 11581 | 123 | |
| 15884 | 124 | PidginWindow *pidgin_conv_window_first_with_type(PurpleConversationType type); |
| 125 | PidginWindow *pidgin_conv_window_last_with_type(PurpleConversationType type); | |
| 11581 | 126 | |
| 127 | /*@}*/ | |
| 128 | ||
| 129 | /************************************************************************** | |
| 130 | * @name GTK+ Conversation Placement API | |
| 131 | **************************************************************************/ | |
| 132 | /*@{*/ | |
| 133 | ||
| 15882 | 134 | typedef void (*PidginConvPlacementFunc)(PidginConversation *); |
| 11581 | 135 | |
| 15563 | 136 | GList *pidgin_conv_placement_get_options(void); |
| 15882 | 137 | void pidgin_conv_placement_add_fnc(const char *id, const char *name, PidginConvPlacementFunc fnc); |
| 15563 | 138 | void pidgin_conv_placement_remove_fnc(const char *id); |
| 139 | const char *pidgin_conv_placement_get_name(const char *id); | |
| 15882 | 140 | PidginConvPlacementFunc pidgin_conv_placement_get_fnc(const char *id); |
| 141 | void pidgin_conv_placement_set_current_func(PidginConvPlacementFunc func); | |
| 142 | PidginConvPlacementFunc pidgin_conv_placement_get_current_func(void); | |
| 15563 | 143 | void pidgin_conv_placement_place(PidginConversation *gtkconv); |
| 11581 | 144 | |
| 145 | /*@}*/ | |
| 146 | ||
|
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
|
147 | 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
|
148 | |
| 15563 | 149 | #endif /* _PIDGIN_CONVERSATION_WINDOW_H_ */ |