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
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
;
41 AnjutaMsgmanPriv
*priv
;
44 struct _AnjutaMsgmanClass
46 GtkNotebookClass parent_class
;
49 void (*view_changed
) (AnjutaMsgman
*obj
);
52 GType
anjuta_msgman_get_type (void);
53 GtkWidget
*anjuta_msgman_new (GtkWidget
* popup_menu
);
55 MessageView
*anjuta_msgman_add_view (AnjutaMsgman
* msgman
,
57 const gchar
* pixmap
);
58 void anjuta_msgman_remove_view (AnjutaMsgman
* msgman
, MessageView
* view
);
59 void anjuta_msgman_remove_all_views (AnjutaMsgman
* msgman
);
61 MessageView
*anjuta_msgman_get_current_view (AnjutaMsgman
* msgman
);
62 MessageView
*anjuta_msgman_get_view_by_name (AnjutaMsgman
* msgman
,
65 void anjuta_msgman_set_current_view (AnjutaMsgman
* msgman
, MessageView
* mv
);
67 GList
*anjuta_msgman_get_all_views (AnjutaMsgman
* msgman
);
69 void anjuta_msgman_set_view_title (AnjutaMsgman
*msgman
, MessageView
*view
,
72 void anjuta_msgman_set_view_icon (AnjutaMsgman
*msgman
, MessageView
*view
,
73 GdkPixbufAnimation
*icon
);
75 void anjuta_msgman_set_view_icon_from_stock (AnjutaMsgman
*msgman
, MessageView
*view
,
78 gboolean
anjuta_msgman_serialize (AnjutaMsgman
*msgman
,
79 AnjutaSerializer
*serializer
);
80 gboolean
anjuta_msgman_deserialize (AnjutaMsgman
*msgman
,
81 AnjutaSerializer
*serializer
);
83 GtkWidget
* anjuta_msgman_get_tabber (AnjutaMsgman
* msgman
);
86 on_notify_message_pref (GSettings
* settings
, const gchar
* key
,
89 #endif /* _ANJUTA_MSGMAN_H */