settings.h

Go to the documentation of this file.
00001 #ifndef SETTINGS_H
00002 #define SETTINGS_H
00003 
00004 /*
00005  * File Name: settings.h
00006  */
00007 
00008 /*
00009  * This file is part of settings.
00010  *
00011  * settings is free software: you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License as published by
00013  * the Free Software Foundation, either version 2 of the License, or
00014  * (at your option) any later version.
00015  *
00016  * settings is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program. If not, see <http://www.gnu.org/licenses/>.
00023  */
00024 
00025 /**
00026  * Copyright (C) 2008 iRex Technologies B.V.
00027  * All rights reserved.
00028  */
00029 
00030 #define WINDOW_BORDER_PADDING        42
00031 #define WINDOW_TOP_PADDING           46
00032 #define WINDOW_BOTTOM_PADDING        10
00033 #define WINDOW_H_PADDING             12
00034 #define WINDOW_TOP_ALT_PADDING       10
00035 
00036 // The spacing between sections, i.e. the spacing between "Language" and "Time and Date".
00037 #define SECTION_SPACING              10
00038 
00039 #define SETTINGS_FILLER_HEIGHT       20
00040 #define SETTINGS_SEPARATOR_HEIGHT    10
00041 #define ITEM_SPACING                 10
00042 
00043 
00044 // Max label width depends on device format
00045 #if MACHINE_IS_DR800SG || MACHINE_IS_DR800S || MACHINE_IS_DR800SW
00046 #define SETTINGS_LABEL_MAX_WIDTH    620
00047 #else
00048 #define SETTINGS_LABEL_MAX_WIDTH    1200
00049 #endif
00050 
00051 #define LABEL_PADDING_WITHIN_BUTTON  10
00052 
00053 #define SMALL_SPACING                 5
00054 
00055 #define SETTINGS_MENU               "settings_menu"
00056 
00057 
00058 #define SD_CARD_DEVICE      "/dev/mmcblk0p1"
00059 #define SD_CARD_MOUNTPOINT  "/media/mmcblk0p1"
00060 
00061 typedef enum
00062 {
00063     SETTING_NONE,
00064     SETTING_MARGINS,
00065     SETTING_SD,
00066     SETTING_MYIREX,
00067     SETTING_DEVINFO,
00068     SETTING_FLIPBAR,
00069     SETTING_STYLUS,
00070     SETTING_FLIGHTMODE,
00071     SETTING_RESET,
00072     SETTING_DATETIME,
00073     SETTING_FDATETIME,
00074     SETTING_LANGUAGE,
00075     SETTING_FIRSTBOOT,
00076     SETTING_POWER,
00077     SETTING_ROTATION,
00078     SETTING_SENSORS,
00079     SETTING_ADVANCED,
00080     N_SETTING
00081 } SettingType;
00082 
00083 
00084 void update_main_window_text(void);
00085 void main_quit(void);
00086 void main_save_and_quit(void);
00087 
00088 #endif // SETTINGS_H
Generated by  doxygen 1.6.2-20100208