~ubuntu-branches/ubuntu/vivid/rawstudio/vivid

« back to all changes in this revision

Viewing changes to src/conf_interface.h

  • Committer: Bazaar Package Importer
  • Author(s): Bernd Zeimetz
  • Date: 2011-07-28 17:36:32 UTC
  • mfrom: (2.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20110728173632-5czluz9ye3c83zc5
Tags: 2.0-1
* [3750b2cf] Merge commit 'upstream/2.0'
* [63637468] Removing Patch, not necessary anymore.
* [2fb580dc] Add new build-dependencies.
* [c57d953b] Run dh_autoreconf due to patches in configure.in
* [13febe39] Add patch to remove the libssl requirement.
* [5ae773fe] Replace libjpeg62-dev by libjpeg8-dev :)
* [1969d755] Don't build static libraries.
* [7cfe0a2e] Add a patch to fix the plugin directory path.
  As plugins are shared libraries, they need to go into /usr/lib,
  not into /usr/share.
  Thanks to Andrew McMillan
* [c1d0d9dd] Don't install .la files for all plugins and libraries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2006-2009 Anders Brander <anders@brander.dk> and 
3
 
 * Anders Kvist <akv@lnxbx.dk>
4
 
 *
5
 
 * This program is free software; you can redistribute it and/or
6
 
 * modify it under the terms of the GNU General Public License
7
 
 * as published by the Free Software Foundation; either version 2
8
 
 * of the License, or (at your option) any later version.
9
 
 *
10
 
 * This program is distributed in the hope that it will be useful,
11
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
 * GNU General Public License for more details.
14
 
 *
15
 
 * You should have received a copy of the GNU General Public License
16
 
 * along with this program; if not, write to the Free Software
17
 
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18
 
 */
19
 
 
20
 
#include "rawstudio.h" /* RS_FILETYPE */
21
 
 
22
 
#define CONF_LWD "last_working_directory"
23
 
#define CONF_PREBGCOLOR "preview_background_color"
24
 
#define CONF_HISTHEIGHT "histogram_height"
25
 
#define CONF_PASTE_MASK "paste_mask"
26
 
#define CONF_DEFAULT_EXPORT_TEMPLATE "default_export_template"
27
 
#define CONF_CACHEDIR_IS_LOCAL "cache_in_home"
28
 
#define CONF_LOAD_GDK "open_8bit_images"
29
 
#define CONF_LOAD_RECURSIVE "load_recursive"
30
 
#define CONF_PRELOAD "preload_photos"
31
 
#define CONF_SAVE_FILETYPE "save_filetype"
32
 
#define CONF_BATCH_DIRECTORY "batch_directory"
33
 
#define CONF_BATCH_FILENAME "batch_filename"
34
 
#define CONF_BATCH_FILETYPE "batch_filetype"
35
 
#define CONF_BATCH_WIDTH "batch_width"
36
 
#define CONF_BATCH_HEIGHT "batch_height"
37
 
#define CONF_BATCH_JPEG_QUALITY "batch_jpeg_quality"
38
 
#define CONF_BATCH_TIFF_UNCOMPRESSED "batch_tiff_uncompressed"
39
 
#define CONF_BATCH_SIZE_LOCK "batch_size_lock"
40
 
#define CONF_BATCH_SIZE_WIDTH "batch_size_width"
41
 
#define CONF_BATCH_SIZE_HEIGHT "batch_size_height"
42
 
#define CONF_BATCH_SIZE_SCALE "batch_size_scale"
43
 
#define CONF_EXPORT_DIRECTORY "export_directory"
44
 
#define CONF_EXPORT_FILENAME "export_filename"
45
 
#define CONF_EXPORT_FILETYPE "export_filetype"
46
 
#define CONF_EXPORT_JPEG_QUALITY "export_jpeg_quality"
47
 
#define CONF_EXPORT_TIFF_UNCOMPRESSED "export_tiff_uncompressed"
48
 
#define CONF_CMS_ENABLED "cms_enabled"
49
 
#define CONF_CMS_INTENT "cms_intent"
50
 
#define CONF_CMS_IN_PROFILE_LIST "cms_in_profile_list"
51
 
#define CONF_CMS_IN_PROFILE_SELECTED "cms_in_profile_selected"
52
 
#define CONF_CMS_DI_PROFILE_LIST "cms_di_profile_list"
53
 
#define CONF_CMS_DI_PROFILE_SELECTED "cms_di_profile_selected"
54
 
#define CONF_CMS_EX_PROFILE_LIST "cms_ex_profile_list"
55
 
#define CONF_CMS_EX_PROFILE_SELECTED "cms_ex_profile_selected"
56
 
#define CONF_ROI_GRID "roi_grid"
57
 
#define CONF_CROP_ASPECT "crop_aspect"
58
 
#define CONF_SHOW_FILENAMES "show_filenames_in_iconview"
59
 
#define CONF_USE_SYSTEM_THEME "use_system_theme"
60
 
#define CONF_FULLSCREEN "fullscreen"
61
 
#define CONF_SHOW_TOOLBOX_FULLSCREEN "show_toolbox_fullscreen"
62
 
#define CONF_SHOW_TOOLBOX "show_toolbox"
63
 
#define CONF_SHOW_ICONBOX_FULLSCREEN "show_iconbox_fullscreen"
64
 
#define CONF_SHOW_ICONBOX "show_iconbox"
65
 
#define CONF_SHOW_TOOLBOX_EXPOSURE "show_toolbox_exposure"
66
 
