]> git.street.me.uk Git - andy/viking.git/blame - src/preferences.h
When manually creating a track, automatically give it a default name.
[andy/viking.git] / src / preferences.h
CommitLineData
8339c44d
EB
1#ifndef __VIKING_PREFERENCES_H
2#define __VIKING_PREFERENCES_H
3
4#include "uibuilder.h"
5
6// TODO IMPORTANT!!!! add REGISTER_GROUP !!! OR SOMETHING!!! CURRENTLY GROUPLESS!!!
7
8void a_preferences_init();
9void a_preferences_uninit();
10
11/* pref should be persistent thruout the life of the preference. */
12
a5c8699d
EB
13
14/* must call FIRST */
15void a_preferences_register_group ( const gchar *key, const gchar *name );
16
17/* nothing in pref is copied neither but pref itself is copied. (TODO: COPY EVERYTHING IN PREF WE NEED, IF ANYTHING),
18 so pref key is not copied. default param data IS copied. */
19/* group field (integer) will be overwritten */
20void a_preferences_register( VikLayerParam *pref, VikLayerParamData defaultval, const gchar *group_key );
21
8339c44d
EB
22
23void a_preferences_show_window(GtkWindow *parent);
24
25VikLayerParamData *a_preferences_get(const gchar *key);
26
45e2a963
RN
27/* Allow preferences to be manipulated externally */
28void a_preferences_run_setparam ( VikLayerParamData data, VikLayerParam *params );
29
30/* TRUE on success */
31gboolean a_preferences_save_to_file();
a5c8699d
EB
32
33
8339c44d 34#endif