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;
32 struct PanViewFilterUi;
33 struct PanViewSearchUi;
36 /* thumbnail sizes and spacing */
38 #define PAN_THUMB_SIZE_DOTS 4
39 #define PAN_THUMB_SIZE_NONE 24
40 #define PAN_THUMB_SIZE_SMALL 64
41 #define PAN_THUMB_SIZE_NORMAL 128
42 #define PAN_THUMB_SIZE_LARGE 256
43 #define PAN_THUMB_SIZE pw->thumb_size
45 #define PAN_THUMB_GAP_DOTS 2
46 #define PAN_THUMB_GAP_SMALL 14
47 #define PAN_THUMB_GAP_NORMAL 30
48 #define PAN_THUMB_GAP_LARGE 40
49 #define PAN_THUMB_GAP_HUGE 50
50 #define PAN_THUMB_GAP pw->thumb_gap
52 /* basic sizes, colors, spacings */
54 #define PAN_SHADOW_OFFSET 6
55 #define PAN_SHADOW_FADE 5
56 #define PAN_SHADOW_COLOR 0, 0, 0
57 #define PAN_SHADOW_ALPHA 64
59 #define PAN_BOX_COLOR 255, 255, 255
60 #define PAN_BOX_ALPHA 100
61 #define PAN_BOX_BORDER 20
63 #define PAN_BOX_OUTLINE_THICKNESS 4
64 #define PAN_BOX_OUTLINE_COLOR 0, 0, 0
65 #define PAN_BOX_OUTLINE_ALPHA 128
67 #define PAN_TEXT_COLOR 0, 0, 0
71 PAN_LAYOUT_TIMELINE = 0,
73 PAN_LAYOUT_FOLDERS_LINEAR,
74 PAN_LAYOUT_FOLDERS_FLOWER,
80 PAN_IMAGE_SIZE_THUMB_DOTS = 0,
81 PAN_IMAGE_SIZE_THUMB_NONE,
82 PAN_IMAGE_SIZE_THUMB_SMALL,
83 PAN_IMAGE_SIZE_THUMB_NORMAL,
84 PAN_IMAGE_SIZE_THUMB_LARGE,
102 enum PanTextAttrType {
103 PAN_TEXT_ATTR_NONE = 0,
104 PAN_TEXT_ATTR_BOLD = 1 << 0,
105 PAN_TEXT_ATTR_HEADING = 1 << 1,
106 PAN_TEXT_ATTR_MARKUP = 1 << 2
111 PAN_BORDER_1 = 1 << 0,
112 PAN_BORDER_2 = 1 << 1,
113 PAN_BORDER_3 = 1 << 2,
114 PAN_BORDER_4 = 1 << 3
117 #define PAN_BORDER_TOP PAN_BORDER_1
118 #define PAN_BORDER_RIGHT PAN_BORDER_2
119 #define PAN_BORDER_BOTTOM PAN_BORDER_3
120 #define PAN_BORDER_LEFT PAN_BORDER_4
144 PanTextAttrType text_attr;
160 ImageWindow *imd_normal;
163 GtkWidget *path_entry;
165 GtkWidget *label_message;
166 GtkWidget *label_zoom;
168 PanViewSearchUi *search_ui;
169 PanViewFilterUi *filter_ui;
171 GtkWidget *date_button;
173 GtkWidget *scrollbar_h;
174 GtkWidget *scrollbar_v;
177 PanLayoutType layout;
182 gboolean exif_date_enable;
184 gint info_image_size;
185 gboolean info_includes_exif;
187 gboolean ignore_symlinks;
198 CacheLoader *cache_cl;
211 struct PanCacheData {
217 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */