2006-12-28 [wwp] 2.6.1cvs82
[claws.git] / src / prefs_common.h
index fcc30351fc7f8633068cd58a1749a1e614280e4b..b69087bf4b682f66debdfd500c67195fb90e4002 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;
@@ -138,11 +145,13 @@ struct _PrefsCommon
        gboolean enable_aspell;
        gchar *aspell_path;
        gchar *dictionary;
+       gchar *alt_dictionary;
        gulong misspelled_col;
        gint aspell_sugmode;
        gboolean check_while_typing;
        gboolean recheck_when_changing_dict;
        gboolean use_alternate;
+       gboolean use_both_dicts;
 #endif
         
        /* Display */
@@ -181,6 +190,7 @@ struct _PrefsCommon
 
        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;
@@ -272,6 +282,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;
@@ -297,6 +308,11 @@ struct _PrefsCommon
        gboolean gpg_warning;
 #endif /* USE_GPGME */
 
+       /* Addressbook */
+       gboolean addressbook_use_editaddress_dialog;
+       gint addressbook_hpaned_pos;
+       gint addressbook_vpaned_pos;
+
        /* Interface */
        gboolean sep_folder;
        gboolean sep_msg;
@@ -346,9 +362,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;
@@ -364,6 +387,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;
@@ -389,6 +414,7 @@ struct _PrefsCommon
        gint live_dangerously;
        gint never_send_retrcpt;
        gint hide_quotes;
+       gboolean unsafe_ssl_certs;
 };
 
 extern PrefsCommon prefs_common;
@@ -397,7 +423,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__ */