comparison src/globals.c @ 9:d907d608745f

Sync to GQview 1.5.9 release. ######## DO NOT BASE ENHANCEMENTS OR TRANSLATION UPDATES ON CODE IN THIS CVS! This CVS is never up to date with current development and is provided solely for reference purposes, please use the latest official release package when making any changes or translation updates. ########
author gqview
date Sat, 26 Feb 2005 00:13:35 +0000
parents e149abcda4eb
children 25335c62cd9b
comparison
equal deleted inserted replaced
8:e0d0593d519e 9:d907d608745f
1 /* 1 /*
2 * GQview image viewer 2 * GQview
3 * (C)2000 John Ellis 3 * (C) 2004 John Ellis
4 * 4 *
5 * Author: John Ellis 5 * Author: John Ellis
6 * 6 *
7 * This software is released under the GNU General Public License (GNU GPL).
8 * Please read the included file COPYING for more information.
9 * This software comes with no warranty of any kind, use at your own risk!
7 */ 10 */
8 11
12
9 #include "gqview.h" 13 #include "gqview.h"
10 #include "logo.h"
11 14
12 /* image */
13 ImageWindow *main_image = NULL;
14
15 /* main window */
16 GtkWidget *mainwindow;
17 GtkWidget *mainwindow_hbox;
18 GtkWidget *mainwindow_vbox;
19 GtkAccelGroup *mainwindow_accel_grp;
20
21 GtkWidget *info_box = NULL;
22 GtkWidget *info_progress_bar;
23 GtkWidget *info_status;
24 GtkWidget *info_details;
25 GtkWidget *info_zoom;
26
27 /* full screen */
28 ImageWindow *normal_image = NULL;
29 ImageWindow *full_screen_image = NULL;
30 GtkWidget *full_screen_window = NULL;
31
32 /* tools floating window */
33 GtkWidget *toolwindow = NULL;
34
35 /* tools */
36 GtkWidget *tool_vbox;
37
38 GtkWidget *path_entry;
39 GtkWidget *history_menu;
40
41 GtkWidget *dir_clist;
42 GtkWidget *file_clist;
43
44 GtkWidget *menu_file;
45 GtkWidget *menu_edit;
46 GtkWidget *menu_view;
47 GtkWidget *menu_help;
48 GtkWidget *menu_file_popup;
49 GtkWidget *menu_filelist_edit;
50 GtkWidget *menu_image_popup;
51 GtkWidget *menu_image_edit;
52 GtkWidget *menu_window_full;
53 GtkWidget *menu_window_full_edit;
54 GtkWidget *menu_window_view;
55 GtkWidget *menu_window_view_edit;
56
57 GtkWidget *thumb_button;
58 GtkWidget *thumb_menu_item;
59
60 /* lists */
61 GList *dir_list = NULL;
62 GList *file_list = NULL;
63 gchar *current_path = NULL;
64 15
65 GList *filename_filter = NULL; 16 GList *filename_filter = NULL;
66 17
67 /* -- options -- */ 18 /* -- options -- */
68 gint main_window_w = 400; 19 gint main_window_w = 500;
69 gint main_window_h = 350; 20 gint main_window_h = 400;
70 gint main_window_x = 0; 21 gint main_window_x = 0;
71 gint main_window_y = 0; 22 gint main_window_y = 0;
23 gint main_window_maximized = FALSE;
72 24
73 gint float_window_w = 150; 25 gint float_window_w = 260;
74 gint float_window_h = 350; 26 gint float_window_h = 450;
75 gint float_window_x = 0; 27 gint float_window_x = 0;
76 gint float_window_y = 0; 28 gint float_window_y = 0;
29 gint float_window_divider = -1;
30
31 gint window_hdivider_pos = -1;
32 gint window_vdivider_pos = 200;
77 33
78 gint save_window_positions = FALSE; 34 gint save_window_positions = FALSE;
79 gint tools_float = FALSE; 35 gint tools_float = FALSE;
80 gint tools_hidden = FALSE; 36 gint tools_hidden = FALSE;
37 gint toolbar_hidden = FALSE;
81 gint progressive_key_scrolling = FALSE; 38 gint progressive_key_scrolling = FALSE;
82 39
83 gint startup_path_enable = FALSE; 40 gint startup_path_enable = FALSE;
84 gchar *startup_path = NULL; 41 gchar *startup_path = NULL;
85 gint confirm_delete = TRUE; 42 gint confirm_delete = TRUE;
43 gint enable_delete_key = TRUE;
44 gint safe_delete_enable = FALSE;
45 gchar *safe_delete_path = NULL;
46 gint safe_delete_size = 20;
86 gint restore_tool = FALSE; 47 gint restore_tool = FALSE;
87 gint zoom_mode = ZOOM_RESET_ORIGINAL; 48 gint zoom_mode = ZOOM_RESET_ORIGINAL;
49 gint two_pass_zoom = TRUE;
50 gint scroll_reset_method = SCROLL_RESET_TOPLEFT;
88 gint fit_window = FALSE; 51 gint fit_window = FALSE;
89 gint limit_window_size = FALSE; 52 gint limit_window_size = FALSE;
53 gint zoom_to_fit_expands = TRUE;
90 gint max_window_size = 100; 54 gint max_window_size = 100;
91 gint thumb_max_width = 64; 55 gint thumb_max_width = 96;
92 gint thumb_max_height = 64; 56 gint thumb_max_height = 72;
93 gint enable_thumb_caching = FALSE; 57 gint enable_thumb_caching = TRUE;
58 gint enable_thumb_dirs = FALSE;
94 gint use_xvpics_thumbnails = TRUE; 59 gint use_xvpics_thumbnails = TRUE;
60 gint thumbnail_spec_standard = TRUE;
61 gint enable_metadata_dirs = FALSE;
95 gint show_dot_files = FALSE; 62 gint show_dot_files = FALSE;
96 gint file_filter_disable = FALSE; 63 gint file_filter_disable = FALSE;
97 gint filter_include_jpg = TRUE; 64 gchar *editor_name[GQVIEW_EDITOR_SLOTS];
98 gint filter_include_xpm = TRUE; 65 gchar *editor_command[GQVIEW_EDITOR_SLOTS];
99 gint filter_include_tif = TRUE;
100 gint filter_include_gif = TRUE;
101 gint filter_include_png = TRUE;
102 gint filter_include_ppm = TRUE;
103 gint filter_include_pgm = TRUE;
104 gint filter_include_pcx = TRUE;
105 gint filter_include_bmp = TRUE;
106 gchar *custom_filter = NULL;
107 gchar *editor_name[8];
108 gchar *editor_command[8];
109 66
110 gint thumbnails_enabled = FALSE; 67 gint thumbnails_enabled = FALSE;
68 SortType file_sort_method = SORT_NAME;
69 gint file_sort_ascending = TRUE;
111 70
112 gint slideshow_delay = 15; 71 gint slideshow_delay = 150;
113 gint slideshow_random = FALSE; 72 gint slideshow_random = FALSE;
114 gint slideshow_repeat = FALSE; 73 gint slideshow_repeat = FALSE;
115 74
116 gint mousewheel_scrolls = TRUE; 75 gint mousewheel_scrolls = FALSE;
76 gint enable_in_place_rename = TRUE;
77
78 gint recent_list_max = 10;
79
80 gint collection_rectangular_selection = FALSE;
81
82 gint tile_cache_max = 10;
83 gint thumbnail_quality = (gint)GDK_INTERP_TILES;
84 gint zoom_quality = (gint)GDK_INTERP_BILINEAR;
85 gint dither_quality = (gint)GDK_RGB_DITHER_NORMAL;
86
87 gint zoom_increment = 5;
88
89 gint enable_read_ahead = TRUE;
90
91 gint place_dialogs_under_mouse = FALSE;
92
93 gint black_window_background = FALSE;
94
95 gint fullscreen_screen = -1;
96 gint fullscreen_clean_flip = FALSE;
97 gint fullscreen_disable_saver = TRUE;
98 gint fullscreen_above = FALSE;
99
100 gint dupe_custom_threshold = 99;
117 101
118 gint debug = FALSE; 102 gint debug = FALSE;
119 103
120 /* logo & misc images */ 104 /* layout */
105 gchar *layout_order = NULL;
106 gint layout_style = 0;
121 107
108 gint layout_view_icons = FALSE;
109 gint layout_view_tree = FALSE;
122 110
111 gint show_icon_names = TRUE;
112
113 gint tree_descend_subdirs = FALSE;
114
115 gint lazy_image_sync = FALSE;
116 gint update_on_time_change = TRUE;
117 gint exif_rotate_enable = FALSE;
118