Updated Spanish translation
[anjuta-git-plugin.git] / plugins / message-view / anjuta-msgman.h
blobde518bb262cdee3935b5bce627bfa19101a368d8
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /* anjuta-msgman.h (c) 2004 Johannes Schmid
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Library General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 #ifndef _ANJUTA_MSGMAN_H
19 #define _ANJUTA_MSGMAN_H
21 #include <gtk/gtknotebook.h>
22 #include <libanjuta/anjuta-preferences.h>
23 #include "message-view.h"
25 #define MESSAGES_TABS_POS "messages.tab.position"
27 #define ANJUTA_TYPE_MSGMAN (anjuta_msgman_get_type ())
28 #define ANJUTA_MSGMAN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), ANJUTA_TYPE_MSGMAN, AnjutaMsgman))
29 #define ANJUTA_MSGMAN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), ANJUTA_TYPE_MSGMAN, AnjutaMsgmanClass))
30 #define ANJUTA_IS_MSGMAN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), ANJUTA_TYPE_MSGMAN))
31 #define ANJUTA_IS_MSGMAN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), ANJUTA_TYPE_MSGMAN))
33 typedef struct _AnjutaMsgman AnjutaMsgman;
34 typedef struct _AnjutaMsgmanPriv AnjutaMsgmanPriv;
35 typedef struct _AnjutaMsgmanClass AnjutaMsgmanClass;
37 struct _AnjutaMsgman
39 GtkNotebook parent;
40 AnjutaMsgmanPriv *priv;
42 /* Signal */
43 void (*view_changed) (AnjutaMsgman *obj);
46 struct _AnjutaMsgmanClass
48 GtkNotebookClass parent_class;
51 GType anjuta_msgman_get_type (void);
52 GtkWidget *anjuta_msgman_new (AnjutaPreferences * pref, GtkWidget* popup_menu);
54 MessageView *anjuta_msgman_add_view (AnjutaMsgman * msgman,
55 const gchar * name,
56 const gchar * pixmap);
57 void anjuta_msgman_remove_view (AnjutaMsgman * msgman, MessageView * view);
58 void anjuta_msgman_remove_all_views (AnjutaMsgman * msgman);
60 MessageView *anjuta_msgman_get_current_view (AnjutaMsgman * msgman);
61 MessageView *anjuta_msgman_get_view_by_name (AnjutaMsgman * msgman,
62 const gchar * name);
64 void anjuta_msgman_set_current_view (AnjutaMsgman * msgman, MessageView * mv);
66 GList *anjuta_msgman_get_all_views (AnjutaMsgman * msgman);
68 void anjuta_msgman_set_view_title (AnjutaMsgman *msgman, MessageView *view,
69 const gchar *title);
71 gboolean anjuta_msgman_serialize (AnjutaMsgman *msgman,
72 AnjutaSerializer *serializer);
73 gboolean anjuta_msgman_deserialize (AnjutaMsgman *msgman,
74 AnjutaSerializer *serializer);
76 void
77 on_gconf_notify_message_pref (GConfClient *gclient, guint cnxn_id,
78 GConfEntry *entry, gpointer user_data);
80 #endif /* _ANJUTA_MSGMAN_H */