Updated Spanish translation
[anjuta-git-plugin.git] / plugins / message-view / message-view.h
blobef104d5ba31185ffbf3bc321a3220b41756992a2
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /* (c) 2003 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 MESSAGE_VIEW_H
19 #define MESSAGE_VIEW_H
21 #include <gnome.h>
22 #include <libanjuta/anjuta-preferences.h>
23 #include <libanjuta/anjuta-serializer.h>
25 /* Message View Properties:
26 Property | Description
27 --------------------------------------------------
28 "label" (gchararray) The label of the view, can be translated
30 "truncate" (gboolean) Truncate messages
31 "highlight" (gboolean) Highlite error messages
34 G_BEGIN_DECLS
36 #define MESSAGE_VIEW_TYPE (message_view_get_type ())
37 #define MESSAGE_VIEW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MESSAGE_VIEW_TYPE, MessageView))
38 #define MESSAGE_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MESSAGE_VIEW_TYPE, MessageViewClass))
39 #define MESSAGE_IS_VIEW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MESSAGE_VIEW_TYPE))
40 #define MESSAGE_IS_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MESSAGE_VIEW_TYPE))
42 typedef struct _MessageView MessageView;
43 typedef struct _MessageViewClass MessageViewClass;
44 typedef struct _MessageViewPrivate MessageViewPrivate;
46 struct _MessageView
48 GtkHBox parent;
50 /* private */
51 MessageViewPrivate* privat;
54 struct _MessageViewClass
56 GtkHBoxClass parent;
57 };
59 /* Note: MessageView implements IAnjutaMessageView interface */
60 GType message_view_get_type (void);
61 GtkWidget* message_view_new (AnjutaPreferences* prefs, GtkWidget* popup_menu);
63 void message_view_next(MessageView* view);
64 void message_view_previous(MessageView* view);
65 void message_view_save(MessageView* view);
66 gboolean message_view_serialize (MessageView *view,
67 AnjutaSerializer *serializer);
68 gboolean message_view_deserialize (MessageView *view,
69 AnjutaSerializer *serializer);
71 G_END_DECLS
73 #endif