settings.h
Go to the documentation of this file.00001 #ifndef SETTINGS_H
00002 #define SETTINGS_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
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
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
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