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_OUTLINE_THICKNESS 1
58 #define PAN_OUTLINE_COLOR_1 255, 255, 255
59 #define PAN_OUTLINE_COLOR_2 64, 64, 64
60 #define PAN_OUTLINE_ALPHA 180
62 #define PAN_BACKGROUND_COLOR 150, 150, 150
64 #define PAN_GRID_SIZE 60
65 #define PAN_GRID_COLOR 0, 0, 0
66 #define PAN_GRID_ALPHA 20
68 #define PAN_BOX_COLOR 255, 255, 255
69 #define PAN_BOX_ALPHA 100
70 #define PAN_BOX_BORDER 20
72 #define PAN_BOX_OUTLINE_THICKNESS 4
73 #define PAN_BOX_OUTLINE_COLOR 0, 0, 0
74 #define PAN_BOX_OUTLINE_ALPHA 128
76 #define PAN_TEXT_BORDER_SIZE 4
77 #define PAN_TEXT_COLOR 0, 0, 0
81 #define PAN_POPUP_COLOR 255, 255, 225
82 #define PAN_POPUP_ALPHA 255
83 #define PAN_POPUP_BORDER 1
84 #define PAN_POPUP_BORDER_COLOR 0, 0, 0
85 #define PAN_POPUP_TEXT_COLOR 0, 0, 0
88 #define PAN_GROUP_MAX 16
93 PAN_LAYOUT_TIMELINE = 0,
95 PAN_LAYOUT_FOLDERS_LINEAR,
96 PAN_LAYOUT_FOLDERS_FLOWER,
102 PAN_IMAGE_SIZE_THUMB_DOTS = 0,
103 PAN_IMAGE_SIZE_THUMB_NONE,
104 PAN_IMAGE_SIZE_THUMB_SMALL,
105 PAN_IMAGE_SIZE_THUMB_NORMAL,
106 PAN_IMAGE_SIZE_THUMB_LARGE,
124 enum PanTextAttrType {
125 PAN_TEXT_ATTR_NONE = 0,
126 PAN_TEXT_ATTR_BOLD = 1 << 0,
127 PAN_TEXT_ATTR_HEADING = 1 << 1,
128 PAN_TEXT_ATTR_MARKUP = 1 << 2
133 PAN_BORDER_1 = 1 << 0,
134 PAN_BORDER_2 = 1 << 1,
135 PAN_BORDER_3 = 1 << 2,
136 PAN_BORDER_4 = 1 << 3
139 #define PAN_BORDER_TOP PAN_BORDER_1
140 #define PAN_BORDER_RIGHT PAN_BORDER_2
141 #define PAN_BORDER_BOTTOM PAN_BORDER_3
142 #define PAN_BORDER_LEFT PAN_BORDER_4
159 PanTextAttrType text_attr;
177 struct PanViewSearchUi
179 GtkWidget *search_box;
180 GtkWidget *search_entry;
181 GtkWidget *search_label;
182 GtkWidget *search_button;
183 GtkWidget *search_button_arrow;
187 * @struct PanViewFilterUi
188 * Defined in pan-view-filter.h
190 struct PanViewFilterUi;
196 ImageWindow *imd_normal;
199 GtkWidget *path_entry;
201 GtkWidget *label_message;
202 GtkWidget *label_zoom;
204 PanViewSearchUi *search_ui;
205 PanViewFilterUi *filter_ui;
207 GtkWidget *date_button;
209 GtkWidget *scrollbar_h;
210 GtkWidget *scrollbar_v;
213 PanLayoutType layout;
218 gboolean exif_date_enable;
220 gint info_image_size;
221 gboolean info_includes_exif;
223 gboolean ignore_symlinks;
234 CacheLoader *cache_cl;
255 struct PanCacheData {
261 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */