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 - 2010 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  *  Please do not translate them !
00036  */
00037 #define GN_GLOBAL_PREFS "Global Preferences"
00038 #define GN_DISPLAY_PREFS "Display Preferences"
00039 #define GN_DI_PREFS "Data Interpretor Preferences"
00040 #define GN_MPWP_PREFS "Main Preferences Window Preferences"
00041 
00042 #define KN_SAVE_WINDOW_PREFS "Save Window Preferences"
00043 #define KN_ABOUT_BOX "About Box"
00044 #define KN_DATA_INTERPRETOR "Data Interpretor"
00045 #define KN_LOG_BOX "Log Box"
00046 #define KN_MAIN_DIALOG "Main Dialog"
00047 #define KN_PLUGIN_LIST "Plugin List"
00048 #define KN_LDT "List Data Types"
00049 #define KN_MAIN_PREFS "Main Preferences"
00050 
00051 #define KN_DISP_THOUSAND "Thousand"
00052 #define KN_DISP_OFFSETS "Offsets"
00053 
00054 #define KN_DI_SELECTED_TAB "Selected Tab"
00055 #define KN_DI_STREAM_SIZE "Stream Size"
00056 #define KN_DI_ENDIANNESS "Endianness"
00057 
00058 #define KN_MPWP_SELECTED_TAB "Selected Tab"
00059 
00060 extern void verify_preference_file(gchar *pathname, gchar *filename);
00061 extern void init_preference_struct(heraia_struct_t *main_struct);
00062 
00063 extern void save_preferences(heraia_struct_t *main_struct);
00064 extern void load_preferences(heraia_struct_t *main_struct);
00065 
00066 #endif /* _LIBHERAIA_USER_PREFS_H_ */
Generated on Fri Aug 20 09:15:18 2010 for Heraia by  doxygen 1.6.3