mp3splt-gtk
preferences_manager.h
1 /**********************************************************
2  *
3  * mp3splt-gtk -- utility based on mp3splt,
4  * for mp3/ogg splitting without decoding
5  *
6  * Copyright (c) 2005-2012 Alexandru Munteanu - io_fx@yahoo.fr
7  *
8  * http://mp3splt.sourceforge.net/
9  *
10  *********************************************************/
11 
12 /**********************************************************
13  *
14  * This program is free software; you can redistribute it and/or
15  * modify it under the terms of the GNU General Public License
16  * as published by the Free Software Foundation; either version 2
17  * of the License, or (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * You should have received a copy of the GNU General Public License
25  * along with this program; if not, write to the Free Software
26  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
27  * USA.
28  *
29  *********************************************************/
30 
31 #ifndef PREFERENCES_MANAGER_H
32 
33 #define PREFERENCES_MANAGER_H
34 
35 #include <gtk/gtk.h>
36 
37 #include "ui_types.h"
38 
40 void load_preferences(ui_state *ui);
41 void save_preferences(ui_state *ui);
42 
43 preferences_state *pm_state_new();
44 void pm_free(preferences_state **pm);
45 
46 void pm_register_spinner_int_preference(gchar *main_key, gchar *second_key,
47  gint default_value, GtkWidget *spinner,
48  void (*update_spinner_value_cb)(GtkWidget *spinner, gpointer data),
49  gpointer user_data_for_cb, preferences_state *pm);
50 
51 void pm_register_range_preference(gchar *main_key, gchar *second_key,
52  gint default_value, GtkWidget *range,
53  void (*update_adjustment_value)(GtkAdjustment *adjustment, gpointer data),
54  gpointer user_data_for_cb, preferences_state *pm);
55 
56 #endif
57