This commit was manufactured by cvs2svn to create tag 'LAST_STABLE'.
[claws.git] / src / mimeview.h
blobb128b0a32fd5aae1c511658b64c591f169cb8ce5
1 /*
2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2002 Hiroyuki Yamamoto
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
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
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #ifndef __MIMEVIEW_H__
21 #define __MIMEVIEW_H__
23 #include <glib.h>
24 #include <gdk/gdk.h>
25 #include <gtk/gtkwidget.h>
26 #include <gtk/gtkctree.h>
28 typedef struct _MimeView MimeView;
30 #include "textview.h"
31 #include "imageview.h"
32 #include "messageview.h"
33 #include "procmime.h"
35 typedef enum
37 MIMEVIEW_TEXT,
38 MIMEVIEW_IMAGE
39 } MimeViewType;
41 struct _MimeView
43 GtkWidget *notebook;
44 GtkWidget *vbox;
46 GtkWidget *paned;
47 GtkWidget *scrolledwin;
48 GtkWidget *ctree;
49 GtkWidget *mime_vbox;
51 MimeViewType type;
53 GtkWidget *popupmenu;
54 GtkItemFactory *popupfactory;
56 GtkCTreeNode *opened;
58 TextView *textview;
59 ImageView *imageview;
61 MessageView *messageview;
63 MimeInfo *mimeinfo;
65 gchar *file;
68 MimeView *mimeview_create (void);
69 void mimeview_init (MimeView *mimeview);
70 void mimeview_show_message (MimeView *mimeview,
71 MimeInfo *mimeinfo,
72 const gchar *file);
73 void mimeview_destroy (MimeView *mimeview);
75 #if USE_GPGME
76 void mimeview_check_signature (MimeView *mimeview);
77 #endif
78 void mimeview_pass_key_press_event (MimeView *mimeview,
79 GdkEventKey *event);
81 #endif /* __MIMEVIEW_H__ */