1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
/* options.h
Copyright (C) 1999-2003 Tom Gilbert.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies of the Software and its documentation and acknowledgment shall be
given in the documentation and software packages that this Software was
used.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef OPTIONS_H
#define OPTIONS_H
struct __fehoptions {
unsigned char multiwindow;
unsigned char montage;
unsigned char collage;
unsigned char index;
unsigned char index_show_name;
unsigned char index_show_dim;
unsigned char index_show_size;
unsigned char thumbs;
unsigned char slideshow;
unsigned char recursive;
unsigned char output;
unsigned char verbose;
unsigned char display;
unsigned char bg;
unsigned char alpha;
unsigned char alpha_level;
unsigned char aspect;
unsigned char stretch;
unsigned char keep_http;
unsigned char borderless;
unsigned char randomize;
unsigned char jump_on_resort;
unsigned char full_screen;
unsigned char auto_zoom;
unsigned char draw_filename;
unsigned char list;
unsigned char quiet;
unsigned char preload;
unsigned char loadables;
unsigned char unloadables;
unsigned char reverse;
unsigned char no_menus;
unsigned char scale_down;
unsigned char builtin_http;
unsigned char bgmode;
unsigned char xinerama;
unsigned char screen_clip;
unsigned char hide_pointer;
unsigned char draw_actions;
unsigned char cache_thumbnails;
unsigned char cycle_once;
unsigned char hold_actions[10];
char *output_file;
char *output_dir;
char *bg_file;
char *font;
char *title_font;
char *title;
char *thumb_title;
char *actions[10];
char *fontpath;
char *filelistfile;
char *menu_font;
char *customlist;
char *menu_bg;
char *image_bg;
char *rcfile;
char *menu_style;
char *caption_path;
char *start_list_at;
char *info_cmd;
gib_style *menu_style_l;
unsigned char pan_button;
unsigned char zoom_button;
unsigned char menu_button;
unsigned char menu_ctrl_mask;
unsigned char prev_button;
unsigned char next_button;
unsigned char rotate_button;
unsigned char blur_button;
unsigned char reload_button;
unsigned char no_rotate_ctrl_mask;
unsigned char no_blur_ctrl_mask;
unsigned char no_pan_ctrl_mask;
int thumb_w;
int thumb_h;
int limit_w;
int limit_h;
unsigned int thumb_redraw;
int reload;
int sort;
int debug;
int geom_flags;
int geom_x;
int geom_y;
unsigned int geom_w;
unsigned int geom_h;
int default_zoom;
unsigned char adjust_reload;
unsigned char mode;
unsigned char paused;
double slideshow_delay;
Imlib_Font menu_fn;
};
void init_parse_options(int argc, char **argv);
char *feh_string_normalize(char *str);
extern fehoptions opt;
#endif
|