| 1 | #ifndef CONF_H |
|---|
| 2 | #define CONF_H |
|---|
| 3 | |
|---|
| 4 | #include "gui.h" |
|---|
| 5 | #include "script.h" |
|---|
| 6 | |
|---|
| 7 | typedef struct { |
|---|
| 8 | unsigned short x, y; |
|---|
| 9 | } OSD_pos; |
|---|
| 10 | |
|---|
| 11 | typedef struct { |
|---|
| 12 | int save_raw; |
|---|
| 13 | int raw_in_dir; |
|---|
| 14 | int raw_prefix; |
|---|
| 15 | int raw_ext; |
|---|
| 16 | int raw_save_first_only; //for series shooting |
|---|
| 17 | int raw_nr; |
|---|
| 18 | |
|---|
| 19 | int show_osd; |
|---|
| 20 | int show_osd_in_review; |
|---|
| 21 | int script_shoot_delay; |
|---|
| 22 | int show_histo; |
|---|
| 23 | int ubasic_vars[SCRIPT_NUM_PARAMS]; |
|---|
| 24 | char script_file[100]; |
|---|
| 25 | |
|---|
| 26 | int show_dof; |
|---|
| 27 | int batt_volts_max; |
|---|
| 28 | int batt_volts_min; |
|---|
| 29 | int batt_step_25; |
|---|
| 30 | int batt_perc_show; |
|---|
| 31 | int batt_volts_show; |
|---|
| 32 | int batt_icon_show; |
|---|
| 33 | int space_bar_show; |
|---|
| 34 | int space_bar_size; |
|---|
| 35 | int space_bar_width; |
|---|
| 36 | int space_icon_show; |
|---|
| 37 | int show_clock; |
|---|
| 38 | int clock_format; |
|---|
| 39 | int clock_indicator; |
|---|
| 40 | int clock_halfpress; |
|---|
| 41 | int space_perc_show; |
|---|
| 42 | int space_mb_show; |
|---|
| 43 | int space_perc_warn; |
|---|
| 44 | int space_mb_warn; |
|---|
| 45 | int space_warn_type; |
|---|
| 46 | |
|---|
| 47 | int zoom_value; |
|---|
| 48 | |
|---|
| 49 | int show_state; |
|---|
| 50 | int show_remaining_raw; |
|---|
| 51 | int remaining_raw_treshold; |
|---|
| 52 | int show_raw_state; |
|---|
| 53 | int show_values; |
|---|
| 54 | int show_values_in_video; |
|---|
| 55 | int show_overexp; |
|---|
| 56 | |
|---|
| 57 | int histo_mode; |
|---|
| 58 | int histo_auto_ajust; |
|---|
| 59 | int histo_ignore_boundary; |
|---|
| 60 | int histo_layout; |
|---|
| 61 | int histo_show_ev_grid; |
|---|
| 62 | |
|---|
| 63 | int zebra_draw; |
|---|
| 64 | int zebra_mode; |
|---|
| 65 | int zebra_restore_screen; |
|---|
| 66 | int zebra_restore_osd; |
|---|
| 67 | int zebra_over; |
|---|
| 68 | int zebra_under; |
|---|
| 69 | int zebra_draw_osd; |
|---|
| 70 | int zebra_multichannel; |
|---|
| 71 | |
|---|
| 72 | OSD_pos histo_pos; |
|---|
| 73 | OSD_pos dof_pos; |
|---|
| 74 | OSD_pos batt_icon_pos; |
|---|
| 75 | OSD_pos space_icon_pos; |
|---|
| 76 | OSD_pos space_hor_pos; |
|---|
| 77 | OSD_pos space_ver_pos; |
|---|
| 78 | OSD_pos batt_txt_pos; |
|---|
| 79 | OSD_pos space_txt_pos; |
|---|
| 80 | OSD_pos mode_state_pos; |
|---|
| 81 | OSD_pos mode_raw_pos; |
|---|
| 82 | OSD_pos values_pos; |
|---|
| 83 | OSD_pos clock_pos; |
|---|
| 84 | OSD_pos ev_video_pos; |
|---|
| 85 | |
|---|
| 86 | color histo_color; |
|---|
| 87 | color histo_color2; // markers/border |
|---|
| 88 | color osd_color; |
|---|
| 89 | color osd_color_warn; |
|---|
| 90 | color batt_icon_color; |
|---|
| 91 | color space_color; |
|---|
| 92 | color menu_color; |
|---|
| 93 | color menu_title_color; |
|---|
| 94 | color menu_cursor_color; |
|---|
| 95 | int menu_center; |
|---|
| 96 | color reader_color; |
|---|
| 97 | color zebra_color; // under/over |
|---|
| 98 | color grid_color; |
|---|
| 99 | |
|---|
| 100 | int font_cp; |
|---|
| 101 | char menu_rbf_file[100]; |
|---|
| 102 | |
|---|
| 103 | char lang_file[100]; |
|---|
| 104 | |
|---|
| 105 | char reader_file[100]; |
|---|
| 106 | int reader_pos; |
|---|
| 107 | int reader_autoscroll; |
|---|
| 108 | int reader_autoscroll_delay; |
|---|
| 109 | char reader_rbf_file[100]; |
|---|
| 110 | int reader_codepage; |
|---|
| 111 | int reader_wrap_by_words; |
|---|
| 112 | |
|---|
| 113 | int sokoban_level; |
|---|
| 114 | |
|---|
| 115 | int flashlight; |
|---|
| 116 | int splash_show; |
|---|
| 117 | |
|---|
| 118 | int use_zoom_mf; |
|---|
| 119 | long alt_mode_button; //for S-series |
|---|
| 120 | int alt_prevent_shutdown; |
|---|
| 121 | |
|---|
| 122 | int show_grid_lines; |
|---|
| 123 | char grid_lines_file[100]; |
|---|
| 124 | int grid_force_color; |
|---|
| 125 | |
|---|
| 126 | int video_mode; |
|---|
| 127 | int video_quality; |
|---|
| 128 | int video_bitrate; |
|---|
| 129 | |
|---|
| 130 | int tv_bracket_value; |
|---|
| 131 | int av_bracket_value; |
|---|
| 132 | int iso_bracket_value; |
|---|
| 133 | int iso_bracket_koef; |
|---|
| 134 | int subj_dist_bracket_value; |
|---|
| 135 | int subj_dist_bracket_koef; |
|---|
| 136 | int bracket_type; |
|---|
| 137 | int clear_bracket; |
|---|
| 138 | |
|---|
| 139 | |
|---|
| 140 | int tv_override_value; |
|---|
| 141 | int tv_override_koef; |
|---|
| 142 | int tv_enum_type; |
|---|
| 143 | int av_override_value; |
|---|
| 144 | |
|---|
| 145 | int nd_filter_state; |
|---|
| 146 | |
|---|
| 147 | int iso_override_value; |
|---|
| 148 | int iso_override_koef; |
|---|
| 149 | int subj_dist_override_value; |
|---|
| 150 | int subj_dist_override_koef; |
|---|
| 151 | int clear_override; |
|---|
| 152 | |
|---|
| 153 | int autoiso_enable; |
|---|
| 154 | int autoiso_shutter; |
|---|
| 155 | int autoiso_user_factor; |
|---|
| 156 | int autoiso_is_factor; |
|---|
| 157 | int autoiso_max_iso_hi; |
|---|
| 158 | int autoiso_max_iso_auto; |
|---|
| 159 | int autoiso_min_iso; |
|---|
| 160 | |
|---|
| 161 | int recalc_exposure; |
|---|
| 162 | int tv_exposure_order; |
|---|
| 163 | int av_exposure_order; |
|---|
| 164 | int iso_exposure_order; |
|---|
| 165 | |
|---|
| 166 | int dof_subj_dist_as_near_limit; |
|---|
| 167 | int dof_use_exif_subj_dist; |
|---|
| 168 | int dof_subj_dist_in_misc; |
|---|
| 169 | int dof_near_limit_in_misc; |
|---|
| 170 | int dof_far_limit_in_misc; |
|---|
| 171 | int dof_hyperfocal_in_misc; |
|---|
| 172 | int dof_depth_in_misc; |
|---|
| 173 | int dof_dist_from_lens; |
|---|
| 174 | |
|---|
| 175 | |
|---|
| 176 | int values_show_in_review; |
|---|
| 177 | int values_show_zoom; |
|---|
| 178 | int values_show_real_aperture; |
|---|
| 179 | int values_show_real_iso; |
|---|
| 180 | int values_show_market_iso; |
|---|
| 181 | int values_show_iso_only_in_autoiso_mode; |
|---|
| 182 | int values_show_ev_seted; |
|---|
| 183 | int values_show_ev_measured; |
|---|
| 184 | int values_show_bv_measured; |
|---|
| 185 | int values_show_bv_seted; |
|---|
| 186 | int values_show_overexposure; |
|---|
| 187 | int values_show_canon_overexposure; |
|---|
| 188 | int values_show_luminance; |
|---|
| 189 | |
|---|
| 190 | int ns_enable_memdump; |
|---|
| 191 | int script_startup; // remote autostart |
|---|
| 192 | int remote_enable; // remote enable |
|---|
| 193 | int user_menu_enable; |
|---|
| 194 | int user_menu_vars[10]; |
|---|
| 195 | int zoom_scale; |
|---|
| 196 | int unlock_optical_zoom_for_video; |
|---|
| 197 | int mute_on_zoom; |
|---|
| 198 | int bad_pixel_removal; |
|---|
| 199 | int video_af_key; |
|---|
| 200 | } Conf; |
|---|
| 201 | |
|---|
| 202 | extern Conf conf; |
|---|
| 203 | |
|---|
| 204 | #define ALT_PREVENT_SHUTDOWN_NO 0 |
|---|
| 205 | #define ALT_PREVENT_SHUTDOWN_ALT 1 |
|---|
| 206 | #define ALT_PREVENT_SHUTDOWN_ALT_SCRIPT 2 |
|---|
| 207 | |
|---|
| 208 | #define SHOOTING_PROGRESS_NONE 0 |
|---|
| 209 | #define SHOOTING_PROGRESS_STARTED 1 |
|---|
| 210 | #define SHOOTING_PROGRESS_PROCESSING 2 |
|---|
| 211 | #define SHOOTING_PROGRESS_DONE 3 |
|---|
| 212 | |
|---|
| 213 | extern int state_kbd_script_run; |
|---|
| 214 | extern int state_shooting_progress; |
|---|
| 215 | extern int state_save_raw_nth_only; |
|---|
| 216 | extern int state_expos_recalculated; |
|---|
| 217 | extern int state_expos_under; |
|---|
| 218 | extern int state_expos_over; |
|---|
| 219 | |
|---|
| 220 | extern int state_debug1; |
|---|
| 221 | extern int debug_propcase_show; |
|---|
| 222 | extern int debug_propcase_page; |
|---|
| 223 | extern int debug_vals_show; |
|---|
| 224 | extern int debug_pardata_show; |
|---|
| 225 | extern void script_autostart(); // remote autostart |
|---|
| 226 | extern void conf_save(); |
|---|
| 227 | extern void conf_restore(); |
|---|
| 228 | extern void conf_load_defaults(); |
|---|
| 229 | |
|---|
| 230 | #endif |
|---|