1 /* vim: set sts=2 sw=2 et: */
3 * Copyright (C) 2008 Jari Tenhunen <jari.tenhunen@iki.fi>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library 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 GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #ifndef __SETTINGS_H__
22 #define __SETTINGS_H__
24 #include <gtk/gtkwindow.h>
25 #include <gconf/gconf-client.h>
27 #define GCONF_ROOT "/apps/tuner"
28 #define GCONF_KEY_ALGORITHM GCONF_ROOT "/algorithm"
29 #define GCONF_KEY_CALIBRATION GCONF_ROOT "/calibration"
30 #define GCONF_KEY_DISPLAY_KEEPALIVE GCONF_ROOT "/display_keepalive"
32 #define DEFAULT_ALGORITHM (0) /* GST_PITCH_ALGORITHM_FFT */
33 #define DEFAULT_DISPLAY_KEEPALIVE TRUE
42 gint settings_get_algorithm (gint default_value);
43 gint settings_get_calibration (gint default_value);
44 gboolean settings_set_calibration (gint value);
45 gboolean settings_get_display_keepalive (gboolean default_value);
46 gboolean settings_init (GConfClientNotifyFunc func, gpointer user_data);
48 void settings_dialog_show (GtkWindow * parent);
49 GtkWidget * calibration_editor_new (gint min, gint max);
52 #endif /* __SETTINGS_H__ */