user_prefs.h

Go to the documentation of this file.
00001 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
00002 /*
00003   user_prefs.h
00004   heraia - an hexadecimal file editor and analyser based on ghex
00005  
00006   (C) Copyright 2008 - 2009 Olivier Delhomme
00007   e-mail : heraia@delhomme.org
00008   URL    : http://heraia.tuxfamily.org
00009  
00010   This program is free software; you can redistribute it and/or modify
00011   it under the terms of the GNU General Public License as published by
00012   the Free Software Foundation; either version 2, or  (at your option) 
00013   any later version.
00014  
00015   This program is distributed in the hope that it will be useful,
00016   but WITHOUT ANY WARRANTY;  without even the implied warranty of
00017   MERCHANTABILITY  or  FITNESS FOR A PARTICULAR PURPOSE.  See the
00018   GNU General Public License for more details.
00019  
00020   You should have received a copy of the GNU General Public License
00021   along with this program; if not, write to the Free Software
00022   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
00023 /**
00024  * @file user_prefs.h
00025  * Header file for user preferences
00026  */
00027 #ifndef _LIBHERAIA_USER_PREFS_H_
00028 #define _LIBHERAIA_USER_PREFS_H_
00029 
00030 /**
00031  * @note
00032  *  GN == Group Name
00033  *  KN == Key Name
00034  *  Thoses variables are the ones to use in the main preference file
00035  */
00036 #define GN_GLOBAL_PREFS "Global Preferences"
00037 #define GN_DISPLAY_PREFS "Display Preferences"
00038 #define GN_DI_PREFS "Data Interpretor Preferences"
00039 
00040 #define KN_SAVE_WINDOW_PREFS "Save Window Preferences"
00041 #define KN_ABOUT_BOX "About Box"
00042 #define KN_DATA_INTERPRETOR "Data Interpretor"
00043 #define KN_LOG_BOX "Log Box"
00044 #define KN_MAIN_DIALOG "Main Dialog"
00045 #define KN_PLUGIN_LIST "Plugin List"
00046 #define KN_LDT "List Data Types"
00047 #define KN_MAIN_PREFS "Main Preferences"
00048 
00049 #define KN_DISP_THOUSAND "Thousand"
00050 
00051 #define KN_DI_SELECTED_TAB "Selected Tab"
00052 
00053 
00054 extern void verify_preference_file(gchar *pathname, gchar *filename);
00055 extern void init_preference_struct(heraia_window_t *main_window);
00056 
00057 extern void save_preferences(heraia_window_t *main_window);
00058 extern void load_preferences(heraia_window_t *main_window);
00059 
00060 
00061 
00062 #endif /* _LIBHERAIA_USER_PREFS_H_ */

Generated on Tue Jun 30 23:18:17 2009 for Heraia by  doxygen 1.5.8