00001 /* 00002 * This file is part of settings. 00003 * 00004 * settings is free software: you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation, either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * settings is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00031 #ifndef _ILIAD_CONFIG_SETTINGS_H_ 00032 #define _ILIAD_CONFIG_SETTINGS_H_ 00033 00034 // When user changes 'language setting', the length of strings of each language 00035 // becomes longer or shorter, in this case, we shouldn't use widget height to 00036 // control 'config screen item' spacing, should use spacing and padding to control 00037 // So the #define ..._REQ_HEIGHT should be removed, but we leave them as comment for now. 00038 #define CONFIGSCREEN_ITEM_SPACING 11 00039 #define CONFIGSCREEN_INTER_SPACING 0 00040 #define CONFIGSCREEN_INTRA_PADDING 5 00041 #define CONFIGSCREEN_INTER_PADDING 15 00042 //#define CALIBRATION_ITEM_REQ_HEIGHT 90 00043 //#define SOUND_ITEM_REQ_HEIGHT 90 00044 //#define KEYBUFFERING_ITEM_REQ_HEIGHT 130 00045 //#define KEYS_ITEM_REQ_HEIGHT 110 00046 //#define FLIPBAR_DIRECTION_ITEM_REQ_HEIGHT 200 00047 //#define LANGUAGE_ITEM_REQ_HEIGHT 250 00048 #define LANGUAGE_BUTTONS_PER_LINE 4 00049 00050 //Create the iLiad Config screen 00051 //return the container (eventbox) where the config settings items are displayed 00052 GtkWidget *iLiad_config_create(void); 00053 00054 void iLiad_config_set_text(void); 00055 00056 void iLiad_config_set_language(const gchar *locale); 00057 const gchar *iLiad_config_get_language(void); 00058 00059 void iLiad_config_set_keys(guint timeout); 00060 guint iLiad_config_get_keys(void); 00061 00062 void iLiad_config_set_volume(guint volume); 00063 guint iLiad_config_get_volume(void); 00064 00065 void iLiad_config_set_keybuffering(guint volume); 00066 guint iLiad_config_get_keybuffering(void); 00067 00068 void iLiad_config_set_flipbar_direction(gboolean left); 00069 gboolean iLiad_config_get_flipbar_direction(void); 00070 00071 #endif //_ILIAD_CONFIG_SETTINGS_H_
1.5.6