]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-chat-view.h
Updated Basque translation.
[empathy.git] / libempathy-gtk / empathy-chat-view.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 2002-2007 Imendio AB
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of the
8  * License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public
16  * License along with this program; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  * 
20  * Authors: Mikael Hallendal <micke@imendio.com>
21  *          Richard Hult <richard@imendio.com>
22  *          Martyn Russell <martyn@imendio.com>
23  */
24
25 #ifndef __EMPATHY_CHAT_VIEW_H__
26 #define __EMPATHY_CHAT_VIEW_H__
27
28 #include <gtk/gtktextview.h>
29
30 #include <libempathy/empathy-contact.h>
31 #include <libempathy/empathy-message.h>
32
33 G_BEGIN_DECLS
34
35 #define EMPATHY_TYPE_CHAT_VIEW         (empathy_chat_view_get_type ())
36 #define EMPATHY_CHAT_VIEW(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), EMPATHY_TYPE_CHAT_VIEW, EmpathyChatView))
37 #define EMPATHY_CHAT_VIEW_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), EMPATHY_TYPE_CHAT_VIEW, EmpathyChatViewClass))
38 #define EMPATHY_IS_CHAT_VIEW(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), EMPATHY_TYPE_CHAT_VIEW))
39 #define EMPATHY_IS_CHAT_VIEW_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), EMPATHY_TYPE_CHAT_VIEW))
40 #define EMPATHY_CHAT_VIEW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EMPATHY_TYPE_CHAT_VIEW, EmpathyChatViewClass))
41
42 typedef struct _EmpathyChatView      EmpathyChatView;
43 typedef struct _EmpathyChatViewClass EmpathyChatViewClass;
44
45 #include "empathy-theme.h"
46
47 struct _EmpathyChatView {
48         GtkTextView parent;
49         gpointer priv;
50 };
51
52 struct _EmpathyChatViewClass {
53         GtkTextViewClass parent_class;
54 };
55
56 GType            empathy_chat_view_get_type             (void) G_GNUC_CONST;
57 EmpathyChatView *empathy_chat_view_new                  (void);
58 void             empathy_chat_view_append_message       (EmpathyChatView *view,
59                                                          EmpathyMessage  *msg);
60 void             empathy_chat_view_append_event         (EmpathyChatView *view,
61                                                          const gchar     *str);
62 void             empathy_chat_view_append_button        (EmpathyChatView *view,
63                                                          const gchar     *message,
64                                                          GtkWidget       *button1,
65                                                          GtkWidget       *button2);
66 void             empathy_chat_view_scroll               (EmpathyChatView *view,
67                                                          gboolean         allow_scrolling);
68 void             empathy_chat_view_scroll_down          (EmpathyChatView *view);
69 gboolean         empathy_chat_view_get_selection_bounds (EmpathyChatView *view,
70                                                          GtkTextIter     *start,
71                                                          GtkTextIter     *end);
72 void             empathy_chat_view_clear                (EmpathyChatView *view);
73 gboolean         empathy_chat_view_find_previous        (EmpathyChatView *view,
74                                                          const gchar     *search_criteria,
75                                                          gboolean         new_search);
76 gboolean         empathy_chat_view_find_next            (EmpathyChatView *view,
77                                                          const gchar     *search_criteria,
78                                                          gboolean         new_search);
79 void             empathy_chat_view_find_abilities       (EmpathyChatView *view,
80                                                          const gchar     *search_criteria,
81                                                          gboolean        *can_do_previous,
82                                                          gboolean        *can_do_next);
83 void             empathy_chat_view_highlight            (EmpathyChatView *view,
84                                                          const gchar     *text);
85 void             empathy_chat_view_copy_clipboard       (EmpathyChatView *view);
86 EmpathyTheme *   empathy_chat_view_get_theme            (EmpathyChatView *view);
87 void             empathy_chat_view_set_theme            (EmpathyChatView *view,
88                                                          EmpathyTheme    *theme);
89 void             empathy_chat_view_set_margin           (EmpathyChatView *view,
90                                                          gint             margin);
91 GtkWidget *      empathy_chat_view_get_smiley_menu      (GCallback        callback,
92                                                          gpointer         user_data);
93 time_t           empathy_chat_view_get_last_timestamp   (EmpathyChatView *view);
94 void             empathy_chat_view_set_last_timestamp   (EmpathyChatView *view,
95                                                          time_t           timestamp);
96 EmpathyContact * empathy_chat_view_get_last_contact     (EmpathyChatView *view);
97 GdkPixbuf *      empathy_chat_view_get_avatar_pixbuf_with_cache (EmpathyContact *contact);
98
99 G_END_DECLS
100
101 #endif /* __EMPATHY_CHAT_VIEW_H__ */