root / src / textview.h @ 548
History | View | Annotate | Download (2.5 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 | 364 | hiro | #include <gtk/gtktexttag.h> |
| 30 | 1 | hiro | |
| 31 | 1 | hiro | typedef struct _TextView TextView; |
| 32 | 1 | hiro | |
| 33 | 1 | hiro | #include "messageview.h" |
| 34 | 1 | hiro | #include "procmime.h" |
| 35 | 1 | hiro | |
| 36 | 1 | hiro | struct _TextView
|
| 37 | 1 | hiro | {
|
| 38 | 1 | hiro | GtkWidget *vbox; |
| 39 | 1 | hiro | GtkWidget *scrolledwin; |
| 40 | 1 | hiro | GtkWidget *text; |
| 41 | 1 | hiro | |
| 42 | 1 | hiro | GtkWidget *popup_menu; |
| 43 | 1 | hiro | GtkItemFactory *popup_factory; |
| 44 | 1 | hiro | |
| 45 | 364 | hiro | GtkTextTag *quote0_tag; |
| 46 | 364 | hiro | GtkTextTag *quote1_tag; |
| 47 | 364 | hiro | GtkTextTag *quote2_tag; |
| 48 | 364 | hiro | GtkTextTag *link_tag; |
| 49 | 364 | hiro | GtkTextTag *hover_link_tag; |
| 50 | 364 | hiro | |
| 51 | 1 | hiro | GSList *uri_list; |
| 52 | 1 | hiro | gint body_pos; |
| 53 | 1 | hiro | |
| 54 | 1 | hiro | gboolean show_all_headers; |
| 55 | 1 | hiro | |
| 56 | 1 | hiro | MessageView *messageview; |
| 57 | 1 | hiro | }; |
| 58 | 1 | hiro | |
| 59 | 269 | hiro | TextView *textview_create (void);
|
| 60 | 269 | hiro | void textview_init (TextView *textview);
|
| 61 | 269 | hiro | void textview_reflect_prefs (TextView *textview);
|
| 62 | 269 | hiro | |
| 63 | 1 | hiro | void textview_show_message (TextView *textview,
|
| 64 | 1 | hiro | MimeInfo *mimeinfo, |
| 65 | 1 | hiro | const gchar *file);
|
| 66 | 1 | hiro | void textview_show_part (TextView *textview,
|
| 67 | 1 | hiro | MimeInfo *mimeinfo, |
| 68 | 1 | hiro | FILE *fp); |
| 69 | 1 | hiro | void textview_show_error (TextView *textview);
|
| 70 | 135 | hiro | |
| 71 | 1 | hiro | void textview_clear (TextView *textview);
|
| 72 | 1 | hiro | void textview_destroy (TextView *textview);
|
| 73 | 135 | hiro | |
| 74 | 1 | hiro | void textview_set_all_headers (TextView *textview,
|
| 75 | 1 | hiro | gboolean all_headers); |
| 76 | 1 | hiro | void textview_set_font (TextView *textview,
|
| 77 | 1 | hiro | const gchar *codeset);
|
| 78 | 1 | hiro | void textview_set_position (TextView *textview,
|
| 79 | 1 | hiro | gint pos); |
| 80 | 135 | hiro | |
| 81 | 1 | hiro | void textview_scroll_one_line (TextView *textview,
|
| 82 | 1 | hiro | gboolean up); |
| 83 | 1 | hiro | gboolean textview_scroll_page (TextView *textview, |
| 84 | 1 | hiro | gboolean up); |
| 85 | 1 | hiro | |
| 86 | 1 | hiro | gboolean textview_search_string (TextView *textview, |
| 87 | 1 | hiro | const gchar *str,
|
| 88 | 1 | hiro | gboolean case_sens); |
| 89 | 1 | hiro | gboolean textview_search_string_backward (TextView *textview, |
| 90 | 1 | hiro | const gchar *str,
|
| 91 | 1 | hiro | gboolean case_sens); |
| 92 | 1 | hiro | |
| 93 | 1 | hiro | #endif /* __TEXTVIEW_H__ */ |