Statistics
| Revision:

root / src / textview.h @ 322

History | View | Annotate | Download (2.4 kB)

1 1 hiro
/*
2 1 hiro
 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 135 hiro
 * Copyright (C) 1999-2005 Hiroyuki Yamamoto
4 1 hiro
 *
5 1 hiro
 * This program is free software; you can redistribute it and/or modify
6 1 hiro
 * it under the terms of the GNU General Public License as published by
7 1 hiro
 * the Free Software Foundation; either version 2 of the License, or
8 1 hiro
 * (at your option) any later version.
9 1 hiro
 *
10 1 hiro
 * This program is distributed in the hope that it will be useful,
11 1 hiro
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 1 hiro
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 1 hiro
 * GNU General Public License for more details.
14 1 hiro
 *
15 1 hiro
 * You should have received a copy of the GNU General Public License
16 1 hiro
 * along with this program; if not, write to the Free Software
17 1 hiro
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 1 hiro
 */
19 1 hiro
20 1 hiro
#ifndef __TEXTVIEW_H__
21 1 hiro
#define __TEXTVIEW_H__
22 1 hiro
23 1 hiro
#ifdef HAVE_CONFIG_H
24 1 hiro
#  include "config.h"
25 1 hiro
#endif
26 1 hiro
27 1 hiro
#include <glib.h>
28 1 hiro
#include <gtk/gtkwidget.h>
29 1 hiro
30 1 hiro
typedef struct _TextView        TextView;
31 1 hiro
32 1 hiro
#include "messageview.h"
33 1 hiro
#include "procmime.h"
34 1 hiro
35 1 hiro
struct _TextView
36 1 hiro
{
37 1 hiro
        GtkWidget *vbox;
38 1 hiro
        GtkWidget *scrolledwin;
39 1 hiro
        GtkWidget *text;
40 1 hiro
41 1 hiro
        GtkWidget *popup_menu;
42 1 hiro
        GtkItemFactory *popup_factory;
43 1 hiro
44 1 hiro
        GSList *uri_list;
45 1 hiro
        gint body_pos;
46 1 hiro
47 1 hiro
        gboolean show_all_headers;
48 1 hiro
49 1 hiro
        MessageView *messageview;
50 1 hiro
};
51 1 hiro
52 269 hiro
TextView *textview_create                (void);
53 269 hiro
void textview_init                        (TextView        *textview);
54 269 hiro
void textview_update_message_colors        (void);
55 269 hiro
void textview_reflect_prefs                (TextView        *textview);
56 269 hiro
57 1 hiro
void textview_show_message        (TextView        *textview,
58 1 hiro
                                 MimeInfo        *mimeinfo,
59 1 hiro
                                 const gchar        *file);
60 1 hiro
void textview_show_part                (TextView        *textview,
61 1 hiro
                                 MimeInfo        *mimeinfo,
62 1 hiro
                                 FILE                *fp);
63 1 hiro
void textview_show_error        (TextView        *textview);
64 135 hiro
65 1 hiro
void textview_clear                (TextView        *textview);
66 1 hiro
void textview_destroy                (TextView        *textview);
67 135 hiro
68 1 hiro
void textview_set_all_headers        (TextView        *textview,
69 1 hiro
                                 gboolean         all_headers);
70 1 hiro
void textview_set_font                (TextView        *textview,
71 1 hiro
                                 const gchar        *codeset);
72 1 hiro
void textview_set_position        (TextView        *textview,
73 1 hiro
                                 gint                 pos);
74 135 hiro
75 1 hiro
void textview_scroll_one_line        (TextView        *textview,
76 1 hiro
                                 gboolean         up);
77 1 hiro
gboolean textview_scroll_page        (TextView        *textview,
78 1 hiro
                                 gboolean         up);
79 1 hiro
80 1 hiro
gboolean textview_search_string                        (TextView        *textview,
81 1 hiro
                                                 const gchar        *str,
82 1 hiro
                                                 gboolean         case_sens);
83 1 hiro
gboolean textview_search_string_backward        (TextView        *textview,
84 1 hiro
                                                 const gchar        *str,
85 1 hiro
                                                 gboolean         case_sens);
86 1 hiro
87 1 hiro
#endif /* __TEXTVIEW_H__ */