message-view: bgo #727634 - Cannot copy build output
[anjuta.git] / plugins / message-view / message-view.h
blobe776bf38cdbf4e18cb9766e00f87044a5a824a23
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 <glib/gi18n.h>
22 #include <gtk/gtk.h>
23 #include <gdk/gdk.h>
24 #include <gdk/gdkkeysyms.h>
25 #include <libanjuta/anjuta-preferences.h>
26 #include <libanjuta/anjuta-serializer.h>
28 /* Message View Properties:
29 Property | Description
30 --------------------------------------------------
31 "label" (gchararray) The label of the view, can be translated
33 "truncate" (gboolean) Truncate messages
34 "highlight" (gboolean) Highlite error messages
37 G_BEGIN_DECLS
39 #define MESSAGE_VIEW_TYPE (message_view_get_type ())
40 #define MESSAGE_VIEW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MESSAGE_VIEW_TYPE, MessageView))
41 #define MESSAGE_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MESSAGE_VIEW_TYPE, MessageViewClass))
42 #define MESSAGE_IS_VIEW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MESSAGE_VIEW_TYPE))
43 #define MESSAGE_IS_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MESSAGE_VIEW_TYPE))
45 typedef struct _MessageView MessageView;
46 typedef struct _MessageViewClass MessageViewClass;
47 typedef struct _MessageViewPrivate MessageViewPrivate;
49 struct _MessageView
51 GtkBox parent;
53 /* private */
54 MessageViewPrivate* privat;
57 struct _MessageViewClass
59 GtkBoxClass parent;
62 typedef enum
64 MESSAGE_VIEW_SHOW_NORMAL = 1 << 0,
65 MESSAGE_VIEW_SHOW_INFO = 1 << 1,
66 MESSAGE_VIEW_SHOW_WARNING = 1 << 2,
67 MESSAGE_VIEW_SHOW_ERROR = 1 << 3,
68 } MessageViewFlags;
70 /* Note: MessageView implements IAnjutaMessageView interface */
71 GType message_view_get_type (void);
72 GtkWidget* message_view_new (GtkWidget* popup_menu);
74 void message_view_next(MessageView* view);
75 void message_view_previous(MessageView* view);
76 void message_view_copy_all(MessageView* view);
77 void message_view_copy(MessageView* view);
78 gboolean message_view_serialize (MessageView *view,
79 AnjutaSerializer *serializer);
80 gboolean message_view_deserialize (MessageView *view,
81 AnjutaSerializer *serializer);
83 MessageViewFlags message_view_get_flags (MessageView* view);
84 void message_view_set_flags (MessageView* view, MessageViewFlags flags);
85 gint message_view_get_count (MessageView* view, MessageViewFlags flags);
87 G_END_DECLS
89 #endif