95844d02075fd0d765336e37b2e34f3a01719e4e
[geeqie.git] / src / globals.c
1 /*
2  * GQview image viewer
3  * (C)2000 John Ellis
4  *
5  * Author: John Ellis
6  *
7  */
8
9 #include "gqview.h"
10 #include "logo.h"
11
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
65 GList *filename_filter = NULL;
66
67 /* -- options -- */
68 gint main_window_w = 400;
69 gint main_window_h = 350;
70 gint main_window_x = 0;
71 gint main_window_y = 0;
72
73 gint float_window_w = 150;
74 gint float_window_h = 350;
75 gint float_window_x = 0;
76 gint float_window_y = 0;
77
78 gint save_window_positions = FALSE;
79 gint tools_float = FALSE;
80 gint tools_hidden = FALSE;
81 gint progressive_key_scrolling = FALSE;
82
83 gint startup_path_enable = FALSE;
84 gchar *startup_path = NULL;
85 gint confirm_delete = TRUE;
86 gint restore_tool = FALSE;
87 gint zoom_mode = ZOOM_RESET_ORIGINAL;
88 gint fit_window = FALSE;
89 gint limit_window_size = FALSE;
90 gint max_window_size = 100;
91 gint thumb_max_width = 64;
92 gint thumb_max_height = 64;
93 gint enable_thumb_caching = FALSE;
94 gint use_xvpics_thumbnails = TRUE;
95 gint show_dot_files = FALSE;
96 gint file_filter_disable = FALSE;
97 gint filter_include_jpg = TRUE;
98 gint filter_include_xpm = TRUE;
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
110 gint thumbnails_enabled = FALSE;
111
112 gint slideshow_delay = 15;
113 gint slideshow_random = FALSE;
114 gint slideshow_repeat = FALSE;
115
116 gint debug = FALSE;
117
118 /* logo & misc images */
119
120