2005-08-05 [paul] 1.9.13cvs14
[claws.git] / src / prefs_common.h
index 54ad20b4b17482e817afb4c7e62892551bcddbf4..ef3226355032eb268dcdf930912b0ed81e683366 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2004 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2005 Hiroyuki Yamamoto
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -30,6 +30,7 @@
 #include "summaryview.h"
 #include "codeconv.h"
 #include "textview.h"
+#include "procmime.h"
 
 typedef struct _PrefsCommon    PrefsCommon;
 
@@ -52,6 +53,12 @@ typedef enum {
        SEND_DIALOG_NEVER
 } SendDialogMode;
 
+typedef enum
+{
+       SELECTONENTRY_UNREAD = 1 << 0,
+       SELECTONENTRY_NEW    = 1 << 1
+} SelectOnEntry;
+
 typedef enum
 {
        NEXTUNREADMSGDIALOG_ALWAYS,
@@ -77,6 +84,7 @@ struct _PrefsCommon
 
        /* Send */
        gboolean savemsg;
+       gboolean confirm_send_queued_messages;
        SendDialogMode send_dialog_mode;
        gchar *outgoing_charset;
        TransferEncodingMethod encoding_method;
@@ -106,7 +114,6 @@ struct _PrefsCommon
        gchar *fw_quotefmt;
        gboolean forward_as_attachment;
        gboolean redirect_keep_from;
-       gboolean smart_wrapping;
        gboolean block_cursor;
        gchar *quote_chars;
        
@@ -136,6 +143,11 @@ struct _PrefsCommon
        gchar *smallfont;
        gchar *titlefont;
 
+       /* image viewer */
+       gboolean display_img;
+       gboolean resize_img;
+       gboolean inline_img;
+
        gboolean trans_hdr;
        gboolean display_folder_unread;
        gint ng_abbrev_len;
@@ -146,6 +158,7 @@ struct _PrefsCommon
        gboolean use_addr_book;
        gchar *date_format;
 
+       gboolean enable_rules_hint;
        gboolean enable_hscrollbar;
        gboolean bold_unread;
        gboolean enable_thread;
@@ -225,14 +238,13 @@ struct _PrefsCommon
        gboolean conv_mb_alnum;
        gboolean display_header_pane;
        gboolean display_header;
-       gboolean head_space;
        gint line_space;
+       gboolean render_html;
+       gboolean textview_cursor_visible;
        gboolean enable_smooth_scroll;
        gint scroll_step;
        gboolean scroll_halfpage;
 
-       gchar *force_charset;
-
        gboolean show_other_header;
        GSList *disphdr_list;
 
@@ -261,10 +273,11 @@ struct _PrefsCommon
        gboolean sep_msg;
        gboolean emulate_emacs;
        gboolean always_show_msg;
-       gboolean open_unread_on_enter;
        gboolean mark_as_read_on_new_window;
+       gboolean mark_as_read_delay;
        gboolean open_inbox_on_inc;
        gboolean immediate_exec;
+       SelectOnEntry select_on_entry;
        NextUnreadMsgDialogShow next_unread_msg_dialog;
        gboolean add_address_by_click;
        gchar *pixmap_theme_path;
@@ -300,17 +313,24 @@ struct _PrefsCommon
        gboolean work_offline;
        
        gint summary_quicksearch_type;
+       gint summary_quicksearch_sticky;
+       gint summary_quicksearch_recurse;
        gulong color_new;
        
        GList *summary_quicksearch_history;
+       
+       gint filteringwin_width;
+       gint filteringwin_height;
+       gint warn_dnd;
 };
 
 extern PrefsCommon prefs_common;
 
-void prefs_common_init         (void);
 void prefs_common_read_config  (void);
-void prefs_common_save_config  (void);
+void prefs_common_write_config (void);
 void prefs_common_open         (void);
 PrefsCommon *prefs_common_get  (void);
+void pref_set_textview_from_pref(GtkTextView *textview, gchar *txt);
+gchar *pref_get_pref_from_textview(GtkTextView *textview);
 
 #endif /* __PREFS_COMMON_H__ */