3 * \brief Header: setup loading/saving
11 #include "lib/global.h" /* GError */
13 #include "panel.h" /* WPanel, panel_view_mode_t */
15 /* global paremeters */
16 extern char *profile_name
;
17 extern char *global_profile_name
;
18 extern char *setup_color_string
;
19 extern char *term_color_string
;
20 extern char *color_terminal_string
;
22 extern int mouse_close_dialog
;
23 extern int select_flags
;
24 extern int setup_copymove_persistent_attr
;
25 extern int num_history_items_recorded
;
26 extern int classic_progressbar
;
28 char *setup_init (void);
29 void load_setup (void);
30 gboolean
save_setup (void);
31 void done_setup (void);
32 void save_config (void);
33 void setup_save_config_show_error (const char *filename
, GError
**error
);
35 void save_layout (void);
37 void load_key_defs (void);
38 #if defined(ENABLE_VFS) && defined (USE_NETCODE)
39 char *load_anon_passwd (void);
40 #endif /* ENABLE_VFS && defined USE_NETCODE */
42 void load_keymap_defs (void);
43 void free_keymap_defs (void);
47 QSEARCH_CASE_INSENSITIVE
= 0, /* quick search in case insensitive mode */
48 QSEARCH_CASE_SENSITIVE
= 1, /* quick search in case sensitive mode */
49 QSEARCH_PANEL_CASE
= 2, /* quick search get value from panel case_sensitive */
53 /* panels ini options; [Panels] section */
56 gboolean mix_all_files
; /* If FALSE then directories are shown separately from files */
57 gboolean show_backups
; /* If TRUE, show files ending in ~ */
58 gboolean show_dot_files
; /* If TRUE, show files starting with a dot */
59 gboolean fast_reload
; /* If TRUE then use stat() on the cwd to determine directory changes */
60 gboolean fast_reload_msg_shown
; /* Have we shown the fast-reload warning in the past? */
61 gboolean mark_moves_down
; /* If TRUE, marking a files moves the cursor down */
62 gboolean navigate_with_arrows
; /* If TRUE: l&r arrows are used to chdir if the input line is empty */
63 gboolean kilobyte_si
; /* If TRUE, SI units (1000 based) will be used for larger units
64 * (kilobyte, megabyte, ...). If FALSE, binary units (1024 based) will be used */
65 gboolean scroll_pages
; /* If TRUE, panel is scrolled by half the display when the cursor reaches
66 the end or the beginning of the panel */
67 gboolean mouse_move_pages
; /* Scroll page/item using mouse wheel */
68 gboolean reverse_files_only
; /* If TRUE, only selection of files is inverted */
69 gboolean auto_save_setup
;
70 gboolean filetype_mode
; /* If TRUE then add per file type hilighting */
71 gboolean permission_mode
; /* If TRUE, we use permission hilighting */
72 qsearch_mode_t qsearch_mode
; /* Quick search mode */
75 extern panels_options_t panels_options
;
77 extern panel_view_mode_t startup_left_mode
;
78 extern panel_view_mode_t startup_right_mode
;
80 void panel_load_setup (struct WPanel
*panel
, const char *section
);
81 void panel_save_setup (struct WPanel
*panel
, const char *section
);
82 void save_panel_types (void);
84 void panels_load_options (void);
85 void panels_save_options (void);
87 #endif /* MC_SETUP_H */