1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 
3 /*
4  *  Engrampa
5  *
6  *  Copyright (C) 2001, 2003 Free Software Foundation, Inc.
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation; either version 2 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with this program; if not, write to the Free Software
20  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21  */
22 
23 #ifndef PREFERENCES_H
24 #define PREFERENCES_H
25 
26 #include <gtk/gtk.h>
27 #include "typedefs.h"
28 #include "fr-window.h"
29 
30 #define ENGRAMPA_SCHEMA			"org.mate.engrampa"
31 #define ENGRAMPA_SCHEMA_LISTING		ENGRAMPA_SCHEMA	".listing"
32 #define ENGRAMPA_SCHEMA_UI		ENGRAMPA_SCHEMA	".ui"
33 #define ENGRAMPA_SCHEMA_GENERAL		ENGRAMPA_SCHEMA	".general"
34 #define ENGRAMPA_SCHEMA_DIALOGS		ENGRAMPA_SCHEMA	".dialogs"
35 #define ENGRAMPA_SCHEMA_ADD		ENGRAMPA_SCHEMA_DIALOGS	".add"
36 #define ENGRAMPA_SCHEMA_BATCH_ADD 	ENGRAMPA_SCHEMA_DIALOGS ".batch-add"
37 #define ENGRAMPA_SCHEMA_EXTRACT		ENGRAMPA_SCHEMA_DIALOGS ".extract"
38 #define ENGRAMPA_SCHEMA_LAST_OUTPUT	ENGRAMPA_SCHEMA_DIALOGS ".last-output"
39 
40 #define PREF_LISTING_SORT_METHOD	"sort-method"
41 #define PREF_LISTING_SORT_TYPE		"sort-type"
42 #define PREF_LISTING_LIST_MODE		"list-mode"
43 #define PREF_LISTING_SHOW_TYPE		"show-type"
44 #define PREF_LISTING_SHOW_SIZE		"show-size"
45 #define PREF_LISTING_SHOW_TIME		"show-time"
46 #define PREF_LISTING_SHOW_PATH		"show-path"
47 #define PREF_LISTING_USE_MIME_ICONS	"use-mime-icons"
48 #define PREF_LISTING_NAME_COLUMN_WIDTH	"name-column-width"
49 
50 #define PREF_UI_WINDOW_WIDTH		"window-width"
51 #define PREF_UI_WINDOW_HEIGHT		"window-height"
52 #define PREF_UI_SIDEBAR_WIDTH		"sidebar-width"
53 #define PREF_UI_HISTORY_LEN		"history-len"
54 #define PREF_UI_VIEW_TOOLBAR		"view-toolbar"
55 #define PREF_UI_VIEW_STATUSBAR		"view-statusbar"
56 #define PREF_UI_VIEW_FOLDERS		"view-folders"
57 
58 #define PREF_GENERAL_EDITORS		"editors"
59 #define PREF_GENERAL_COMPRESSION_LEVEL	"compression-level"
60 #define PREF_GENERAL_ENCRYPT_HEADER	"encrypt-header"
61 
62 #define PREF_EXTRACT_OVERWRITE		"overwrite"
63 #define PREF_EXTRACT_SKIP_NEWER		"skip-newer"
64 #define PREF_EXTRACT_RECREATE_FOLDERS	"recreate-folders"
65 
66 #define PREF_ADD_CURRENT_FOLDER		"current-folder"
67 #define PREF_ADD_FILENAME		"filename"
68 #define PREF_ADD_INCLUDE_FILES		"include-files"
69 #define PREF_ADD_EXCLUDE_FILES		"exclude-files"
70 #define PREF_ADD_EXCLUDE_FOLDERS	"exclude-folders"
71 #define PREF_ADD_UPDATE			"update"
72 #define PREF_ADD_RECURSIVE		"recursive"
73 #define PREF_ADD_NO_SYMLINKS		"no-symlinks"
74 
75 #define PREF_BATCH_ADD_DEFAULT_EXTENSION "default-extension"
76 #define PREF_BATCH_ADD_OTHER_OPTIONS	 "other-options"
77 #define PREF_BATCH_ADD_VOLUME_SIZE	 "volume-size"
78 
79 #define CAJA_SCHEMA			"org.mate.caja.preferences"
80 #define CAJA_CLICK_POLICY		"click-policy"
81 
82 void pref_util_save_window_geometry (GtkWindow *window,
83                                      const char *dialog_id);
84 void pref_util_restore_window_geometry (GtkWindow *window,
85                                        const char *dialog_id);
86 
87 #endif /* PREFERENCES_H */
88