2009-02-06 [holger] 3.7.0cvs55
[claws.git] / src / prefs_common.h
index a67d5b2a614f1b61586052b8e9877db3d94ce908..329250c6df2b573cc44c087015d6a1ab528c9879 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2007 Hiroyuki Yamamoto and the Claws Mail team
+ * Copyright (C) 1999-2009 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
@@ -88,6 +88,13 @@ typedef enum
        NEXTUNREADMSGDIALOG_ASSUME_NO
 } NextUnreadMsgDialogShow;
 
+typedef enum
+{
+       OPENMSG_REQUEST_ONLY = 0,
+       OPENMSG_ALWAYS = 1,
+       OPENMSG_WHEN_VIEW_VISIBLE
+} ShowMsgPolicy;
+
 struct _PrefsCommon
 {
 #ifdef MAEMO
@@ -132,7 +139,9 @@ struct _PrefsCommon
        gint linewrap_len;
        gboolean linewrap_quote;
        gboolean linewrap_pastes;
+       gboolean primary_paste_unselects;
        gboolean autowrap;
+       gboolean auto_indent;
        gboolean auto_exteditor;
        gboolean reply_account_autosel;
        gboolean default_reply_list;
@@ -158,18 +167,14 @@ struct _PrefsCommon
        gboolean block_cursor;
        gchar *quote_chars;
        
-#if USE_ASPELL
        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 */
        /* obsolete fonts */
@@ -272,6 +277,7 @@ struct _PrefsCommon
        gint mainwin_width;
        gint mainwin_height;
        gint mainwin_maximised;
+       gint mainwin_fullscreen;
 
        gint msgwin_width;
        gint msgwin_height;
@@ -324,16 +330,6 @@ struct _PrefsCommon
 
        GList *mime_open_cmd_history;
 
-#if USE_GPGME
-       /* Privacy */
-       gboolean auto_check_signatures;
-       gboolean gpg_signature_popup;
-       gboolean store_passphrase;
-       gint store_passphrase_timeout;
-       gboolean passphrase_grab;
-       gboolean gpg_warning;
-#endif /* USE_GPGME */
-
        /* Addressbook */
        gboolean addressbook_use_editaddress_dialog;
        gint addressbook_hpaned_pos;
@@ -345,7 +341,7 @@ struct _PrefsCommon
 
        gint statusbar_update_step;
        gboolean emulate_emacs;
-       gboolean always_show_msg;
+       ShowMsgPolicy always_show_msg;
        gboolean mark_as_read_on_new_window;
        gboolean mark_as_read_delay;
        gboolean immediate_exec;
@@ -363,8 +359,10 @@ struct _PrefsCommon
        gint apply_per_account_filtering_rules;
 
        /* Other */
+#ifndef G_OS_WIN32
        gchar *uri_cmd;
        gchar *print_cmd;
+#endif
        gchar *ext_editor_cmd;
        gboolean cmds_use_system_default;
 
@@ -395,6 +393,7 @@ struct _PrefsCommon
     guint filtering_debug_loglength;
 
     gboolean confirm_on_exit;
+       gboolean session_passwords;
        gboolean clean_on_exit;
        gboolean ask_on_clean;
        gboolean warn_queued_on_exit;
@@ -425,6 +424,7 @@ struct _PrefsCommon
        GList *summary_search_body_history;
        GList *summary_search_adv_condition_history;
        GList *message_search_history;
+       GList *compose_save_to_history;
 
        gint filteringwin_width;
        gint filteringwin_height;
@@ -478,6 +478,11 @@ struct _PrefsCommon
        
        gchar *print_paper_type;
        gint print_paper_orientation;
+  gint print_margin_top;
+  gint print_margin_bottom;
+  gint print_margin_left;
+  gint print_margin_right;
+  
        gint print_use_color;
        gint print_use_collate;
        gint print_use_reverse;
@@ -489,11 +494,14 @@ struct _PrefsCommon
        gboolean use_networkmanager;
        gboolean use_shred;
        gboolean two_line_vert;
+       gboolean inherit_folder_props;
 
 };
 
 extern PrefsCommon prefs_common;
 
+PrefsCommon *prefs_common_get_prefs(void);
+
 GList *prefs_common_read_history_from_dir_with_defaults(const gchar *dirname, const gchar *history,
                                                                                                                          GList *default_list);
 void prefs_common_read_config  (void);