2 * Copyright (C) 2006 John Ellis
3 * Copyright (C) 2008 - 2016 The Geeqie Team
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef PAN_VIEW_PAN_TYPES_H
23 #define PAN_VIEW_PAN_TYPES_H
27 #include "cache-loader.h"
30 struct FullScreenData;
34 /* thumbnail sizes and spacing */
36 #define PAN_THUMB_SIZE_DOTS 4
37 #define PAN_THUMB_SIZE_NONE 24
38 #define PAN_THUMB_SIZE_SMALL 64
39 #define PAN_THUMB_SIZE_NORMAL 128
40 #define PAN_THUMB_SIZE_LARGE 256
41 #define PAN_THUMB_SIZE pw->thumb_size
43 #define PAN_THUMB_GAP_DOTS 2
44 #define PAN_THUMB_GAP_SMALL 14
45 #define PAN_THUMB_GAP_NORMAL 30
46 #define PAN_THUMB_GAP_LARGE 40
47 #define PAN_THUMB_GAP_HUGE 50
48 #define PAN_THUMB_GAP pw->thumb_gap
50 /* basic sizes, colors, spacings */
52 #define PAN_SHADOW_OFFSET 6
53 #define PAN_SHADOW_FADE 5
54 #define PAN_SHADOW_COLOR 0, 0, 0
55 #define PAN_SHADOW_ALPHA 64
57 #define PAN_BOX_COLOR 255, 255, 255
58 #define PAN_BOX_ALPHA 100
59 #define PAN_BOX_BORDER 20
61 #define PAN_BOX_OUTLINE_THICKNESS 4
62 #define PAN_BOX_OUTLINE_COLOR 0, 0, 0
63 #define PAN_BOX_OUTLINE_ALPHA 128
65 #define PAN_TEXT_COLOR 0, 0, 0
68 #define PAN_GROUP_MAX 16
73 PAN_LAYOUT_TIMELINE = 0,
75 PAN_LAYOUT_FOLDERS_LINEAR,
76 PAN_LAYOUT_FOLDERS_FLOWER,
82 PAN_IMAGE_SIZE_THUMB_DOTS = 0,
83 PAN_IMAGE_SIZE_THUMB_NONE,
84 PAN_IMAGE_SIZE_THUMB_SMALL,
85 PAN_IMAGE_SIZE_THUMB_NORMAL,
86 PAN_IMAGE_SIZE_THUMB_LARGE,
104 enum PanTextAttrType {
105 PAN_TEXT_ATTR_NONE = 0,
106 PAN_TEXT_ATTR_BOLD = 1 << 0,
107 PAN_TEXT_ATTR_HEADING = 1 << 1,
108 PAN_TEXT_ATTR_MARKUP = 1 << 2
113 PAN_BORDER_1 = 1 << 0,
114 PAN_BORDER_2 = 1 << 1,
115 PAN_BORDER_3 = 1 << 2,
116 PAN_BORDER_4 = 1 << 3
119 #define PAN_BORDER_TOP PAN_BORDER_1
120 #define PAN_BORDER_RIGHT PAN_BORDER_2
121 #define PAN_BORDER_BOTTOM PAN_BORDER_3
122 #define PAN_BORDER_LEFT PAN_BORDER_4
146 PanTextAttrType text_attr;
158 struct PanViewSearchUi
160 GtkWidget *search_box;
161 GtkWidget *search_entry;
162 GtkWidget *search_label;
163 GtkWidget *search_button;
164 GtkWidget *search_button_arrow;
168 * @struct PanViewFilterUi
169 * Defined in pan-view-filter.h
171 struct PanViewFilterUi;
177 ImageWindow *imd_normal;
180 GtkWidget *path_entry;
182 GtkWidget *label_message;
183 GtkWidget *label_zoom;
185 PanViewSearchUi *search_ui;
186 PanViewFilterUi *filter_ui;
188 GtkWidget *date_button;
190 GtkWidget *scrollbar_h;
191 GtkWidget *scrollbar_v;
194 PanLayoutType layout;
199 gboolean exif_date_enable;
201 gint info_image_size;
202 gboolean info_includes_exif;
204 gboolean ignore_symlinks;
215 CacheLoader *cache_cl;
236 struct PanCacheData {
242 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */