Mercurial > hg > forks > geeqie
annotate src/typedefs.h @ 2817:e6f95baec8b5
Fix #624: Filter files by shell or regular expression pattern
https://github.com/BestImageViewer/geeqie/issues/624
An option on Select/Show File Filter (or the toolbar) to provide regular
expression file-filtering of the currently displayed folder.
author | Colin Clark <colin.clark@cclark.uk> |
---|---|
date | Wed, 15 Aug 2018 19:43:06 +0100 |
parents | e9e8e8b2afce |
children | f1c975235feb |
rev | line source |
---|---|
9 | 1 /* |
2350
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2340
diff
changeset
|
2 * Copyright (C) 2006 John Ellis |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2340
diff
changeset
|
3 * Copyright (C) 2008 - 2016 The Geeqie Team |
9 | 4 * |
5 * Author: John Ellis | |
6 * | |
2350
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2340
diff
changeset
|
7 * This program is free software; you can redistribute it and/or modify |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2340
diff
changeset
|
8 * it under the terms of the GNU General Public License as published by |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2340
diff
changeset
|
9 * the Free Software Foundation; either version 2 of the License, or |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2340
diff
changeset
|
10 * (at your option) any later version. |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2340
diff
changeset
|
11 * |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2340
diff
changeset
|
12 * This program is distributed in the hope that it will be useful, |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2340
diff
changeset
|
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2340
diff
changeset
|
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2340
diff
changeset
|
15 * GNU General Public License for more details. |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2340
diff
changeset
|
16 * |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2340
diff
changeset
|
17 * You should have received a copy of the GNU General Public License along |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2340
diff
changeset
|
18 * with this program; if not, write to the Free Software Foundation, Inc., |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2340
diff
changeset
|
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
9 | 20 */ |
21 | |
22 #ifndef TYPEDEFS_H | |
23 #define TYPEDEFS_H | |
24 | |
134
d565c72322e8
started implementation of external commands; external Delete should work
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
132
diff
changeset
|
25 typedef enum { |
885
b561a43f7fb0
Use a specific enum for image.zoom_mode values (ZoomMode) and
Laurent Monin <geeqie@norz.org>
parents:
868
diff
changeset
|
26 ZOOM_RESET_ORIGINAL = 0, |
b561a43f7fb0
Use a specific enum for image.zoom_mode values (ZoomMode) and
Laurent Monin <geeqie@norz.org>
parents:
868
diff
changeset
|
27 ZOOM_RESET_FIT_WINDOW = 1, |
b561a43f7fb0
Use a specific enum for image.zoom_mode values (ZoomMode) and
Laurent Monin <geeqie@norz.org>
parents:
868
diff
changeset
|
28 ZOOM_RESET_NONE = 2 |
b561a43f7fb0
Use a specific enum for image.zoom_mode values (ZoomMode) and
Laurent Monin <geeqie@norz.org>
parents:
868
diff
changeset
|
29 } ZoomMode; |
b561a43f7fb0
Use a specific enum for image.zoom_mode values (ZoomMode) and
Laurent Monin <geeqie@norz.org>
parents:
868
diff
changeset
|
30 |
b561a43f7fb0
Use a specific enum for image.zoom_mode values (ZoomMode) and
Laurent Monin <geeqie@norz.org>
parents:
868
diff
changeset
|
31 typedef enum { |
2662
08d2547d72ea
Fix #137: "Copy path" problem (or may be feature)
Colin Clark <colin.clark@cclark.uk>
parents:
2629
diff
changeset
|
32 PRIMARY = 0, |
08d2547d72ea
Fix #137: "Copy path" problem (or may be feature)
Colin Clark <colin.clark@cclark.uk>
parents:
2629
diff
changeset
|
33 CLIPBOARD = 1, |
08d2547d72ea
Fix #137: "Copy path" problem (or may be feature)
Colin Clark <colin.clark@cclark.uk>
parents:
2629
diff
changeset
|
34 } ClipboardSelection; |
08d2547d72ea
Fix #137: "Copy path" problem (or may be feature)
Colin Clark <colin.clark@cclark.uk>
parents:
2629
diff
changeset
|
35 |
08d2547d72ea
Fix #137: "Copy path" problem (or may be feature)
Colin Clark <colin.clark@cclark.uk>
parents:
2629
diff
changeset
|
36 typedef enum { |
448
2c1500b5c933
Use explicit names for mouse buttons instead of numbers.
Laurent Monin <geeqie@norz.org>
parents:
446
diff
changeset
|
37 MOUSE_BUTTON_LEFT = 1, |
2c1500b5c933
Use explicit names for mouse buttons instead of numbers.
Laurent Monin <geeqie@norz.org>
parents:
446
diff
changeset
|
38 MOUSE_BUTTON_MIDDLE = 2, |
2c1500b5c933
Use explicit names for mouse buttons instead of numbers.
Laurent Monin <geeqie@norz.org>
parents:
446
diff
changeset
|
39 MOUSE_BUTTON_RIGHT = 3, |
2c1500b5c933
Use explicit names for mouse buttons instead of numbers.
Laurent Monin <geeqie@norz.org>
parents:
446
diff
changeset
|
40 MOUSE_BUTTON_WHEEL_UP = 4, |
2629
65ddca027935
Multi-button mouse support
Tomasz Golinski <tomaszg@math.uwb.edu.pl>
parents:
2623
diff
changeset
|
41 MOUSE_BUTTON_WHEEL_DOWN = 5, |
65ddca027935
Multi-button mouse support
Tomasz Golinski <tomaszg@math.uwb.edu.pl>
parents:
2623
diff
changeset
|
42 MOUSE_BUTTON_BACK = 8, |
65ddca027935
Multi-button mouse support
Tomasz Golinski <tomaszg@math.uwb.edu.pl>
parents:
2623
diff
changeset
|
43 MOUSE_BUTTON_FORWARD = 9 |
448
2c1500b5c933
Use explicit names for mouse buttons instead of numbers.
Laurent Monin <geeqie@norz.org>
parents:
446
diff
changeset
|
44 } MouseButton; |
2c1500b5c933
Use explicit names for mouse buttons instead of numbers.
Laurent Monin <geeqie@norz.org>
parents:
446
diff
changeset
|
45 |
2c1500b5c933
Use explicit names for mouse buttons instead of numbers.
Laurent Monin <geeqie@norz.org>
parents:
446
diff
changeset
|
46 typedef enum { |
380
41079d11eba7
Introduce a new struct ViewDir to handle directory views common
Laurent Monin <geeqie@norz.org>
parents:
373
diff
changeset
|
47 DIRVIEW_LIST, |
2441
a2d4729a3b2d
Fix GCC and Clang compile warnings.
Omari Stephens <xsdg@google.com>
parents:
2396
diff
changeset
|
48 DIRVIEW_TREE, |
a2d4729a3b2d
Fix GCC and Clang compile warnings.
Omari Stephens <xsdg@google.com>
parents:
2396
diff
changeset
|
49 |
a2d4729a3b2d
Fix GCC and Clang compile warnings.
Omari Stephens <xsdg@google.com>
parents:
2396
diff
changeset
|
50 // Keep this up to date! |
a2d4729a3b2d
Fix GCC and Clang compile warnings.
Omari Stephens <xsdg@google.com>
parents:
2396
diff
changeset
|
51 DIRVIEW_LAST = DIRVIEW_TREE |
380
41079d11eba7
Introduce a new struct ViewDir to handle directory views common
Laurent Monin <geeqie@norz.org>
parents:
373
diff
changeset
|
52 } DirViewType; |
41079d11eba7
Introduce a new struct ViewDir to handle directory views common
Laurent Monin <geeqie@norz.org>
parents:
373
diff
changeset
|
53 |
41079d11eba7
Introduce a new struct ViewDir to handle directory views common
Laurent Monin <geeqie@norz.org>
parents:
373
diff
changeset
|
54 typedef enum { |
554
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
55 FILEVIEW_LIST, |
2441
a2d4729a3b2d
Fix GCC and Clang compile warnings.
Omari Stephens <xsdg@google.com>
parents:
2396
diff
changeset
|
56 FILEVIEW_ICON, |
a2d4729a3b2d
Fix GCC and Clang compile warnings.
Omari Stephens <xsdg@google.com>
parents:
2396
diff
changeset
|
57 |
a2d4729a3b2d
Fix GCC and Clang compile warnings.
Omari Stephens <xsdg@google.com>
parents:
2396
diff
changeset
|
58 // Keep this up to date! |
a2d4729a3b2d
Fix GCC and Clang compile warnings.
Omari Stephens <xsdg@google.com>
parents:
2396
diff
changeset
|
59 FILEVIEW_LAST = FILEVIEW_ICON |
554
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
60 } FileViewType; |
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
61 |
1272
661e170bf4f7
read external editors from .desktop files
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1240
diff
changeset
|
62 #define CMD_COPY "geeqie-copy-command.desktop" |
661e170bf4f7
read external editors from .desktop files
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1240
diff
changeset
|
63 #define CMD_MOVE "geeqie-move-command.desktop" |
661e170bf4f7
read external editors from .desktop files
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1240
diff
changeset
|
64 #define CMD_RENAME "geeqie-rename-command.desktop" |
661e170bf4f7
read external editors from .desktop files
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1240
diff
changeset
|
65 #define CMD_DELETE "geeqie-delete-command.desktop" |
661e170bf4f7
read external editors from .desktop files
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1240
diff
changeset
|
66 #define CMD_FOLDER "geeqie-folder-command.desktop" |
9 | 67 |
68 typedef enum { | |
69 SORT_NONE, | |
70 SORT_NAME, | |
71 SORT_SIZE, | |
72 SORT_TIME, | |
2272
56ffcc384eb8
Implementing sorting by file creation
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2255
diff
changeset
|
73 SORT_CTIME, |
9 | 74 SORT_PATH, |
2067
b53cdc8cf7b8
Allow to sort files according to Exif-date
Juuso Räsänen <juusora@gmail.com>
parents:
2021
diff
changeset
|
75 SORT_NUMBER, |
2500
eb2ce489ceea
Fix #323: Rating system
Colin Clark <colin.clark@cclark.uk>
parents:
2466
diff
changeset
|
76 SORT_EXIFTIME, |
2698
940f217da9ec
Sort/search on Exif.Photo.DateTimeDigitized
Colin Clark <colin.clark@cclark.uk>
parents:
2696
diff
changeset
|
77 SORT_EXIFTIMEDIGITIZED, |
2696
f090fbf9362f
Sort/search on file class
Colin Clark <colin.clark@cclark.uk>
parents:
2662
diff
changeset
|
78 SORT_RATING, |
f090fbf9362f
Sort/search on file class
Colin Clark <colin.clark@cclark.uk>
parents:
2662
diff
changeset
|
79 SORT_CLASS |
9 | 80 } SortType; |
81 | |
82 typedef enum { | |
83 ALTER_NONE, /* do nothing */ | |
84 ALTER_ROTATE_90, | |
85 ALTER_ROTATE_90_CC, /* counterclockwise */ | |
86 ALTER_ROTATE_180, | |
87 ALTER_MIRROR, | |
82
05a6aea69f24
Thu Oct 19 15:20:51 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
41
diff
changeset
|
88 ALTER_FLIP, |
9 | 89 } AlterType; |
90 | |
91 typedef enum { | |
92 LAYOUT_HIDE = 0, | |
93 LAYOUT_LEFT = 1 << 0, | |
94 LAYOUT_RIGHT = 1 << 1, | |
95 LAYOUT_TOP = 1 << 2, | |
96 LAYOUT_BOTTOM = 1 << 3 | |
97 } LayoutLocation; | |
98 | |
99 | |
113
f2109493004f
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
82
diff
changeset
|
100 typedef enum { |
f2109493004f
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
82
diff
changeset
|
101 IMAGE_STATE_NONE = 0, |
f2109493004f
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
82
diff
changeset
|
102 IMAGE_STATE_IMAGE = 1 << 0, |
f2109493004f
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
82
diff
changeset
|
103 IMAGE_STATE_LOADING = 1 << 1, |
f2109493004f
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
82
diff
changeset
|
104 IMAGE_STATE_ERROR = 1 << 2, |
f2109493004f
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
82
diff
changeset
|
105 IMAGE_STATE_COLOR_ADJ = 1 << 3, |
f2109493004f
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
82
diff
changeset
|
106 IMAGE_STATE_ROTATE_AUTO = 1 << 4, |
f2109493004f
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
82
diff
changeset
|
107 IMAGE_STATE_ROTATE_USER = 1 << 5, |
f2109493004f
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
82
diff
changeset
|
108 IMAGE_STATE_DELAY_FLIP = 1 << 6 |
f2109493004f
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
82
diff
changeset
|
109 } ImageState; |
f2109493004f
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
82
diff
changeset
|
110 |
127
996ccab9eab3
implemented split windows
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
122
diff
changeset
|
111 typedef enum { |
996ccab9eab3
implemented split windows
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
122
diff
changeset
|
112 SPLIT_NONE = 0, |
996ccab9eab3
implemented split windows
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
122
diff
changeset
|
113 SPLIT_VERT, |
996ccab9eab3
implemented split windows
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
122
diff
changeset
|
114 SPLIT_HOR, |
996ccab9eab3
implemented split windows
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
122
diff
changeset
|
115 SPLIT_QUAD, |
996ccab9eab3
implemented split windows
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
122
diff
changeset
|
116 } ImageSplitMode; |
996ccab9eab3
implemented split windows
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
122
diff
changeset
|
117 |
143
855d7dac4d54
improved FileDataChangeInfo structure, check for another file operation in progress
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
141
diff
changeset
|
118 typedef enum { |
855d7dac4d54
improved FileDataChangeInfo structure, check for another file operation in progress
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
141
diff
changeset
|
119 FILEDATA_CHANGE_DELETE, |
855d7dac4d54
improved FileDataChangeInfo structure, check for another file operation in progress
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
141
diff
changeset
|
120 FILEDATA_CHANGE_MOVE, |
855d7dac4d54
improved FileDataChangeInfo structure, check for another file operation in progress
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
141
diff
changeset
|
121 FILEDATA_CHANGE_RENAME, |
590
04ee89d4e378
started implementation of API for sidecar files
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
574
diff
changeset
|
122 FILEDATA_CHANGE_COPY, |
1205
90a3e8b07c5d
use the workflow in utilops.c for metadata approving and writting
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1203
diff
changeset
|
123 FILEDATA_CHANGE_UNSPECIFIED, |
90a3e8b07c5d
use the workflow in utilops.c for metadata approving and writting
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1203
diff
changeset
|
124 FILEDATA_CHANGE_WRITE_METADATA |
143
855d7dac4d54
improved FileDataChangeInfo structure, check for another file operation in progress
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
141
diff
changeset
|
125 } FileDataChangeType; |
855d7dac4d54
improved FileDataChangeInfo structure, check for another file operation in progress
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
141
diff
changeset
|
126 |
161
47bc2d9f8e68
complete set of boolean operation with marks -
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
158
diff
changeset
|
127 typedef enum { |
47bc2d9f8e68
complete set of boolean operation with marks -
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
158
diff
changeset
|
128 MTS_MODE_MINUS, |
47bc2d9f8e68
complete set of boolean operation with marks -
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
158
diff
changeset
|
129 MTS_MODE_SET, |
47bc2d9f8e68
complete set of boolean operation with marks -
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
158
diff
changeset
|
130 MTS_MODE_OR, |
47bc2d9f8e68
complete set of boolean operation with marks -
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
158
diff
changeset
|
131 MTS_MODE_AND |
47bc2d9f8e68
complete set of boolean operation with marks -
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
158
diff
changeset
|
132 } MarkToSelectionMode; |
47bc2d9f8e68
complete set of boolean operation with marks -
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
158
diff
changeset
|
133 |
47bc2d9f8e68
complete set of boolean operation with marks -
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
158
diff
changeset
|
134 typedef enum { |
47bc2d9f8e68
complete set of boolean operation with marks -
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
158
diff
changeset
|
135 STM_MODE_RESET, |
47bc2d9f8e68
complete set of boolean operation with marks -
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
158
diff
changeset
|
136 STM_MODE_SET, |
47bc2d9f8e68
complete set of boolean operation with marks -
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
158
diff
changeset
|
137 STM_MODE_TOGGLE |
47bc2d9f8e68
complete set of boolean operation with marks -
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
158
diff
changeset
|
138 } SelectionToMarkMode; |
47bc2d9f8e68
complete set of boolean operation with marks -
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
158
diff
changeset
|
139 |
212
ca2772493f11
differentiate among normal image, raw image and metadata
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
196
diff
changeset
|
140 typedef enum { |
ca2772493f11
differentiate among normal image, raw image and metadata
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
196
diff
changeset
|
141 FORMAT_CLASS_UNKNOWN, |
ca2772493f11
differentiate among normal image, raw image and metadata
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
196
diff
changeset
|
142 FORMAT_CLASS_IMAGE, |
ca2772493f11
differentiate among normal image, raw image and metadata
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
196
diff
changeset
|
143 FORMAT_CLASS_RAWIMAGE, |
ca2772493f11
differentiate among normal image, raw image and metadata
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
196
diff
changeset
|
144 FORMAT_CLASS_META, |
2597
e65df743a5a1
Ref #510: Rudimentary video support
Colin Clark <colin.clark@cclark.uk>
parents:
2596
diff
changeset
|
145 FORMAT_CLASS_VIDEO, |
2793 | 146 FORMAT_CLASS_COLLECTION, |
2799
ea4163f0c769
Ref #332: include pdf-view
Colin Clark <colin.clark@cclark.uk>
parents:
2793
diff
changeset
|
147 FORMAT_CLASS_PDF, |
212
ca2772493f11
differentiate among normal image, raw image and metadata
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
196
diff
changeset
|
148 FILE_FORMAT_CLASSES |
ca2772493f11
differentiate among normal image, raw image and metadata
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
196
diff
changeset
|
149 } FileFormatClass; |
ca2772493f11
differentiate among normal image, raw image and metadata
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
196
diff
changeset
|
150 |
2768
7d275582e37d
Fix #612: Pan view image class filtering
Tomasz Golinski <tomaszg@math.uwb.edu.pl>
parents:
2698
diff
changeset
|
151 extern gchar *format_class_list[]; |
7d275582e37d
Fix #612: Pan view image class filtering
Tomasz Golinski <tomaszg@math.uwb.edu.pl>
parents:
2698
diff
changeset
|
152 |
276
9625a36d4a69
Implement secure rc file saving.
Laurent Monin <geeqie@norz.org>
parents:
273
diff
changeset
|
153 typedef enum { |
9625a36d4a69
Implement secure rc file saving.
Laurent Monin <geeqie@norz.org>
parents:
273
diff
changeset
|
154 SS_ERR_NONE = 0, |
9625a36d4a69
Implement secure rc file saving.
Laurent Monin <geeqie@norz.org>
parents:
273
diff
changeset
|
155 SS_ERR_DISABLED, /**< secsave is disabled. */ |
9625a36d4a69
Implement secure rc file saving.
Laurent Monin <geeqie@norz.org>
parents:
273
diff
changeset
|
156 SS_ERR_OUT_OF_MEM, /**< memory allocation failure */ |
9625a36d4a69
Implement secure rc file saving.
Laurent Monin <geeqie@norz.org>
parents:
273
diff
changeset
|
157 |
9625a36d4a69
Implement secure rc file saving.
Laurent Monin <geeqie@norz.org>
parents:
273
diff
changeset
|
158 /* see err field in SecureSaveInfo */ |
9625a36d4a69
Implement secure rc file saving.
Laurent Monin <geeqie@norz.org>
parents:
273
diff
changeset
|
159 SS_ERR_OPEN_READ, |
9625a36d4a69
Implement secure rc file saving.
Laurent Monin <geeqie@norz.org>
parents:
273
diff
changeset
|
160 SS_ERR_OPEN_WRITE, |
9625a36d4a69
Implement secure rc file saving.
Laurent Monin <geeqie@norz.org>
parents:
273
diff
changeset
|
161 SS_ERR_STAT, |
9625a36d4a69
Implement secure rc file saving.
Laurent Monin <geeqie@norz.org>
parents:
273
diff
changeset
|
162 SS_ERR_ACCESS, |
9625a36d4a69
Implement secure rc file saving.
Laurent Monin <geeqie@norz.org>
parents:
273
diff
changeset
|
163 SS_ERR_MKSTEMP, |
9625a36d4a69
Implement secure rc file saving.
Laurent Monin <geeqie@norz.org>
parents:
273
diff
changeset
|
164 SS_ERR_RENAME, |
9625a36d4a69
Implement secure rc file saving.
Laurent Monin <geeqie@norz.org>
parents:
273
diff
changeset
|
165 SS_ERR_OTHER, |
9625a36d4a69
Implement secure rc file saving.
Laurent Monin <geeqie@norz.org>
parents:
273
diff
changeset
|
166 } SecureSaveErrno; |
9625a36d4a69
Implement secure rc file saving.
Laurent Monin <geeqie@norz.org>
parents:
273
diff
changeset
|
167 |
791
9ac2f29b065e
realtime file monitor
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
785
diff
changeset
|
168 typedef enum { |
9ac2f29b065e
realtime file monitor
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
785
diff
changeset
|
169 NOTIFY_PRIORITY_HIGH = 0, |
9ac2f29b065e
realtime file monitor
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
785
diff
changeset
|
170 NOTIFY_PRIORITY_MEDIUM, |
9ac2f29b065e
realtime file monitor
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
785
diff
changeset
|
171 NOTIFY_PRIORITY_LOW |
9ac2f29b065e
realtime file monitor
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
785
diff
changeset
|
172 } NotifyPriority; |
2185
c14a1d8e6aa4
Trim trailing white spaces on empty lines.
Laurent Monin <zas@norz.org>
parents:
2114
diff
changeset
|
173 |
792 | 174 typedef enum { |
1432
7f454e7d07a3
improved notification system
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1431
diff
changeset
|
175 NOTIFY_MARKS = 1 << 1, /* changed marks */ |
7f454e7d07a3
improved notification system
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1431
diff
changeset
|
176 NOTIFY_PIXBUF = 1 << 2, /* image was read into fd->pixbuf */ |
7f454e7d07a3
improved notification system
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1431
diff
changeset
|
177 NOTIFY_HISTMAP = 1 << 3, /* histmap was read into fd->histmap */ |
7f454e7d07a3
improved notification system
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1431
diff
changeset
|
178 NOTIFY_ORIENTATION = 1 << 4, /* image was rotated */ |
7f454e7d07a3
improved notification system
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1431
diff
changeset
|
179 NOTIFY_METADATA = 1 << 5, /* changed image metadata, not yet written */ |
7f454e7d07a3
improved notification system
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1431
diff
changeset
|
180 NOTIFY_GROUPING = 1 << 6, /* change in fd->sidecar_files or fd->parent */ |
7f454e7d07a3
improved notification system
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1431
diff
changeset
|
181 NOTIFY_REREAD = 1 << 7, /* changed file size, date, etc., file name remains unchanged */ |
7f454e7d07a3
improved notification system
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1431
diff
changeset
|
182 NOTIFY_CHANGE = 1 << 8 /* generic change described by fd->change */ |
792 | 183 } NotifyType; |
791
9ac2f29b065e
realtime file monitor
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
785
diff
changeset
|
184 |
914
bea49bbfede3
basic infrastructure for early error and dangerous operations checking
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
888
diff
changeset
|
185 typedef enum { |
929
f76f5d447388
more checks for file operations
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
914
diff
changeset
|
186 CHANGE_OK = 0, |
f76f5d447388
more checks for file operations
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
914
diff
changeset
|
187 CHANGE_WARN_DEST_EXISTS = 1 << 0, |
f76f5d447388
more checks for file operations
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
914
diff
changeset
|
188 CHANGE_WARN_NO_WRITE_PERM = 1 << 1, |
f76f5d447388
more checks for file operations
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
914
diff
changeset
|
189 CHANGE_WARN_SAME = 1 << 2, |
933
5eaf0907c8d6
warn about changed file extensions
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
931
diff
changeset
|
190 CHANGE_WARN_CHANGED_EXT = 1 << 3, |
1677
0de5d3927b15
warn if another operation is performed on a file with unsaved metadata
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1660
diff
changeset
|
191 CHANGE_WARN_UNSAVED_META = 1 << 4, |
2015
cb2fb10d84b3
changed "readonly destination directory" to a warning
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1932
diff
changeset
|
192 CHANGE_WARN_NO_WRITE_PERM_DEST_DIR = 1 << 5, |
2296 | 193 CHANGE_ERROR_MASK = (~0U) << 8, /* the values below are fatal errors */ |
1677
0de5d3927b15
warn if another operation is performed on a file with unsaved metadata
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1660
diff
changeset
|
194 CHANGE_NO_READ_PERM = 1 << 8, |
0de5d3927b15
warn if another operation is performed on a file with unsaved metadata
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1660
diff
changeset
|
195 CHANGE_NO_WRITE_PERM_DIR = 1 << 9, |
0de5d3927b15
warn if another operation is performed on a file with unsaved metadata
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1660
diff
changeset
|
196 CHANGE_NO_DEST_DIR = 1 << 10, |
2295
38f6ecad0b53
Issue #332 Rename function can delete files
Colin Clark <cclark@mcb.net>
parents:
2272
diff
changeset
|
197 CHANGE_DUPLICATE_DEST = 1 << 11, |
1677
0de5d3927b15
warn if another operation is performed on a file with unsaved metadata
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1660
diff
changeset
|
198 CHANGE_NO_WRITE_PERM_DEST = 1 << 12, |
0de5d3927b15
warn if another operation is performed on a file with unsaved metadata
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1660
diff
changeset
|
199 CHANGE_DEST_EXISTS = 1 << 13, |
0de5d3927b15
warn if another operation is performed on a file with unsaved metadata
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1660
diff
changeset
|
200 CHANGE_NO_SRC = 1 << 14, |
931
d35d354b1fc1
allow only existing folders in destination dialog
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
929
diff
changeset
|
201 CHANGE_GENERIC_ERROR = 1 << 16 |
914
bea49bbfede3
basic infrastructure for early error and dangerous operations checking
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
888
diff
changeset
|
202 } ChangeError; |
bea49bbfede3
basic infrastructure for early error and dangerous operations checking
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
888
diff
changeset
|
203 |
1288
01a4a8674c8b
use metadata_read_* functions where possible
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1284
diff
changeset
|
204 typedef enum { |
01a4a8674c8b
use metadata_read_* functions where possible
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1284
diff
changeset
|
205 METADATA_PLAIN = 0, /* format that can be edited and written back */ |
01a4a8674c8b
use metadata_read_* functions where possible
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1284
diff
changeset
|
206 METADATA_FORMATTED = 1 /* for display only */ |
01a4a8674c8b
use metadata_read_* functions where possible
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1284
diff
changeset
|
207 } MetadataFormat; |
01a4a8674c8b
use metadata_read_* functions where possible
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1284
diff
changeset
|
208 |
1511
ce48bdc8350d
startup path options simplified and moved to layout options
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1481
diff
changeset
|
209 typedef enum { |
ce48bdc8350d
startup path options simplified and moved to layout options
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1481
diff
changeset
|
210 STARTUP_PATH_CURRENT = 0, |
ce48bdc8350d
startup path options simplified and moved to layout options
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1481
diff
changeset
|
211 STARTUP_PATH_LAST, |
ce48bdc8350d
startup path options simplified and moved to layout options
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1481
diff
changeset
|
212 STARTUP_PATH_HOME, |
ce48bdc8350d
startup path options simplified and moved to layout options
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1481
diff
changeset
|
213 } StartUpPath; |
1288
01a4a8674c8b
use metadata_read_* functions where possible
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1284
diff
changeset
|
214 |
1582
f137ec3fd85e
- handle color profile and write metadata buttons on statusbar by ui_manager
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1566
diff
changeset
|
215 typedef enum { |
f137ec3fd85e
- handle color profile and write metadata buttons on statusbar by ui_manager
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1566
diff
changeset
|
216 TOOLBAR_MAIN, |
f137ec3fd85e
- handle color profile and write metadata buttons on statusbar by ui_manager
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1566
diff
changeset
|
217 TOOLBAR_STATUS, |
f137ec3fd85e
- handle color profile and write metadata buttons on statusbar by ui_manager
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1566
diff
changeset
|
218 TOOLBAR_COUNT |
f137ec3fd85e
- handle color profile and write metadata buttons on statusbar by ui_manager
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1566
diff
changeset
|
219 } ToolbarType; |
f137ec3fd85e
- handle color profile and write metadata buttons on statusbar by ui_manager
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1566
diff
changeset
|
220 |
1886
ba2f9ac17b54
change stereo mode from menu
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1802
diff
changeset
|
221 typedef enum { |
2255
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
222 PR_STEREO_NONE = 0, /* do nothing */ |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
223 PR_STEREO_DUAL = 1 << 0, /* independent stereo buffers, for example nvidia opengl */ |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
224 PR_STEREO_FIXED = 1 << 1, /* custom position */ |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
225 PR_STEREO_HORIZ = 1 << 2, /* side by side */ |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
226 PR_STEREO_VERT = 1 << 3, /* above below */ |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
227 PR_STEREO_RIGHT = 1 << 4, /* render right buffer */ |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
228 PR_STEREO_ANAGLYPH_RC = 1 << 5, /* anaglyph red-cyan */ |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
229 PR_STEREO_ANAGLYPH_GM = 1 << 6, /* anaglyph green-magenta */ |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
230 PR_STEREO_ANAGLYPH_YB = 1 << 7, /* anaglyph yellow-blue */ |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
231 PR_STEREO_ANAGLYPH_GRAY_RC = 1 << 8, /* anaglyph gray red-cyan*/ |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
232 PR_STEREO_ANAGLYPH_GRAY_GM = 1 << 9, /* anaglyph gray green-magenta */ |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
233 PR_STEREO_ANAGLYPH_GRAY_YB = 1 << 10, /* anaglyph gray yellow-blue */ |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
234 PR_STEREO_ANAGLYPH_DB_RC = 1 << 11, /* anaglyph dubois red-cyan */ |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
235 PR_STEREO_ANAGLYPH_DB_GM = 1 << 12, /* anaglyph dubois green-magenta */ |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
236 PR_STEREO_ANAGLYPH_DB_YB = 1 << 13, /* anaglyph dubois yellow-blue */ |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
237 PR_STEREO_ANAGLYPH = PR_STEREO_ANAGLYPH_RC | |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
238 PR_STEREO_ANAGLYPH_GM | |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
239 PR_STEREO_ANAGLYPH_YB | |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
240 PR_STEREO_ANAGLYPH_GRAY_RC | |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
241 PR_STEREO_ANAGLYPH_GRAY_GM | |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
242 PR_STEREO_ANAGLYPH_GRAY_YB | |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
243 PR_STEREO_ANAGLYPH_DB_RC | |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
244 PR_STEREO_ANAGLYPH_DB_GM | |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
245 PR_STEREO_ANAGLYPH_DB_YB, /* anaglyph mask */ |
1889
14088e0b25ec
temporarily disable stereo mode, added more stereo prefs
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1888
diff
changeset
|
246 |
2255
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
247 PR_STEREO_MIRROR_LEFT = 1 << 14, /* mirror */ |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
248 PR_STEREO_FLIP_LEFT = 1 << 15, /* flip */ |
1889
14088e0b25ec
temporarily disable stereo mode, added more stereo prefs
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1888
diff
changeset
|
249 |
2255
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
250 PR_STEREO_MIRROR_RIGHT = 1 << 16, /* mirror */ |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
251 PR_STEREO_FLIP_RIGHT = 1 << 17, /* flip */ |
1889
14088e0b25ec
temporarily disable stereo mode, added more stereo prefs
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1888
diff
changeset
|
252 |
2255
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
253 PR_STEREO_MIRROR = PR_STEREO_MIRROR_LEFT | PR_STEREO_MIRROR_RIGHT, /* mirror mask*/ |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
254 PR_STEREO_FLIP = PR_STEREO_FLIP_LEFT | PR_STEREO_FLIP_RIGHT, /* flip mask*/ |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
255 PR_STEREO_SWAP = 1 << 18, /* swap left and right buffers */ |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
256 PR_STEREO_TEMP_DISABLE = 1 << 19, /* temporarily disable stereo mode if source image is not stereo */ |
c67b4f60c4b1
Add support for Green-Magenta and Yellow-Blue anaglyph modes
Alexey Akishin <alex@science.su>
parents:
2236
diff
changeset
|
257 PR_STEREO_HALF = 1 << 20 |
1886
ba2f9ac17b54
change stereo mode from menu
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1802
diff
changeset
|
258 } PixbufRendererStereoMode; |
ba2f9ac17b54
change stereo mode from menu
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1802
diff
changeset
|
259 |
1888
039d5c8864a0
type of source stereo image made adjustable from menu
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1887
diff
changeset
|
260 typedef enum { |
039d5c8864a0
type of source stereo image made adjustable from menu
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1887
diff
changeset
|
261 STEREO_PIXBUF_DEFAULT = 0, |
039d5c8864a0
type of source stereo image made adjustable from menu
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1887
diff
changeset
|
262 STEREO_PIXBUF_SBS = 1, |
039d5c8864a0
type of source stereo image made adjustable from menu
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1887
diff
changeset
|
263 STEREO_PIXBUF_CROSS = 2, |
039d5c8864a0
type of source stereo image made adjustable from menu
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1887
diff
changeset
|
264 STEREO_PIXBUF_NONE = 3 |
039d5c8864a0
type of source stereo image made adjustable from menu
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1887
diff
changeset
|
265 } StereoPixbufData; |
1886
ba2f9ac17b54
change stereo mode from menu
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1802
diff
changeset
|
266 |
127
996ccab9eab3
implemented split windows
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
122
diff
changeset
|
267 #define MAX_SPLIT_IMAGES 4 |
996ccab9eab3
implemented split windows
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
122
diff
changeset
|
268 |
2524 | 269 typedef enum { |
270 SELECTION_NONE = 0, | |
271 SELECTION_SELECTED = 1 << 0, | |
272 SELECTION_PRELIGHT = 1 << 1, | |
273 SELECTION_FOCUS = 1 << 2 | |
274 } SelectionType; | |
275 | |
9 | 276 typedef struct _ImageLoader ImageLoader; |
277 typedef struct _ThumbLoader ThumbLoader; | |
278 | |
2396
00faf5a63f6c
Animated images.
Christian Heckendorf <heckendorfc@gmail.com>
parents:
2350
diff
changeset
|
279 typedef struct _AnimationData AnimationData; |
00faf5a63f6c
Animated images.
Christian Heckendorf <heckendorfc@gmail.com>
parents:
2350
diff
changeset
|
280 |
9 | 281 typedef struct _CollectInfo CollectInfo; |
282 typedef struct _CollectionData CollectionData; | |
283 typedef struct _CollectTable CollectTable; | |
284 typedef struct _CollectWindow CollectWindow; | |
285 | |
286 typedef struct _ImageWindow ImageWindow; | |
287 | |
288 typedef struct _FileData FileData; | |
138
5be5d1c53016
replaced gchar* path with FileData *fd
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
137
diff
changeset
|
289 typedef struct _FileDataChangeInfo FileDataChangeInfo; |
9 | 290 |
291 typedef struct _LayoutWindow LayoutWindow; | |
1309
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
292 typedef struct _LayoutOptions LayoutOptions; |
554
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
293 |
380
41079d11eba7
Introduce a new struct ViewDir to handle directory views common
Laurent Monin <geeqie@norz.org>
parents:
373
diff
changeset
|
294 typedef struct _ViewDir ViewDir; |
41079d11eba7
Introduce a new struct ViewDir to handle directory views common
Laurent Monin <geeqie@norz.org>
parents:
373
diff
changeset
|
295 typedef struct _ViewDirInfoList ViewDirInfoList; |
41079d11eba7
Introduce a new struct ViewDir to handle directory views common
Laurent Monin <geeqie@norz.org>
parents:
373
diff
changeset
|
296 typedef struct _ViewDirInfoTree ViewDirInfoTree; |
554
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
297 |
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
298 typedef struct _ViewFile ViewFile; |
557
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
299 typedef struct _ViewFileInfoList ViewFileInfoList; |
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
300 typedef struct _ViewFileInfoIcon ViewFileInfoIcon; |
9 | 301 |
302 typedef struct _SlideShowData SlideShowData; | |
303 typedef struct _FullScreenData FullScreenData; | |
304 | |
305 typedef struct _PixmapFolders PixmapFolders; | |
273
aedbff4f5d0d
reworked the histogram patch by Uwe Ohse, most of the code is in
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
212
diff
changeset
|
306 typedef struct _Histogram Histogram; |
1294 | 307 typedef struct _HistMap HistMap; |
273
aedbff4f5d0d
reworked the histogram patch by Uwe Ohse, most of the code is in
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
212
diff
changeset
|
308 |
276
9625a36d4a69
Implement secure rc file saving.
Laurent Monin <geeqie@norz.org>
parents:
273
diff
changeset
|
309 typedef struct _SecureSaveInfo SecureSaveInfo; |
9 | 310 |
844
a311d66693d4
implemented generic FileData cache
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
843
diff
changeset
|
311 typedef struct _ExifData ExifData; |
a311d66693d4
implemented generic FileData cache
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
843
diff
changeset
|
312 |
1272
661e170bf4f7
read external editors from .desktop files
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1240
diff
changeset
|
313 typedef struct _EditorDescription EditorDescription; |
661e170bf4f7
read external editors from .desktop files
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1240
diff
changeset
|
314 |
1313
29ff0de0a67e
enabled commandline again
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1309
diff
changeset
|
315 typedef struct _CommandLine CommandLine; |
29ff0de0a67e
enabled commandline again
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1309
diff
changeset
|
316 |
1329
43e9e0260e8c
Clean up histogram stuff: options saving/restoring, osd histogram separation, tidy up.
Laurent Monin <geeqie@norz.org>
parents:
1320
diff
changeset
|
317 struct _Histogram { |
43e9e0260e8c
Clean up histogram stuff: options saving/restoring, osd histogram separation, tidy up.
Laurent Monin <geeqie@norz.org>
parents:
1320
diff
changeset
|
318 gint histogram_channel; /* drawing mode for histogram */ |
43e9e0260e8c
Clean up histogram stuff: options saving/restoring, osd histogram separation, tidy up.
Laurent Monin <geeqie@norz.org>
parents:
1320
diff
changeset
|
319 gint histogram_mode; /* logarithmical or not */ |
43e9e0260e8c
Clean up histogram stuff: options saving/restoring, osd histogram separation, tidy up.
Laurent Monin <geeqie@norz.org>
parents:
1320
diff
changeset
|
320 guint vgrid; /* number of vertical divisions, 0 for none */ |
43e9e0260e8c
Clean up histogram stuff: options saving/restoring, osd histogram separation, tidy up.
Laurent Monin <geeqie@norz.org>
parents:
1320
diff
changeset
|
321 guint hgrid; /* number of horizontal divisions, 0 for none */ |
43e9e0260e8c
Clean up histogram stuff: options saving/restoring, osd histogram separation, tidy up.
Laurent Monin <geeqie@norz.org>
parents:
1320
diff
changeset
|
322 struct { |
43e9e0260e8c
Clean up histogram stuff: options saving/restoring, osd histogram separation, tidy up.
Laurent Monin <geeqie@norz.org>
parents:
1320
diff
changeset
|
323 int R; /* red */ |
43e9e0260e8c
Clean up histogram stuff: options saving/restoring, osd histogram separation, tidy up.
Laurent Monin <geeqie@norz.org>
parents:
1320
diff
changeset
|
324 int G; /* green */ |
43e9e0260e8c
Clean up histogram stuff: options saving/restoring, osd histogram separation, tidy up.
Laurent Monin <geeqie@norz.org>
parents:
1320
diff
changeset
|
325 int B; /* blue */ |
43e9e0260e8c
Clean up histogram stuff: options saving/restoring, osd histogram separation, tidy up.
Laurent Monin <geeqie@norz.org>
parents:
1320
diff
changeset
|
326 int A; /* alpha */ |
43e9e0260e8c
Clean up histogram stuff: options saving/restoring, osd histogram separation, tidy up.
Laurent Monin <geeqie@norz.org>
parents:
1320
diff
changeset
|
327 } grid_color; /* grid color */ |
43e9e0260e8c
Clean up histogram stuff: options saving/restoring, osd histogram separation, tidy up.
Laurent Monin <geeqie@norz.org>
parents:
1320
diff
changeset
|
328 |
43e9e0260e8c
Clean up histogram stuff: options saving/restoring, osd histogram separation, tidy up.
Laurent Monin <geeqie@norz.org>
parents:
1320
diff
changeset
|
329 }; |
43e9e0260e8c
Clean up histogram stuff: options saving/restoring, osd histogram separation, tidy up.
Laurent Monin <geeqie@norz.org>
parents:
1320
diff
changeset
|
330 |
43e9e0260e8c
Clean up histogram stuff: options saving/restoring, osd histogram separation, tidy up.
Laurent Monin <geeqie@norz.org>
parents:
1320
diff
changeset
|
331 |
1272
661e170bf4f7
read external editors from .desktop files
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1240
diff
changeset
|
332 |
1012
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1008
diff
changeset
|
333 struct _ImageLoader; |
9 | 334 |
335 typedef void (* ThumbLoaderFunc)(ThumbLoader *tl, gpointer data); | |
336 | |
1231
13500d2268af
added done callback to utilops
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1227
diff
changeset
|
337 typedef void (* FileUtilDoneFunc)(gboolean success, const gchar *done_path, gpointer data); |
13500d2268af
added done callback to utilops
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1227
diff
changeset
|
338 |
9 | 339 struct _ThumbLoader |
340 { | |
1446 | 341 gboolean standard_loader; |
9 | 342 |
343 ImageLoader *il; | |
838
fd3a200281f6
use FileData in thumb_loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
837
diff
changeset
|
344 FileData *fd; /* fd->pixbuf contains final (scaled) image when done */ |
9 | 345 |
1446 | 346 gboolean cache_enable; |
347 gboolean cache_hit; | |
9 | 348 gdouble percent_done; |
349 | |
350 gint max_w; | |
351 gint max_h; | |
352 | |
353 ThumbLoaderFunc func_done; | |
354 ThumbLoaderFunc func_error; | |
355 ThumbLoaderFunc func_progress; | |
356 | |
357 gpointer data; | |
358 | |
1523
e52aabe8fc7a
Fix up event source ids type: gint -> guint.
Laurent Monin <geeqie@norz.org>
parents:
1514
diff
changeset
|
359 guint idle_done_id; /* event source id */ |
9 | 360 }; |
361 | |
2396
00faf5a63f6c
Animated images.
Christian Heckendorf <heckendorfc@gmail.com>
parents:
2350
diff
changeset
|
362 struct _AnimationData |
00faf5a63f6c
Animated images.
Christian Heckendorf <heckendorfc@gmail.com>
parents:
2350
diff
changeset
|
363 { |
00faf5a63f6c
Animated images.
Christian Heckendorf <heckendorfc@gmail.com>
parents:
2350
diff
changeset
|
364 ImageWindow *iw; |
00faf5a63f6c
Animated images.
Christian Heckendorf <heckendorfc@gmail.com>
parents:
2350
diff
changeset
|
365 GdkPixbufAnimation *gpa; |
00faf5a63f6c
Animated images.
Christian Heckendorf <heckendorfc@gmail.com>
parents:
2350
diff
changeset
|
366 GdkPixbufAnimationIter *iter; |
00faf5a63f6c
Animated images.
Christian Heckendorf <heckendorfc@gmail.com>
parents:
2350
diff
changeset
|
367 GdkPixbuf *gpb; |
00faf5a63f6c
Animated images.
Christian Heckendorf <heckendorfc@gmail.com>
parents:
2350
diff
changeset
|
368 FileData *data_adr; |
00faf5a63f6c
Animated images.
Christian Heckendorf <heckendorfc@gmail.com>
parents:
2350
diff
changeset
|
369 guint delay; |
00faf5a63f6c
Animated images.
Christian Heckendorf <heckendorfc@gmail.com>
parents:
2350
diff
changeset
|
370 gboolean valid; |
00faf5a63f6c
Animated images.
Christian Heckendorf <heckendorfc@gmail.com>
parents:
2350
diff
changeset
|
371 }; |
00faf5a63f6c
Animated images.
Christian Heckendorf <heckendorfc@gmail.com>
parents:
2350
diff
changeset
|
372 |
9 | 373 struct _CollectInfo |
374 { | |
138
5be5d1c53016
replaced gchar* path with FileData *fd
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
137
diff
changeset
|
375 FileData *fd; |
9 | 376 GdkPixbuf *pixbuf; |
736
31d858f3272d
Fix signed vs unsigned warnings.
Laurent Monin <geeqie@norz.org>
parents:
730
diff
changeset
|
377 guint flag_mask; |
9 | 378 }; |
379 | |
380 struct _CollectionData | |
381 { | |
382 gchar *path; | |
383 gchar *name; | |
384 GList *list; | |
385 SortType sort_method; | |
386 | |
387 ThumbLoader *thumb_loader; | |
388 CollectInfo *thumb_info; | |
389 | |
390 void (*info_updated_func)(CollectionData *, CollectInfo *, gpointer); | |
391 gpointer info_updated_data; | |
392 | |
393 gint ref; | |
394 | |
395 /* geometry */ | |
396 gint window_read; | |
397 gint window_x; | |
398 gint window_y; | |
399 gint window_w; | |
400 gint window_h; | |
401 | |
402 /* contents changed since save flag */ | |
1446 | 403 gboolean changed; |
303
dd8e3d1267cc
Prevent multiple insertion of the same file in a collection.
Laurent Monin <geeqie@norz.org>
parents:
290
diff
changeset
|
404 |
dd8e3d1267cc
Prevent multiple insertion of the same file in a collection.
Laurent Monin <geeqie@norz.org>
parents:
290
diff
changeset
|
405 GHashTable *existence; |
9 | 406 }; |
407 | |
408 struct _CollectTable | |
409 { | |
410 GtkWidget *scrolled; | |
411 GtkWidget *listview; | |
412 gint columns; | |
413 gint rows; | |
414 | |
415 CollectionData *cd; | |
416 | |
417 GList *selection; | |
418 CollectInfo *prev_selection; | |
419 | |
420 CollectInfo *click_info; | |
421 | |
422 GtkWidget *tip_window; | |
1523
e52aabe8fc7a
Fix up event source ids type: gint -> guint.
Laurent Monin <geeqie@norz.org>
parents:
1514
diff
changeset
|
423 guint tip_delay_id; /* event source id */ |
9 | 424 CollectInfo *tip_info; |
425 | |
426 GdkWindow *marker_window; | |
427 CollectInfo *marker_info; | |
428 | |
429 GtkWidget *status_label; | |
430 GtkWidget *extra_label; | |
431 | |
432 gint focus_row; | |
433 gint focus_column; | |
434 CollectInfo *focus_info; | |
435 | |
436 GtkWidget *popup; | |
437 CollectInfo *drop_info; | |
438 GList *drop_list; | |
439 | |
1523
e52aabe8fc7a
Fix up event source ids type: gint -> guint.
Laurent Monin <geeqie@norz.org>
parents:
1514
diff
changeset
|
440 guint sync_idle_id; /* event source id */ |
e52aabe8fc7a
Fix up event source ids type: gint -> guint.
Laurent Monin <geeqie@norz.org>
parents:
1514
diff
changeset
|
441 guint drop_idle_id; /* event source id */ |
9 | 442 |
1446 | 443 gboolean show_text; |
2788
1d65d7ce3132
Adl fix #323: Rating system
Colin Clark <colin.clark@cclark.uk>
parents:
2770
diff
changeset
|
444 gboolean show_stars; |
1397
db1b3d950a8c
In various Edit context menus, only display editors that match the file types in the selection.
Laurent Monin <geeqie@norz.org>
parents:
1383
diff
changeset
|
445 |
db1b3d950a8c
In various Edit context menus, only display editors that match the file types in the selection.
Laurent Monin <geeqie@norz.org>
parents:
1383
diff
changeset
|
446 /* file list for edit menu */ |
db1b3d950a8c
In various Edit context menus, only display editors that match the file types in the selection.
Laurent Monin <geeqie@norz.org>
parents:
1383
diff
changeset
|
447 GList *editmenu_fd_list; |
9 | 448 }; |
449 | |
450 struct _CollectWindow | |
451 { | |
452 GtkWidget *window; | |
453 CollectTable *table; | |
454 GtkWidget *status_box; | |
455 | |
456 GtkWidget *close_dialog; | |
457 | |
458 CollectionData *cd; | |
459 }; | |
460 | |
12
8e6d90233b6d
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
John Ellis <johne@verizon.net>
parents:
9
diff
changeset
|
461 typedef gint (* ImageTileRequestFunc)(ImageWindow *imd, gint x, gint y, |
8e6d90233b6d
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
John Ellis <johne@verizon.net>
parents:
9
diff
changeset
|
462 gint width, gint height, GdkPixbuf *pixbuf, gpointer); |
8e6d90233b6d
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
John Ellis <johne@verizon.net>
parents:
9
diff
changeset
|
463 typedef void (* ImageTileDisposeFunc)(ImageWindow *imd, gint x, gint y, |
8e6d90233b6d
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
John Ellis <johne@verizon.net>
parents:
9
diff
changeset
|
464 gint width, gint height, GdkPixbuf *pixbuf, gpointer); |
8e6d90233b6d
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
John Ellis <johne@verizon.net>
parents:
9
diff
changeset
|
465 |
9 | 466 struct _ImageWindow |
467 { | |
468 GtkWidget *widget; /* use this to add it and show it */ | |
23
9ff428db7772
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
John Ellis <johne@verizon.net>
parents:
14
diff
changeset
|
469 GtkWidget *pr; |
9ff428db7772
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
John Ellis <johne@verizon.net>
parents:
14
diff
changeset
|
470 GtkWidget *frame; |
9 | 471 |
138
5be5d1c53016
replaced gchar* path with FileData *fd
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
137
diff
changeset
|
472 FileData *image_fd; |
9 | 473 |
1431
13c985b6e35e
More gboolean and tidy up.
Laurent Monin <geeqie@norz.org>
parents:
1412
diff
changeset
|
474 gboolean unknown; /* failed to load image */ |
9 | 475 |
846
cf1c9abfa524
simple cache for loaded pixbufs
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
845
diff
changeset
|
476 ImageLoader *il; /* FIXME - image loader should probably go to FileData, but it must first support |
995 | 477 sending callbacks to multiple ImageWindows in parallel */ |
9 | 478 |
1431
13c985b6e35e
More gboolean and tidy up.
Laurent Monin <geeqie@norz.org>
parents:
1412
diff
changeset
|
479 gint has_frame; /* not boolean, see image_new() */ |
9 | 480 |
481 /* top level (not necessarily parent) window */ | |
1431
13c985b6e35e
More gboolean and tidy up.
Laurent Monin <geeqie@norz.org>
parents:
1412
diff
changeset
|
482 gboolean top_window_sync; /* resize top_window when image dimensions change */ |
9 | 483 GtkWidget *top_window; /* window that gets title, and window to resize when 'fitting' */ |
484 gchar *title; /* window title to display left of file name */ | |
485 gchar *title_right; /* window title to display right of file name */ | |
1431
13c985b6e35e
More gboolean and tidy up.
Laurent Monin <geeqie@norz.org>
parents:
1412
diff
changeset
|
486 gboolean title_show_zoom; /* option to include zoom in window title */ |
9 | 487 |
1431
13c985b6e35e
More gboolean and tidy up.
Laurent Monin <geeqie@norz.org>
parents:
1412
diff
changeset
|
488 gboolean completed; |
113
f2109493004f
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
82
diff
changeset
|
489 ImageState state; /* mask of IMAGE_STATE_* flags about current image */ |
9 | 490 |
117
f95079062ea0
Wed Nov 29 14:28:30 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
115
diff
changeset
|
491 void (*func_update)(ImageWindow *imd, gpointer data); |
f95079062ea0
Wed Nov 29 14:28:30 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
115
diff
changeset
|
492 void (*func_complete)(ImageWindow *imd, gint preload, gpointer data); |
f95079062ea0
Wed Nov 29 14:28:30 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
115
diff
changeset
|
493 void (*func_state)(ImageWindow *imd, ImageState state, gpointer data); |
12
8e6d90233b6d
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
John Ellis <johne@verizon.net>
parents:
9
diff
changeset
|
494 ImageTileRequestFunc func_tile_request; |
8e6d90233b6d
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
John Ellis <johne@verizon.net>
parents:
9
diff
changeset
|
495 ImageTileDisposeFunc func_tile_dispose; |
9 | 496 |
497 gpointer data_update; | |
498 gpointer data_complete; | |
117
f95079062ea0
Wed Nov 29 14:28:30 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
115
diff
changeset
|
499 gpointer data_state; |
12
8e6d90233b6d
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
John Ellis <johne@verizon.net>
parents:
9
diff
changeset
|
500 gpointer data_tile; |
9 | 501 |
502 /* button, scroll functions */ | |
868
b043dc777759
Reduce number of parameters (mostly unused), just pass the event pointer.
Laurent Monin <geeqie@norz.org>
parents:
849
diff
changeset
|
503 void (*func_button)(ImageWindow *, GdkEventButton *event, gpointer); |
2452
8bcdac2603d3
Fix #473: Parameter type fix for "motion-notify-event" signal handlers
Colin Clark <cclark@mcb.net>
parents:
2450
diff
changeset
|
504 void (*func_drag)(ImageWindow *, GdkEventMotion *event, gdouble dx, gdouble dy, gpointer); |
868
b043dc777759
Reduce number of parameters (mostly unused), just pass the event pointer.
Laurent Monin <geeqie@norz.org>
parents:
849
diff
changeset
|
505 void (*func_scroll)(ImageWindow *, GdkEventScroll *event, gpointer); |
1481
7757038ff080
active image follows keyboard focus
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1470
diff
changeset
|
506 void (*func_focus_in)(ImageWindow *, gpointer); |
9 | 507 |
508 gpointer data_button; | |
128
0c318260b7f6
improved connected scroll and active image switching
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
127
diff
changeset
|
509 gpointer data_drag; |
9 | 510 gpointer data_scroll; |
1481
7757038ff080
active image follows keyboard focus
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1470
diff
changeset
|
511 gpointer data_focus_in; |
9 | 512 |
12
8e6d90233b6d
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
John Ellis <johne@verizon.net>
parents:
9
diff
changeset
|
513 /* scroll notification (for scroll bar implementation) */ |
8e6d90233b6d
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
John Ellis <johne@verizon.net>
parents:
9
diff
changeset
|
514 void (*func_scroll_notify)(ImageWindow *, gint x, gint y, gint width, gint height, gpointer); |
8e6d90233b6d
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
John Ellis <johne@verizon.net>
parents:
9
diff
changeset
|
515 |
8e6d90233b6d
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
John Ellis <johne@verizon.net>
parents:
9
diff
changeset
|
516 gpointer data_scroll_notify; |
8e6d90233b6d
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
John Ellis <johne@verizon.net>
parents:
9
diff
changeset
|
517 |
9 | 518 /* collection info */ |
519 CollectionData *collection; | |
520 CollectInfo *collection_info; | |
521 | |
113
f2109493004f
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
82
diff
changeset
|
522 /* color profiles */ |
1431
13c985b6e35e
More gboolean and tidy up.
Laurent Monin <geeqie@norz.org>
parents:
1412
diff
changeset
|
523 gboolean color_profile_enable; |
113
f2109493004f
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
82
diff
changeset
|
524 gint color_profile_input; |
1431
13c985b6e35e
More gboolean and tidy up.
Laurent Monin <geeqie@norz.org>
parents:
1412
diff
changeset
|
525 gboolean color_profile_use_image; |
426
e4a5d61aff1c
show the AdobeRGB profile in the menu, indicate input profile from image
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
415
diff
changeset
|
526 gint color_profile_from_image; |
115
66885b65dd84
Tue Nov 28 11:54:30 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
113
diff
changeset
|
527 gpointer cm; |
113
f2109493004f
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
82
diff
changeset
|
528 |
9 | 529 AlterType delay_alter_type; |
530 | |
846
cf1c9abfa524
simple cache for loaded pixbufs
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
845
diff
changeset
|
531 FileData *read_ahead_fd; |
9 | 532 ImageLoader *read_ahead_il; |
533 | |
113
f2109493004f
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
82
diff
changeset
|
534 gint prev_color_row; |
9 | 535 |
1431
13c985b6e35e
More gboolean and tidy up.
Laurent Monin <geeqie@norz.org>
parents:
1412
diff
changeset
|
536 gboolean auto_refresh; |
9 | 537 |
1431
13c985b6e35e
More gboolean and tidy up.
Laurent Monin <geeqie@norz.org>
parents:
1412
diff
changeset
|
538 gboolean delay_flip; |
398
3297e8f0d5d7
image post-processing (rotation and color management) moved to
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
384
diff
changeset
|
539 gint orientation; |
1431
13c985b6e35e
More gboolean and tidy up.
Laurent Monin <geeqie@norz.org>
parents:
1412
diff
changeset
|
540 gboolean desaturate; |
1888
039d5c8864a0
type of source stereo image made adjustable from menu
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1887
diff
changeset
|
541 gint user_stereo; |
2466
d286a43ba3b5
Fix #290: Mouse-only image viewing
Colin Clark <cclark@mcb.net>
parents:
2454
diff
changeset
|
542 |
d286a43ba3b5
Fix #290: Mouse-only image viewing
Colin Clark <cclark@mcb.net>
parents:
2454
diff
changeset
|
543 gboolean mouse_wheel_mode; |
9 | 544 }; |
545 | |
2600
c6a11c0bade8
Bug fix #509: Increase number of marks to 10
Tomasz Golinski <tomaszg@math.uwb.edu.pl>
parents:
2597
diff
changeset
|
546 #define FILEDATA_MARKS_SIZE 10 |
132
b025afc3c92a
First implementation of marks for all photos.
Petr Ostadal <postadal@suse.cz>
parents:
128
diff
changeset
|
547 |
138
5be5d1c53016
replaced gchar* path with FileData *fd
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
137
diff
changeset
|
548 struct _FileDataChangeInfo { |
143
855d7dac4d54
improved FileDataChangeInfo structure, check for another file operation in progress
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
141
diff
changeset
|
549 FileDataChangeType type; |
138
5be5d1c53016
replaced gchar* path with FileData *fd
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
137
diff
changeset
|
550 gchar *source; |
5be5d1c53016
replaced gchar* path with FileData *fd
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
137
diff
changeset
|
551 gchar *dest; |
914
bea49bbfede3
basic infrastructure for early error and dangerous operations checking
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
888
diff
changeset
|
552 gint error; |
1623
3fd728ca35bb
regroup sidecar files when an operation on partial group is finished
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1584
diff
changeset
|
553 gboolean regroup_when_finished; |
138
5be5d1c53016
replaced gchar* path with FileData *fd
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
137
diff
changeset
|
554 }; |
137
f7a6359de585
started support for sidecar files like xmp, raw+jpeg etc.
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
134
diff
changeset
|
555 |
f7a6359de585
started support for sidecar files like xmp, raw+jpeg etc.
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
134
diff
changeset
|
556 struct _FileData { |
2114
8f1a6f05903c
Use new constant FD_MAGICK = 0x12345678u
Laurent Monin <zas@norz.org>
parents:
2099
diff
changeset
|
557 guint magick; |
137
f7a6359de585
started support for sidecar files like xmp, raw+jpeg etc.
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
134
diff
changeset
|
558 gint type; |
138
5be5d1c53016
replaced gchar* path with FileData *fd
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
137
diff
changeset
|
559 gchar *original_path; /* key to file_data_pool hash table */ |
137
f7a6359de585
started support for sidecar files like xmp, raw+jpeg etc.
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
134
diff
changeset
|
560 gchar *path; |
f7a6359de585
started support for sidecar files like xmp, raw+jpeg etc.
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
134
diff
changeset
|
561 const gchar *name; |
f7a6359de585
started support for sidecar files like xmp, raw+jpeg etc.
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
134
diff
changeset
|
562 const gchar *extension; |
2454
93d1c77a312b
Fix #147: Alternative format for sidecar extension
Tomasz Golinski <tomaszg@math.uwb.edu.pl>
parents:
2452
diff
changeset
|
563 gchar *extended_extension; |
2597
e65df743a5a1
Ref #510: Rudimentary video support
Colin Clark <colin.clark@cclark.uk>
parents:
2596
diff
changeset
|
564 FileFormatClass format_class; |
785
9c54f243c2c6
Use uft8_collate_key() to sort utf8 strings.
Laurent Monin <geeqie@norz.org>
parents:
783
diff
changeset
|
565 gchar *collate_key_name; |
9c54f243c2c6
Use uft8_collate_key() to sort utf8 strings.
Laurent Monin <geeqie@norz.org>
parents:
783
diff
changeset
|
566 gchar *collate_key_name_nocase; |
137
f7a6359de585
started support for sidecar files like xmp, raw+jpeg etc.
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
134
diff
changeset
|
567 gint64 size; |
f7a6359de585
started support for sidecar files like xmp, raw+jpeg etc.
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
134
diff
changeset
|
568 time_t date; |
2272
56ffcc384eb8
Implementing sorting by file creation
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2255
diff
changeset
|
569 time_t cdate; |
945
337c15abd3be
speed-up of directory notification on deleting large number of files
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
933
diff
changeset
|
570 mode_t mode; /* this is needed at least for notification in view_dir because it is preserved after the file/directory is deleted */ |
1932
d50c2ddc9858
move the grouping code from file_data_new to filelist_read
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1923
diff
changeset
|
571 gint sidecar_priority; |
2185
c14a1d8e6aa4
Trim trailing white spaces on empty lines.
Laurent Monin <zas@norz.org>
parents:
2114
diff
changeset
|
572 |
1227
6ca9f764ac3f
optimized get_mark_func
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1205
diff
changeset
|
573 guint marks; /* each bit represents one mark */ |
6ca9f764ac3f
optimized get_mark_func
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1205
diff
changeset
|
574 guint valid_marks; /* zero bit means that the corresponding mark needs to be reread */ |
6ca9f764ac3f
optimized get_mark_func
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1205
diff
changeset
|
575 |
6ca9f764ac3f
optimized get_mark_func
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1205
diff
changeset
|
576 |
137
f7a6359de585
started support for sidecar files like xmp, raw+jpeg etc.
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
134
diff
changeset
|
577 GList *sidecar_files; |
141
687ac473b31b
use FileData even for sidecar file list
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
138
diff
changeset
|
578 FileData *parent; /* parent file if this is a sidecar file, NULL otherwise */ |
138
5be5d1c53016
replaced gchar* path with FileData *fd
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
137
diff
changeset
|
579 FileDataChangeInfo *change; /* for rename, move ... */ |
845
06f57cd7f595
renamed fd->pixbuf to fd->thumb_pixbuf
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
844
diff
changeset
|
580 GdkPixbuf *thumb_pixbuf; |
846
cf1c9abfa524
simple cache for loaded pixbufs
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
845
diff
changeset
|
581 |
849
b6e76c0b52cd
added possibility to disable grouping of selected files
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
846
diff
changeset
|
582 GdkPixbuf *pixbuf; /* full-size image, only complete images, NULL during loading |
995 | 583 all FileData with non-NULL pixbuf are referenced by image_cache */ |
2185
c14a1d8e6aa4
Trim trailing white spaces on empty lines.
Laurent Monin <zas@norz.org>
parents:
2114
diff
changeset
|
584 |
1294 | 585 HistMap *histmap; |
846
cf1c9abfa524
simple cache for loaded pixbufs
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
845
diff
changeset
|
586 |
2236
b7e253153aa4
Add "lock" functionality to keep FileDatas in memory
Omari Stephens <xsdg@xsdg.org>
parents:
2185
diff
changeset
|
587 gboolean locked; |
138
5be5d1c53016
replaced gchar* path with FileData *fd
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
137
diff
changeset
|
588 gint ref; |
763
fc26f8832bcc
improved infrastructure for tracing changes, optimized vflist_populate_view
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
753
diff
changeset
|
589 gint version; /* increased when any field in this structure is changed */ |
1453
ccc663a2e148
gint -> gboolean where applicable. The end (ouf!).
Laurent Monin <geeqie@norz.org>
parents:
1446
diff
changeset
|
590 gboolean disable_grouping; |
849
b6e76c0b52cd
added possibility to disable grouping of selected files
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
846
diff
changeset
|
591 |
434
b7b09a18917a
Keep image orientation set by the user during the session.
Laurent Monin <geeqie@norz.org>
parents:
433
diff
changeset
|
592 gint user_orientation; |
439
a529755a2be0
Add a way to restore original state in Adjust menu.
Laurent Monin <geeqie@norz.org>
parents:
434
diff
changeset
|
593 gint exif_orientation; |
2185
c14a1d8e6aa4
Trim trailing white spaces on empty lines.
Laurent Monin <zas@norz.org>
parents:
2114
diff
changeset
|
594 |
844
a311d66693d4
implemented generic FileData cache
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
843
diff
changeset
|
595 ExifData *exif; |
2067
b53cdc8cf7b8
Allow to sort files according to Exif-date
Juuso Räsänen <juusora@gmail.com>
parents:
2021
diff
changeset
|
596 time_t exifdate; |
2698
940f217da9ec
Sort/search on Exif.Photo.DateTimeDigitized
Colin Clark <colin.clark@cclark.uk>
parents:
2696
diff
changeset
|
597 time_t exifdate_digitized; |
1203
3d2d07d88a5b
prepared infrastructure for delayed metadata writting - refreshing
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1167
diff
changeset
|
598 GHashTable *modified_xmp; // hash table which contains unwritten xmp metadata in format: key->list of string values |
1923
751d39d7ac30
added long-term cache for keywords
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1896
diff
changeset
|
599 GList *cached_metadata; |
2500
eb2ce489ceea
Fix #323: Rating system
Colin Clark <colin.clark@cclark.uk>
parents:
2466
diff
changeset
|
600 gint rating; |
2770
2e819f4a7a41
Read metadata in the idle loop
Colin Clark <colin.clark@cclark.uk>
parents:
2768
diff
changeset
|
601 gboolean metadata_in_idle_loaded; |
2523
46f57b0ed091
Remove all references to "IconData"
Omari Stephens <xsdg@google.com>
parents:
2508
diff
changeset
|
602 |
2791
7061c1eacc20
Additional file info parameters
Colin Clark <colin.clark@cclark.uk>
parents:
2788
diff
changeset
|
603 gchar *owner; |
7061c1eacc20
Additional file info parameters
Colin Clark <colin.clark@cclark.uk>
parents:
2788
diff
changeset
|
604 gchar *group; |
7061c1eacc20
Additional file info parameters
Colin Clark <colin.clark@cclark.uk>
parents:
2788
diff
changeset
|
605 gchar *sym_link; |
7061c1eacc20
Additional file info parameters
Colin Clark <colin.clark@cclark.uk>
parents:
2788
diff
changeset
|
606 |
2523
46f57b0ed091
Remove all references to "IconData"
Omari Stephens <xsdg@google.com>
parents:
2508
diff
changeset
|
607 SelectionType selected; // Used by view_file_icon. |
9 | 608 }; |
609 | |
1309
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
610 struct _LayoutOptions |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
611 { |
1466
a8a7e7feeefc
added possibility to update existing layout window from config
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1463
diff
changeset
|
612 gchar *id; |
a8a7e7feeefc
added possibility to update existing layout window from config
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1463
diff
changeset
|
613 |
1309
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
614 gchar *order; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
615 gint style; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
616 |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
617 DirViewType dir_view_type; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
618 FileViewType file_view_type; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
619 |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
620 gboolean show_thumbnails; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
621 gboolean show_marks; |
2817
e6f95baec8b5
Fix #624: Filter files by shell or regular expression pattern
Colin Clark <colin.clark@cclark.uk>
parents:
2813
diff
changeset
|
622 gboolean show_file_filter; |
1309
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
623 gboolean show_directory_date; |
1584
c97dea5d82d7
improved pixel info, changed the menu entry from "Hide" to "Show",
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1582
diff
changeset
|
624 gboolean show_info_pixel; |
1309
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
625 |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
626 struct { |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
627 gint w; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
628 gint h; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
629 gint x; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
630 gint y; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
631 gboolean maximized; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
632 gint hdivider_pos; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
633 gint vdivider_pos; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
634 } main_window; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
635 |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
636 struct { |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
637 gint w; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
638 gint h; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
639 gint x; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
640 gint y; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
641 gint vdivider_pos; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
642 } float_window; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
643 |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
644 struct { |
2450
361d89e79d74
Fix #431: Bookmarks (shortcuts) to folders
Colin Clark <cclark@mcb.net>
parents:
2444
diff
changeset
|
645 gint vdivider_pos; |
361d89e79d74
Fix #431: Bookmarks (shortcuts) to folders
Colin Clark <cclark@mcb.net>
parents:
2444
diff
changeset
|
646 } folder_window; |
361d89e79d74
Fix #431: Bookmarks (shortcuts) to folders
Colin Clark <cclark@mcb.net>
parents:
2444
diff
changeset
|
647 |
361d89e79d74
Fix #431: Bookmarks (shortcuts) to folders
Colin Clark <cclark@mcb.net>
parents:
2444
diff
changeset
|
648 struct { |
1309
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
649 gint w; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
650 gint h; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
651 } properties_window; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
652 |
1336
7fe7536f02e1
fixed overlay configuration
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1335
diff
changeset
|
653 struct { |
7fe7536f02e1
fixed overlay configuration
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1335
diff
changeset
|
654 guint state; |
7fe7536f02e1
fixed overlay configuration
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1335
diff
changeset
|
655 gint histogram_channel; |
7fe7536f02e1
fixed overlay configuration
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1335
diff
changeset
|
656 gint histogram_mode; |
7fe7536f02e1
fixed overlay configuration
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1335
diff
changeset
|
657 } image_overlay; |
7fe7536f02e1
fixed overlay configuration
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1335
diff
changeset
|
658 |
2508
a39331032807
Additional debug features
Colin Clark <colin.clark@cclark.uk>
parents:
2506
diff
changeset
|
659 struct { |
a39331032807
Additional debug features
Colin Clark <colin.clark@cclark.uk>
parents:
2506
diff
changeset
|
660 gint w; |
a39331032807
Additional debug features
Colin Clark <colin.clark@cclark.uk>
parents:
2506
diff
changeset
|
661 gint h; |
a39331032807
Additional debug features
Colin Clark <colin.clark@cclark.uk>
parents:
2506
diff
changeset
|
662 gint x; |
a39331032807
Additional debug features
Colin Clark <colin.clark@cclark.uk>
parents:
2506
diff
changeset
|
663 gint y; |
a39331032807
Additional debug features
Colin Clark <colin.clark@cclark.uk>
parents:
2506
diff
changeset
|
664 } log_window; |
a39331032807
Additional debug features
Colin Clark <colin.clark@cclark.uk>
parents:
2506
diff
changeset
|
665 |
1309
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
666 gboolean tools_float; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
667 gboolean tools_hidden; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
668 gboolean toolbar_hidden; |
1375
08db75ca4713
Display pixel coordinates and rgb - patch by Ruben Stein
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1336
diff
changeset
|
669 |
2506
8ec296cc949c
Fix #492: Shortcut to Hide all sidebars simultaneously
Colin Clark <colin.clark@cclark.uk>
parents:
2500
diff
changeset
|
670 struct { |
8ec296cc949c
Fix #492: Shortcut to Hide all sidebars simultaneously
Colin Clark <colin.clark@cclark.uk>
parents:
2500
diff
changeset
|
671 gboolean info; |
8ec296cc949c
Fix #492: Shortcut to Hide all sidebars simultaneously
Colin Clark <colin.clark@cclark.uk>
parents:
2500
diff
changeset
|
672 gboolean sort; |
8ec296cc949c
Fix #492: Shortcut to Hide all sidebars simultaneously
Colin Clark <colin.clark@cclark.uk>
parents:
2500
diff
changeset
|
673 gboolean tools_float; |
8ec296cc949c
Fix #492: Shortcut to Hide all sidebars simultaneously
Colin Clark <colin.clark@cclark.uk>
parents:
2500
diff
changeset
|
674 gboolean tools_hidden; |
8ec296cc949c
Fix #492: Shortcut to Hide all sidebars simultaneously
Colin Clark <colin.clark@cclark.uk>
parents:
2500
diff
changeset
|
675 gboolean hidden; |
8ec296cc949c
Fix #492: Shortcut to Hide all sidebars simultaneously
Colin Clark <colin.clark@cclark.uk>
parents:
2500
diff
changeset
|
676 } bars_state; |
8ec296cc949c
Fix #492: Shortcut to Hide all sidebars simultaneously
Colin Clark <colin.clark@cclark.uk>
parents:
2500
diff
changeset
|
677 |
1309
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
678 gchar *home_path; |
1511
ce48bdc8350d
startup path options simplified and moved to layout options
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1481
diff
changeset
|
679 gchar *last_path; |
ce48bdc8350d
startup path options simplified and moved to layout options
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1481
diff
changeset
|
680 |
ce48bdc8350d
startup path options simplified and moved to layout options
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1481
diff
changeset
|
681 StartUpPath startup_path; |
1514
dc14cd399465
added option that simplifies saving of multi-window configurations
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1511
diff
changeset
|
682 |
dc14cd399465
added option that simplifies saving of multi-window configurations
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1511
diff
changeset
|
683 gboolean exit_on_close; |
2396
00faf5a63f6c
Animated images.
Christian Heckendorf <heckendorfc@gmail.com>
parents:
2350
diff
changeset
|
684 |
00faf5a63f6c
Animated images.
Christian Heckendorf <heckendorfc@gmail.com>
parents:
2350
diff
changeset
|
685 gboolean animate; |
1309
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
686 }; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
687 |
9 | 688 struct _LayoutWindow |
689 { | |
1309
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
690 LayoutOptions options; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
691 |
783
0e45ed008a1c
replaced directory path with FileData* dir_fd
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
772
diff
changeset
|
692 FileData *dir_fd; |
9 | 693 |
694 /* base */ | |
695 | |
696 GtkWidget *window; | |
697 | |
698 GtkWidget *main_box; | |
699 | |
700 GtkWidget *group_box; | |
701 GtkWidget *h_pane; | |
702 GtkWidget *v_pane; | |
703 | |
704 /* menus, path selector */ | |
705 | |
706 GtkActionGroup *action_group; | |
1463
7031da014d97
added function to reload external editors at any time
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1453
diff
changeset
|
707 GtkActionGroup *action_group_editors; |
7031da014d97
added function to reload external editors at any time
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1453
diff
changeset
|
708 guint ui_editors_id; |
9 | 709 GtkUIManager *ui_manager; |
2623
f5886b8e1968
Fix #444: User-definable toolbar
Colin Clark <colin.clark@cclark.uk>
parents:
2619
diff
changeset
|
710 guint toolbar_merge_id[TOOLBAR_COUNT]; |
1582
f137ec3fd85e
- handle color profile and write metadata buttons on statusbar by ui_manager
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1566
diff
changeset
|
711 GList *toolbar_actions[TOOLBAR_COUNT]; |
9 | 712 |
713 GtkWidget *path_entry; | |
714 | |
715 /* image */ | |
716 | |
717 LayoutLocation image_location; | |
718 | |
719 ImageWindow *image; | |
720 | |
127
996ccab9eab3
implemented split windows
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
122
diff
changeset
|
721 ImageWindow *split_images[MAX_SPLIT_IMAGES]; |
442 | 722 ImageSplitMode split_mode; |
127
996ccab9eab3
implemented split windows
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
122
diff
changeset
|
723 gint active_split_image; |
996ccab9eab3
implemented split windows
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
122
diff
changeset
|
724 |
442 | 725 GtkWidget *split_image_widget; |
837
69915f769f3a
use GtkSizeGroup to control initial size of split images
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
812
diff
changeset
|
726 GtkSizeGroup *split_image_sizegroup; |
442 | 727 |
9 | 728 /* tools window (float) */ |
729 | |
730 GtkWidget *tools; | |
731 GtkWidget *tools_pane; | |
732 | |
1309
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
733 // gint tools_float; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
734 // gint tools_hidden; |
2813
e9e8e8b2afce
Move menu/toolbar to top of window
Colin Clark <colin.clark@cclark.uk>
parents:
2799
diff
changeset
|
735 GtkWidget *menu_tool_bar; /*Combined menu and toolbar box */ |
1470
02f03330d589
do not re-create ui_manager at layout change
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1466
diff
changeset
|
736 GtkWidget *menu_bar; /* referenced by lw, exist during whole lw lifetime */ |
9 | 737 /* toolbar */ |
738 | |
1582
f137ec3fd85e
- handle color profile and write metadata buttons on statusbar by ui_manager
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1566
diff
changeset
|
739 GtkWidget *toolbar[TOOLBAR_COUNT]; /* referenced by lw, exist during whole lw lifetime */ |
1309
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
740 // gint toolbar_hidden; |
9 | 741 |
1334
89c9db0e3258
create toolbar from ui_manager
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1329
diff
changeset
|
742 // GtkWidget *thumb_button; |
1309
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
743 // gint thumbs_enabled; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
744 // gint marks_enabled; |
442 | 745 |
1167
95a52f5d7100
Add a back button in the toolbar: it allows to go back and forth between two directories. Experimental, please test and comment on ml.
Laurent Monin <geeqie@norz.org>
parents:
1055
diff
changeset
|
746 GtkWidget *back_button; |
95a52f5d7100
Add a back button in the toolbar: it allows to go back and forth between two directories. Experimental, please test and comment on ml.
Laurent Monin <geeqie@norz.org>
parents:
1055
diff
changeset
|
747 |
9 | 748 /* dir view */ |
749 | |
750 LayoutLocation dir_location; | |
751 | |
380
41079d11eba7
Introduce a new struct ViewDir to handle directory views common
Laurent Monin <geeqie@norz.org>
parents:
373
diff
changeset
|
752 ViewDir *vd; |
9 | 753 GtkWidget *dir_view; |
754 | |
1309
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
755 // DirViewType dir_view_type; |
9 | 756 |
757 /* file view */ | |
758 | |
759 LayoutLocation file_location; | |
760 | |
554
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
761 ViewFile *vf; |
1412
4e84054a1d7a
fixed saving of file_view_type
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1405
diff
changeset
|
762 // FileViewType file_view_type; |
554
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
763 |
9 | 764 GtkWidget *file_view; |
765 | |
766 SortType sort_method; | |
1453
ccc663a2e148
gint -> gboolean where applicable. The end (ouf!).
Laurent Monin <geeqie@norz.org>
parents:
1446
diff
changeset
|
767 gboolean sort_ascend; |
9 | 768 |
769 /* status bar */ | |
770 | |
771 GtkWidget *info_box; | |
772 GtkWidget *info_progress_bar; | |
773 GtkWidget *info_sort; | |
774 GtkWidget *info_status; | |
775 GtkWidget *info_details; | |
776 GtkWidget *info_zoom; | |
1375
08db75ca4713
Display pixel coordinates and rgb - patch by Ruben Stein
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1336
diff
changeset
|
777 GtkWidget *info_pixel; |
2185
c14a1d8e6aa4
Trim trailing white spaces on empty lines.
Laurent Monin <zas@norz.org>
parents:
2114
diff
changeset
|
778 |
9 | 779 /* slide show */ |
780 | |
781 SlideShowData *slideshow; | |
782 | |
783 /* full screen */ | |
784 | |
785 FullScreenData *full_screen; | |
786 | |
787 /* dividers */ | |
788 | |
1309
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
789 // gint div_h; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
790 // gint div_v; |
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
791 // gint div_float; |
9 | 792 |
793 /* misc */ | |
794 | |
1470
02f03330d589
do not re-create ui_manager at layout change
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1466
diff
changeset
|
795 GtkWidget *utility_box; /* referenced by lw, exist during whole lw lifetime */ |
1383
bdd15a0038dd
use standard GtkHPaned for sidebar width
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1375
diff
changeset
|
796 GtkWidget *utility_paned; /* between image and bar */ |
9 | 797 GtkWidget *bar_sort; |
1291
abf5d1de9102
replaced bar_info with an universal bar, restored the original
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1288
diff
changeset
|
798 GtkWidget *bar; |
9 | 799 |
2619
77596dda797e
Fix #207: Symlink doesn't show in Sort Manager
Colin Clark <colin.clark@cclark.uk>
parents:
2600
diff
changeset
|
800 gboolean bar_sort_enabled; /* Set during start-up, and checked when the editors have loaded */ |
1309
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
801 // gint bar_enabled; |
9 | 802 |
1309
d89f8c4d593b
config file format changed to XML
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1294
diff
changeset
|
803 // gint bar_width; |
1293
6546ca1fea07
separated "normal" and advanced exif, "Normal" exif is now in the
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1291
diff
changeset
|
804 |
6546ca1fea07
separated "normal" and advanced exif, "Normal" exif is now in the
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1291
diff
changeset
|
805 GtkWidget *exif_window; |
2396
00faf5a63f6c
Animated images.
Christian Heckendorf <heckendorfc@gmail.com>
parents:
2350
diff
changeset
|
806 |
00faf5a63f6c
Animated images.
Christian Heckendorf <heckendorfc@gmail.com>
parents:
2350
diff
changeset
|
807 AnimationData *animation; |
2508
a39331032807
Additional debug features
Colin Clark <colin.clark@cclark.uk>
parents:
2506
diff
changeset
|
808 |
a39331032807
Additional debug features
Colin Clark <colin.clark@cclark.uk>
parents:
2506
diff
changeset
|
809 GtkWidget *log_window; |
9 | 810 }; |
811 | |
380
41079d11eba7
Introduce a new struct ViewDir to handle directory views common
Laurent Monin <geeqie@norz.org>
parents:
373
diff
changeset
|
812 struct _ViewDir |
9 | 813 { |
380
41079d11eba7
Introduce a new struct ViewDir to handle directory views common
Laurent Monin <geeqie@norz.org>
parents:
373
diff
changeset
|
814 DirViewType type; |
384
00d9ffa0d171
Merge parts of view_dir_list/tree constructors/destructors to
Laurent Monin <geeqie@norz.org>
parents:
380
diff
changeset
|
815 gpointer info; |
00d9ffa0d171
Merge parts of view_dir_list/tree constructors/destructors to
Laurent Monin <geeqie@norz.org>
parents:
380
diff
changeset
|
816 |
9 | 817 GtkWidget *widget; |
380
41079d11eba7
Introduce a new struct ViewDir to handle directory views common
Laurent Monin <geeqie@norz.org>
parents:
373
diff
changeset
|
818 GtkWidget *view; |
9 | 819 |
783
0e45ed008a1c
replaced directory path with FileData* dir_fd
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
772
diff
changeset
|
820 FileData *dir_fd; |
9 | 821 |
822 FileData *click_fd; | |
823 | |
824 FileData *drop_fd; | |
825 GList *drop_list; | |
1523
e52aabe8fc7a
Fix up event source ids type: gint -> guint.
Laurent Monin <geeqie@norz.org>
parents:
1514
diff
changeset
|
826 guint drop_scroll_id; /* event source id */ |
9 | 827 |
828 /* func list */ | |
1628
ac33c60e405e
simplified the code around vd_select_row
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1627
diff
changeset
|
829 void (*select_func)(ViewDir *vd, FileData *fd, gpointer data); |
9 | 830 gpointer select_data; |
831 | |
407
f441b932ed5c
Rename vd_drop_update() to vd_dnd_drop_update().
Laurent Monin <geeqie@norz.org>
parents:
401
diff
changeset
|
832 void (*dnd_drop_update_func)(ViewDir *vd); |
f441b932ed5c
Rename vd_drop_update() to vd_dnd_drop_update().
Laurent Monin <geeqie@norz.org>
parents:
401
diff
changeset
|
833 void (*dnd_drop_leave_func)(ViewDir *vd); |
442 | 834 |
9 | 835 LayoutWindow *layout; |
836 | |
837 GtkWidget *popup; | |
838 | |
839 PixmapFolders *pf; | |
380
41079d11eba7
Introduce a new struct ViewDir to handle directory views common
Laurent Monin <geeqie@norz.org>
parents:
373
diff
changeset
|
840 }; |
41079d11eba7
Introduce a new struct ViewDir to handle directory views common
Laurent Monin <geeqie@norz.org>
parents:
373
diff
changeset
|
841 |
41079d11eba7
Introduce a new struct ViewDir to handle directory views common
Laurent Monin <geeqie@norz.org>
parents:
373
diff
changeset
|
842 struct _ViewDirInfoList |
41079d11eba7
Introduce a new struct ViewDir to handle directory views common
Laurent Monin <geeqie@norz.org>
parents:
373
diff
changeset
|
843 { |
41079d11eba7
Introduce a new struct ViewDir to handle directory views common
Laurent Monin <geeqie@norz.org>
parents:
373
diff
changeset
|
844 GList *list; |
41079d11eba7
Introduce a new struct ViewDir to handle directory views common
Laurent Monin <geeqie@norz.org>
parents:
373
diff
changeset
|
845 }; |
41079d11eba7
Introduce a new struct ViewDir to handle directory views common
Laurent Monin <geeqie@norz.org>
parents:
373
diff
changeset
|
846 |
41079d11eba7
Introduce a new struct ViewDir to handle directory views common
Laurent Monin <geeqie@norz.org>
parents:
373
diff
changeset
|
847 struct _ViewDirInfoTree |
41079d11eba7
Introduce a new struct ViewDir to handle directory views common
Laurent Monin <geeqie@norz.org>
parents:
373
diff
changeset
|
848 { |
1523
e52aabe8fc7a
Fix up event source ids type: gint -> guint.
Laurent Monin <geeqie@norz.org>
parents:
1514
diff
changeset
|
849 guint drop_expand_id; /* event source id */ |
9 | 850 gint busy_ref; |
851 }; | |
852 | |
554
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
853 |
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
854 struct _ViewFile |
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
855 { |
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
856 FileViewType type; |
2523
46f57b0ed091
Remove all references to "IconData"
Omari Stephens <xsdg@google.com>
parents:
2508
diff
changeset
|
857 // TODO(xsdg): Turn this into a union (see VFLIST and VFICON from view_file.h). |
554
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
858 gpointer info; |
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
859 |
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
860 GtkWidget *widget; |
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
861 GtkWidget *listview; |
964
77a9952eebd4
implemented marks filter
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
945
diff
changeset
|
862 GtkWidget *scrolled; |
77a9952eebd4
implemented marks filter
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
945
diff
changeset
|
863 GtkWidget *filter; |
77a9952eebd4
implemented marks filter
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
945
diff
changeset
|
864 GtkWidget *filter_check[FILEDATA_MARKS_SIZE]; |
2817
e6f95baec8b5
Fix #624: Filter files by shell or regular expression pattern
Colin Clark <colin.clark@cclark.uk>
parents:
2813
diff
changeset
|
865 GtkWidget *file_filter_combo; |
e6f95baec8b5
Fix #624: Filter files by shell or regular expression pattern
Colin Clark <colin.clark@cclark.uk>
parents:
2813
diff
changeset
|
866 GtkWidget *file_filter_frame; |
554
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
867 |
783
0e45ed008a1c
replaced directory path with FileData* dir_fd
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
772
diff
changeset
|
868 FileData *dir_fd; |
554
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
869 GList *list; |
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
870 |
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
871 SortType sort_method; |
1453
ccc663a2e148
gint -> gboolean where applicable. The end (ouf!).
Laurent Monin <geeqie@norz.org>
parents:
1446
diff
changeset
|
872 gboolean sort_ascend; |
554
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
873 |
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
874 /* func list */ |
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
875 void (*func_thumb_status)(ViewFile *vf, gdouble val, const gchar *text, gpointer data); |
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
876 gpointer data_thumb_status; |
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
877 |
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
878 void (*func_status)(ViewFile *vf, gpointer data); |
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
879 gpointer data_status; |
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
880 |
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
881 LayoutWindow *layout; |
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
882 |
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
883 GtkWidget *popup; |
563
10e8c79e17d9
Move common thumbs_* fields from _ViewFileInfoIcon and _ViewFileInfoList
Laurent Monin <geeqie@norz.org>
parents:
562
diff
changeset
|
884 |
10e8c79e17d9
Move common thumbs_* fields from _ViewFileInfoIcon and _ViewFileInfoList
Laurent Monin <geeqie@norz.org>
parents:
562
diff
changeset
|
885 /* thumbs updates*/ |
1453
ccc663a2e148
gint -> gboolean where applicable. The end (ouf!).
Laurent Monin <geeqie@norz.org>
parents:
1446
diff
changeset
|
886 gboolean thumbs_running; |
563
10e8c79e17d9
Move common thumbs_* fields from _ViewFileInfoIcon and _ViewFileInfoList
Laurent Monin <geeqie@norz.org>
parents:
562
diff
changeset
|
887 ThumbLoader *thumbs_loader; |
10e8c79e17d9
Move common thumbs_* fields from _ViewFileInfoIcon and _ViewFileInfoList
Laurent Monin <geeqie@norz.org>
parents:
562
diff
changeset
|
888 FileData *thumbs_filedata; |
564
47a0d92843d5
Move marks-related fields from _ViewFileInfoList to _ViewFile, since
Laurent Monin <geeqie@norz.org>
parents:
563
diff
changeset
|
889 |
47a0d92843d5
Move marks-related fields from _ViewFileInfoList to _ViewFile, since
Laurent Monin <geeqie@norz.org>
parents:
563
diff
changeset
|
890 /* marks */ |
1453
ccc663a2e148
gint -> gboolean where applicable. The end (ouf!).
Laurent Monin <geeqie@norz.org>
parents:
1446
diff
changeset
|
891 gboolean marks_enabled; |
564
47a0d92843d5
Move marks-related fields from _ViewFileInfoList to _ViewFile, since
Laurent Monin <geeqie@norz.org>
parents:
563
diff
changeset
|
892 gint active_mark; |
654
8c7e098d8eb3
Get rid of vflist_pop_menu() col_idx parameter, use new Viewfile field
Laurent Monin <geeqie@norz.org>
parents:
616
diff
changeset
|
893 gint clicked_mark; |
2185
c14a1d8e6aa4
Trim trailing white spaces on empty lines.
Laurent Monin <zas@norz.org>
parents:
2114
diff
changeset
|
894 |
772
1c0758c08427
replaced vflist_maint functions by vflist_refresh - it allows to follow
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
763
diff
changeset
|
895 /* refresh */ |
1523
e52aabe8fc7a
Fix up event source ids type: gint -> guint.
Laurent Monin <geeqie@norz.org>
parents:
1514
diff
changeset
|
896 guint refresh_idle_id; /* event source id */ |
1660
42f27af0d646
improved file list update priority
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1628
diff
changeset
|
897 time_t time_refresh_set; /* time when refresh_idle_id was set */ |
1397
db1b3d950a8c
In various Edit context menus, only display editors that match the file types in the selection.
Laurent Monin <geeqie@norz.org>
parents:
1383
diff
changeset
|
898 |
db1b3d950a8c
In various Edit context menus, only display editors that match the file types in the selection.
Laurent Monin <geeqie@norz.org>
parents:
1383
diff
changeset
|
899 /* file list for edit menu */ |
db1b3d950a8c
In various Edit context menus, only display editors that match the file types in the selection.
Laurent Monin <geeqie@norz.org>
parents:
1383
diff
changeset
|
900 GList *editmenu_fd_list; |
2770
2e819f4a7a41
Read metadata in the idle loop
Colin Clark <colin.clark@cclark.uk>
parents:
2768
diff
changeset
|
901 |
2e819f4a7a41
Read metadata in the idle loop
Colin Clark <colin.clark@cclark.uk>
parents:
2768
diff
changeset
|
902 guint read_metadata_in_idle_id; |
554
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
903 }; |
9a5aba44208a
Prepare merging of some parts of view_file_list and view_file_icon and
Laurent Monin <geeqie@norz.org>
parents:
508
diff
changeset
|
904 |
557
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
905 struct _ViewFileInfoList |
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
906 { |
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
907 FileData *click_fd; |
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
908 FileData *select_fd; |
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
909 |
1453
ccc663a2e148
gint -> gboolean where applicable. The end (ouf!).
Laurent Monin <geeqie@norz.org>
parents:
1446
diff
changeset
|
910 gboolean thumbs_enabled; |
557
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
911 |
1523
e52aabe8fc7a
Fix up event source ids type: gint -> guint.
Laurent Monin <geeqie@norz.org>
parents:
1514
diff
changeset
|
912 guint select_idle_id; /* event source id */ |
557
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
913 }; |
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
914 |
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
915 struct _ViewFileInfoIcon |
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
916 { |
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
917 /* table stuff */ |
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
918 gint columns; |
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
919 gint rows; |
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
920 |
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
921 GList *selection; |
2523
46f57b0ed091
Remove all references to "IconData"
Omari Stephens <xsdg@google.com>
parents:
2508
diff
changeset
|
922 FileData *prev_selection; |
557
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
923 |
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
924 GtkWidget *tip_window; |
1523
e52aabe8fc7a
Fix up event source ids type: gint -> guint.
Laurent Monin <geeqie@norz.org>
parents:
1514
diff
changeset
|
925 guint tip_delay_id; /* event source id */ |
2523
46f57b0ed091
Remove all references to "IconData"
Omari Stephens <xsdg@google.com>
parents:
2508
diff
changeset
|
926 FileData *tip_fd; |
557
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
927 |
2523
46f57b0ed091
Remove all references to "IconData"
Omari Stephens <xsdg@google.com>
parents:
2508
diff
changeset
|
928 FileData *click_fd; |
557
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
929 |
2523
46f57b0ed091
Remove all references to "IconData"
Omari Stephens <xsdg@google.com>
parents:
2508
diff
changeset
|
930 FileData *focus_fd; |
557
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
931 gint focus_row; |
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
932 gint focus_column; |
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
933 |
1453
ccc663a2e148
gint -> gboolean where applicable. The end (ouf!).
Laurent Monin <geeqie@norz.org>
parents:
1446
diff
changeset
|
934 gboolean show_text; |
557
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
935 }; |
9abda3a38522
Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
Laurent Monin <geeqie@norz.org>
parents:
556
diff
changeset
|
936 |
9 | 937 struct _SlideShowData |
938 { | |
1627
c3778530b075
use layout_set_fd() for changing images from a slideshow
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1623
diff
changeset
|
939 LayoutWindow *lw; /* use this window to display the slideshow */ |
c3778530b075
use layout_set_fd() for changing images from a slideshow
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1623
diff
changeset
|
940 ImageWindow *imd; /* use this window only if lw is not available, |
c3778530b075
use layout_set_fd() for changing images from a slideshow
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1623
diff
changeset
|
941 FIXME: it is probably required only by img-view.c and should be dropped with it */ |
9 | 942 |
138
5be5d1c53016
replaced gchar* path with FileData *fd
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
137
diff
changeset
|
943 GList *filelist; |
9 | 944 CollectionData *cd; |
783
0e45ed008a1c
replaced directory path with FileData* dir_fd
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
772
diff
changeset
|
945 FileData *dir_fd; |
9 | 946 |
947 GList *list; | |
948 GList *list_done; | |
949 | |
138
5be5d1c53016
replaced gchar* path with FileData *fd
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
137
diff
changeset
|
950 FileData *slide_fd; |
9 | 951 |
736
31d858f3272d
Fix signed vs unsigned warnings.
Laurent Monin <geeqie@norz.org>
parents:
730
diff
changeset
|
952 guint slide_count; |
1523
e52aabe8fc7a
Fix up event source ids type: gint -> guint.
Laurent Monin <geeqie@norz.org>
parents:
1514
diff
changeset
|
953 guint timeout_id; /* event source id */ |
9 | 954 |
1453
ccc663a2e148
gint -> gboolean where applicable. The end (ouf!).
Laurent Monin <geeqie@norz.org>
parents:
1446
diff
changeset
|
955 gboolean from_selection; |
9 | 956 |
957 void (*stop_func)(SlideShowData *, gpointer); | |
958 gpointer stop_data; | |
959 | |
1433
12600de4b59a
Use gboolean where applicable, minor cleanup and indentations fixes.
Laurent Monin <geeqie@norz.org>
parents:
1432
diff
changeset
|
960 gboolean paused; |
9 | 961 }; |
962 | |
963 struct _FullScreenData | |
964 { | |
965 GtkWidget *window; | |
966 ImageWindow *imd; | |
967 | |
968 GtkWidget *normal_window; | |
969 ImageWindow *normal_imd; | |
970 | |
1523
e52aabe8fc7a
Fix up event source ids type: gint -> guint.
Laurent Monin <geeqie@norz.org>
parents:
1514
diff
changeset
|
971 guint hide_mouse_id; /* event source id */ |
e52aabe8fc7a
Fix up event source ids type: gint -> guint.
Laurent Monin <geeqie@norz.org>
parents:
1514
diff
changeset
|
972 guint busy_mouse_id; /* event source id */ |
e52aabe8fc7a
Fix up event source ids type: gint -> guint.
Laurent Monin <geeqie@norz.org>
parents:
1514
diff
changeset
|
973 |
9 | 974 gint cursor_state; |
975 | |
1523
e52aabe8fc7a
Fix up event source ids type: gint -> guint.
Laurent Monin <geeqie@norz.org>
parents:
1514
diff
changeset
|
976 guint saver_block_id; /* event source id */ |
9 | 977 |
978 void (*stop_func)(FullScreenData *, gpointer); | |
979 gpointer stop_data; | |
2185
c14a1d8e6aa4
Trim trailing white spaces on empty lines.
Laurent Monin <zas@norz.org>
parents:
2114
diff
changeset
|
980 |
2099
cd445a64205f
implemented presentation mode
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
2067
diff
changeset
|
981 gboolean same_region; /* the returned region will overlap the current location of widget. */ |
9 | 982 }; |
983 | |
984 struct _PixmapFolders | |
985 { | |
986 GdkPixbuf *close; | |
987 GdkPixbuf *open; | |
988 GdkPixbuf *deny; | |
989 GdkPixbuf *parent; | |
990 }; | |
991 | |
276
9625a36d4a69
Implement secure rc file saving.
Laurent Monin <geeqie@norz.org>
parents:
273
diff
changeset
|
992 struct _SecureSaveInfo { |
9625a36d4a69
Implement secure rc file saving.
Laurent Monin <geeqie@norz.org>
parents:
273
diff
changeset
|
993 FILE *fp; /**< file stream pointer */ |
9625a36d4a69
Implement secure rc file saving.
Laurent Monin <geeqie@norz.org>
parents:
273
diff
changeset
|
994 gchar *file_name; /**< final file name */ |
9625a36d4a69
Implement secure rc file saving.
Laurent Monin <geeqie@norz.org>
parents:
273
diff
changeset
|
995 gchar *tmp_file_name; /**< temporary file name */ |
9625a36d4a69
Implement secure rc file saving.
Laurent Monin <geeqie@norz.org>
parents:
273
diff
changeset
|
996 gint err; /**< set to non-zero value in case of error */ |
1446 | 997 gboolean secure_save; /**< use secure save for this file, internal use only */ |
998 gboolean preserve_perms; /**< whether to preserve perms, TRUE by default */ | |
999 gboolean preserve_mtime; /**< whether to preserve mtime, FALSE by default */ | |
1000 gboolean unlink_on_error; /**< whether to remove temporary file on save failure, TRUE by default */ | |
276
9625a36d4a69
Implement secure rc file saving.
Laurent Monin <geeqie@norz.org>
parents:
273
diff
changeset
|
1001 }; |
9625a36d4a69
Implement secure rc file saving.
Laurent Monin <geeqie@norz.org>
parents:
273
diff
changeset
|
1002 |
1313
29ff0de0a67e
enabled commandline again
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1309
diff
changeset
|
1003 struct _CommandLine |
29ff0de0a67e
enabled commandline again
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1309
diff
changeset
|
1004 { |
29ff0de0a67e
enabled commandline again
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1309
diff
changeset
|
1005 int argc; |
29ff0de0a67e
enabled commandline again
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1309
diff
changeset
|
1006 gchar **argv; |
29ff0de0a67e
enabled commandline again
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1309
diff
changeset
|
1007 gboolean startup_blank; |
29ff0de0a67e
enabled commandline again
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1309
diff
changeset
|
1008 gboolean startup_full_screen; |
29ff0de0a67e
enabled commandline again
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1309
diff
changeset
|
1009 gboolean startup_in_slideshow; |
29ff0de0a67e
enabled commandline again
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1309
diff
changeset
|
1010 gboolean startup_command_line_collection; |
29ff0de0a67e
enabled commandline again
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1309
diff
changeset
|
1011 gboolean tools_hide; |
29ff0de0a67e
enabled commandline again
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1309
diff
changeset
|
1012 gboolean tools_show; |
2508
a39331032807
Additional debug features
Colin Clark <colin.clark@cclark.uk>
parents:
2506
diff
changeset
|
1013 gboolean log_window_show; |
1313
29ff0de0a67e
enabled commandline again
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1309
diff
changeset
|
1014 gchar *path; |
29ff0de0a67e
enabled commandline again
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1309
diff
changeset
|
1015 gchar *file; |
29ff0de0a67e
enabled commandline again
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1309
diff
changeset
|
1016 GList *cmd_list; |
29ff0de0a67e
enabled commandline again
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1309
diff
changeset
|
1017 GList *collection_list; |
29ff0de0a67e
enabled commandline again
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1309
diff
changeset
|
1018 gchar *geometry; |
2508
a39331032807
Additional debug features
Colin Clark <colin.clark@cclark.uk>
parents:
2506
diff
changeset
|
1019 gchar *regexp; |
a39331032807
Additional debug features
Colin Clark <colin.clark@cclark.uk>
parents:
2506
diff
changeset
|
1020 gchar *log_file; |
a39331032807
Additional debug features
Colin Clark <colin.clark@cclark.uk>
parents:
2506
diff
changeset
|
1021 SecureSaveInfo *ssi; |
1313
29ff0de0a67e
enabled commandline again
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1309
diff
changeset
|
1022 }; |
29ff0de0a67e
enabled commandline again
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1309
diff
changeset
|
1023 |
9 | 1024 #endif |
1055
4bbdfab3c89a
Adding a vim modeline to all files - patch by Klaus Ethgen
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1047
diff
changeset
|
1025 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |