summaryrefslogtreecommitdiff
path: root/src/options.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/options.h')
-rw-r--r--src/options.h137
1 files changed, 137 insertions, 0 deletions
diff --git a/src/options.h b/src/options.h
new file mode 100644
index 0000000..0101885
--- /dev/null
+++ b/src/options.h
@@ -0,0 +1,137 @@
+/* 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 no_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 wget_timestamp;
+ unsigned char bgmode;
+ unsigned char xinerama;
+ unsigned char screen_clip;
+ unsigned char hide_pointer;
+ unsigned char fmmode;
+ unsigned char draw_actions;
+ unsigned char cache_thumbnails;
+ unsigned char cycle_once;
+
+ 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 *rcfile;
+ char *menu_style;
+ char *caption_path;
+
+ gib_style *menu_style_l;
+
+ unsigned char next_button;
+ unsigned char zoom_button;
+ unsigned char menu_button;
+ unsigned char menu_ctrl_mask;
+
+ 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;
+ int reload;
+ int sort;
+ int debug_level;
+ int geom_flags;
+ int geom_x;
+ int geom_y;
+ int geom_w;
+ int geom_h;
+ int default_zoom;
+ int menu_border;
+ unsigned char adjust_reload;
+ unsigned int start_list_at;
+
+ 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);
+void feh_create_default_config(char *rcfile);
+
+extern fehoptions opt;
+
+#endif