2006-12-01 [wwp] 2.6.0cvs77
[claws.git] / src / prefs_common.h
index 95418f7f46c9c947141212b53f06d2db0ca5d580..ba818eb391bcb18ac9ead4c4e40b50f3e69ace6f 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2006 Hiroyuki Yamamoto and the Sylpheed-Claws team
+ * Copyright (C) 1999-2006 Hiroyuki Yamamoto and the Claws Mail team
  *
  * 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
@@ -94,6 +94,8 @@ struct _PrefsCommon
        gboolean newmail_notify_manu;
        gchar   *newmail_notify_cmd;
        RecvDialogMode recv_dialog_mode;
+       gint receivewin_width;
+       gint receivewin_height;
        gboolean close_recv_dialog;
        gboolean no_recv_err_panel;
 
@@ -101,6 +103,8 @@ struct _PrefsCommon
        gboolean savemsg;
        gboolean confirm_send_queued_messages;
        SendDialogMode send_dialog_mode;
+       gint sendwin_width;
+       gint sendwin_height;
        gchar *outgoing_charset;
        TransferEncodingMethod encoding_method;
 
@@ -122,6 +126,9 @@ struct _PrefsCommon
        gint autosave_length;
        gboolean compose_no_markup;
        ComposeDndInsertOrAttach compose_dnd_mode;
+       gboolean compose_with_format;
+       gchar *compose_subject_format;
+       gchar *compose_body_format;
 
        /* Quote */
        gboolean reply_with_quote;
@@ -179,7 +186,10 @@ struct _PrefsCommon
        gboolean use_addr_book;
        gchar *date_format;
 
-       gboolean enable_rules_hint;
+       gboolean use_stripes_everywhere;
+       gboolean use_stripes_in_summaries; /* overrides if use_stripes_everywhere is set to TRUE */
+       gint stripes_color_offset;
+       gboolean enable_dotted_lines;
        gboolean enable_hscrollbar;
        gboolean bold_unread;
        gboolean enable_thread;
@@ -270,6 +280,7 @@ struct _PrefsCommon
        gboolean enable_smooth_scroll;
        gint scroll_step;
        gboolean scroll_halfpage;
+       gboolean respect_flowed_format;
 
        gboolean show_other_header;
        gboolean use_different_print_font;
@@ -278,9 +289,7 @@ struct _PrefsCommon
        gboolean attach_desc;
 
        /* MIME viewer */
-       gchar *mime_image_viewer;
        gchar *mime_textviewer;
-       gchar *mime_audio_player;
        gchar *mime_open_cmd;
        gchar *attach_save_dir;
        gchar *attach_load_dir;
@@ -297,6 +306,9 @@ struct _PrefsCommon
        gboolean gpg_warning;
 #endif /* USE_GPGME */
 
+       /* Addressbook */
+       gboolean addressbook_use_editaddress_dialog;
+
        /* Interface */
        gboolean sep_folder;
        gboolean sep_msg;
@@ -312,6 +324,8 @@ struct _PrefsCommon
        gchar *pixmap_theme_path;
        int hover_timeout; /* msecs mouse hover timeout */
        gboolean ask_mark_all_read;
+       gboolean ask_apply_per_account_filtering_rules;
+       gint apply_per_account_filtering_rules;
 
        /* Other */
        gchar *uri_cmd;
@@ -344,9 +358,16 @@ struct _PrefsCommon
        gint summary_quicksearch_type;
        gint summary_quicksearch_sticky;
        gint summary_quicksearch_recurse;
+       gint summary_quicksearch_dynamic;
        gulong color_new;
        
        GList *summary_quicksearch_history;
+       GList *summary_search_from_history;
+       GList *summary_search_to_history;
+       GList *summary_search_subject_history;
+       GList *summary_search_body_history;
+       GList *summary_search_adv_condition_history;
+       GList *message_search_history;
 
        gint filteringwin_width;
        gint filteringwin_height;
@@ -362,6 +383,8 @@ struct _PrefsCommon
        gint addressbookwin_height;
        gint addressbookeditpersonwin_width;
        gint addressbookeditpersonwin_height;
+       gint addressbookeditgroupwin_width;
+       gint addressbookeditgroupwin_height;
        gint pluginswin_width;
        gint pluginswin_height;
        gint prefswin_width;
@@ -378,12 +401,15 @@ struct _PrefsCommon
        gint folderselwin_height;
        gint addressaddwin_width;
        gint addressaddwin_height;
+       gint addressbook_folderselwin_width;
+       gint addressbook_folderselwin_height;
 
        gint warn_dnd;
        gint broken_are_utf8;
        gint skip_ssl_cert_check;
        gint live_dangerously;
        gint never_send_retrcpt;
+       gint hide_quotes;
 };
 
 extern PrefsCommon prefs_common;
@@ -392,7 +418,11 @@ void prefs_common_read_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);
+void pref_get_unescaped_pref(gchar *out, const gchar *in);
+void pref_get_escaped_pref(gchar *out, const gchar *in);
+void pref_set_textview_from_pref(GtkTextView *textview, const gchar *txt);
+void pref_set_entry_from_pref(GtkEntry *entry, const gchar *txt);
 gchar *pref_get_pref_from_textview(GtkTextView *textview);
+gchar *pref_get_pref_from_entry(GtkEntry *entry);
 
 #endif /* __PREFS_COMMON_H__ */