#define CONF_SHOW_TOOLBOX_SATURATION "show_toolbox_saturation"
67
 
#define CONF_SHOW_TOOLBOX_HUE "show_toolbox_hue"
68
 
#define CONF_SHOW_TOOLBOX_CONTRAST "show_toolbox_contrast"
69
 
#define CONF_SHOW_TOOLBOX_WARMTH "show_toolbox_warmth"
70
 
#define CONF_SHOW_TOOLBOX_SHARPEN "show_toolbox_sharpen"
71
 
#define CONF_SHOW_TOOLBOX_CURVE "show_toolbox_curve"
72
 
#define CONF_SHOW_TOOLBOX_TRANSFORM "show_toolbox_transform"
73
 
#define CONF_SHOW_TOOLBOX_HIST "show_toolbox_hist"
74
 
#define CONF_TOOLBOX_WIDTH "toolbox_width"
75
 
#define CONF_SPLIT_CONTINUOUS "split_continuous"
76
 
#define CONF_LAST_PRIORITY_PAGE "last_priority_page"
77
 
#define CONF_STORE_SORT_METHOD "store_sort_method"
78
 
 
79
 
#define DEFAULT_CONF_EXPORT_DIRECTORY "exports/"
80
 
#define DEFAULT_CONF_EXPORT_FILENAME "%f_%2c"
81
 
#define DEFAULT_CONF_EXPORT_FILETYPE "jpeg"
82
 
#define DEFAULT_CONF_EXPORT_JPEG_QUALITY "100"
83
 
#define DEFAULT_CONF_BATCH_DIRECTORY "batch_exports/"
84
 
#define DEFAULT_CONF_BATCH_FILENAME "%f_%2c"
85
 
#define DEFAULT_CONF_BATCH_FILETYPE "jpeg"
86
 
#define DEFAULT_CONF_BATCH_JPEG_QUALITY "100"
87
 
#define DEFAULT_CONF_FULLSCREEN FALSE
88
 
#define DEFAULT_CONF_SHOW_TOOLBOX_FULLSCREEN TRUE
89
 
#define DEFAULT_CONF_SHOW_TOOLBOX TRUE
90
 
#define DEFAULT_CONF_SHOW_ICONBOX_FULLSCREEN FALSE
91
 
#define DEFAULT_CONF_SHOW_ICONBOX TRUE
92
 
#define DEFAULT_CONF_SHOW_TOOLBOX_EXPOSURE TRUE
93
 
#define DEFAULT_CONF_SHOW_TOOLBOX_SATURATION TRUE
94
 
#define DEFAULT_CONF_SHOW_TOOLBOX_HUE TRUE
95
 
#define DEFAULT_CONF_SHOW_TOOLBOX_CONTRAST TRUE
96
 
#define DEFAULT_CONF_SHOW_TOOLBOX_WARMTH TRUE
97
 
#define DEFAULT_CONF_SHOW_TOOLBOX_SHARPEN TRUE
98
 
#define DEFAULT_CONF_SHOW_TOOLBOX_CURVE TRUE
99
 
#define DEFAULT_CONF_SHOW_TOOLBOX_TRANSFORM TRUE
100
 
#define DEFAULT_CONF_SHOW_TOOLBOX_HIST TRUE
101
 
#define DEFAULT_CONF_LOAD_RECURSIVE FALSE
102
 
#define DEFAULT_CONF_USE_SYSTEM_THEME FALSE
103
 
#define DEFAULT_CONF_SHOW_FILENAMES FALSE
104
 
 
105
 
/* get the last working directory from gconf */
106
 
void rs_set_last_working_directory(const char *lwd);
107
 
 
108
 
/* save the current working directory to gconf */
109
 
gchar *rs_get_last_working_directory(void);
110
 
 
111
 
gboolean rs_conf_get_boolean(const gchar *name, gboolean *boolean_value);
112
 
gboolean rs_conf_get_boolean_with_default(const gchar *name, gboolean *boolean_value, gboolean default_value);
113
 
gboolean rs_conf_set_boolean(const gchar *name, gboolean bool_value);
114
 
gchar *rs_conf_get_string(const gchar *path);
115
 
gboolean rs_conf_set_string(const gchar *path, const gchar *string);
116
 
gboolean rs_conf_get_integer(const gchar *name, gint *integer_value);
117
 
gboolean rs_conf_set_integer(const gchar *name, const gint integer_value);
118
 
gboolean rs_conf_get_color(const gchar *name, GdkColor *color);
119
 
gboolean rs_conf_set_color(const gchar *name, GdkColor *color);
120
 
gboolean rs_conf_get_cms_intent(const gchar *name, gint *intent);
121
 
gboolean rs_conf_set_cms_intent(const gchar *name, gint *intent);
122
 
gchar *rs_conf_get_cms_profile(gint type);
123
 
gboolean rs_conf_get_filetype(const gchar *name, RS_FILETYPE **target);
124
 
gboolean rs_conf_set_filetype(const gchar *name, const RS_FILETYPE *filetype);
125
 
gboolean rs_conf_get_double(const gchar *name, gdouble *float_value);
126
 
gboolean rs_conf_set_double(const gchar *name, const gdouble float_value);
127
 
GSList *rs_conf_get_list_string(const gchar *name);
128
 
gboolean rs_conf_set_list_string(const gchar *name, GSList *list);
129
 
gboolean rs_conf_add_string_to_list_string(const gchar *name, gchar *value);
130
 
gchar *rs_conf_get_nth_string_from_list_string(const gchar *name, gint num);