Fix deprecation warning for poppler >= 0.82
[geeqie.git] / src / main-defines.h
1 /*
2  * Copyright (C) 2006 John Ellis
3  * Copyright (C) 2008 - 2016 The Geeqie Team
4  *
5  * Author: John Ellis
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along
18  * with this program; if not, write to the Free Software Foundation, Inc.,
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20  */
21
22 #ifndef _MAIN_DEFINES_H
23 #define _MAIN_DEFINES_H
24
25 #define USE_XDG 1
26
27 #define GQ_APPNAME "Geeqie"
28 #define GQ_APPNAME_LC "geeqie"
29 #define GQ_WEBSITE "https://www.geeqie.org/"
30 #define GQ_EMAIL_ADDRESS "geeqie@freelists.org"
31
32 #define GQ_RC_DIR               "." GQ_APPNAME_LC
33 #define GQ_COLLECTIONS_DIR      "collections"
34 #define GQ_TRASH_DIR            "trash"
35 #define GQ_WINDOW_LAYOUTS_DIR   "layouts"
36 #define GQ_ARCHIVE_DIR  "geeqie-archive"
37 #define GQ_RESOURCE_PATH_ICONS "/org/geeqie/icons"
38 #define GQ_RESOURCE_PATH_CREDITS "/org/geeqie/credits"
39 #define GQ_RESOURCE_PATH_UI "/org/geeqie/ui"
40
41 #define GQ_SYSTEM_WIDE_DIR    "/etc/" GQ_APPNAME_LC
42
43 #define RC_FILE_NAME GQ_APPNAME_LC "rc.xml"
44 #define DEFAULT_WINDOW_LAYOUT "default_window_layout.xml"
45
46 #define GQ_COLLECTION_EXT ".gqv"
47
48 #define SCROLL_RESET_TOPLEFT 0
49 #define SCROLL_RESET_CENTER 1
50 #define SCROLL_RESET_NOCHANGE 2
51
52 #define MOUSEWHEEL_SCROLL_SIZE 20
53
54
55 #define GQ_DEFAULT_SHELL_PATH "/bin/sh"
56 #define GQ_DEFAULT_SHELL_OPTIONS "-c"
57
58 #define DEFAULT_THUMB_WIDTH     96
59 #define DEFAULT_THUMB_HEIGHT    72
60
61 #define DEFAULT_MINIMAL_WINDOW_SIZE 100
62
63 #define IMAGE_MIN_WIDTH 100
64 #define SIDEBAR_DEFAULT_WIDTH 250
65
66
67 #define DEFAULT_OVERLAY_INFO    "%collection:<i>*</i>\\n%" \
68                                 "(%number%/%total%) [%zoom%] <b>%name%</b>\n" \
69                                 "%res%|%date%|%size%\n" \
70                                 "%formatted.Aperture%|%formatted.ShutterSpeed%|%formatted.ISOSpeedRating:ISO *%|%formatted.FocalLength%|%formatted.ExposureBias:* Ev%\n" \
71                                 "%formatted.Camera:40%|%formatted.Flash%\n"            \
72                                 "%formatted.star_rating%"
73
74 #define GQ_LINK_STR "↩"
75
76 #define TIMEZONE_DATABASE_WEB "https://cdn.bertold.org/zonedetect/db/db.zip"
77 #define TIMEZONE_DATABASE_FILE "timezone21.bin"
78 #define TIMEZONE_DATABASE_VERSION "out_v1"
79 #define HELP_SEARCH_ENGINE "https://duckduckgo.com/?q=site:geeqie.org/help "
80
81 #define STAR_RATING_NOT_READ -12345
82 #define STAR_RATING_REJECTED 0x274C //Unicode Character 'Cross Mark'
83 #define STAR_RATING_STAR 0x2738 //Unicode Character 'Heavy Eight Pointed Rectilinear Black Star'
84
85 #define GQ_ICON_ADD "list-add"
86 #define GQ_ICON_REMOVE "list-remove"
87 #define GQ_ICON_UNDO "edit-undo"
88 #define GQ_ICON_REDO "edit-redo"
89 #define GQ_ICON_OPEN "document-open"
90 #define GQ_ICON_OPEN_WITH "open-menu"
91 #define GQ_ICON_SAVE "document-save"
92 #define GQ_ICON_SAVE_AS "document-save-as"
93 #define GQ_ICON_NEW "document-new"
94 #define GQ_ICON_EDIT "document-edit"
95 #define GQ_ICON_REVERT "document-revert"
96 #define GQ_ICON_CLOSE "window-close"
97 #define GQ_ICON_RUN "system-run"
98 #define GQ_ICON_STOP "process-stop"
99 #define GQ_ICON_FULLSCREEN "view-fullscreen"
100 #define GQ_ICON_LEAVE_FULLSCREEN "view-restore"
101 #define GQ_ICON_REFRESH "view-refresh"
102 #define GQ_ICON_ABOUT "help-about"
103 #define GQ_ICON_QUIT "application-exit"
104 #define GQ_ICON_DELETE "edit-delete"
105 #define GQ_ICON_DELETE_SHRED "edit-delete-shred"
106 #define GQ_ICON_CLEAR "edit-clear"
107 #define GQ_ICON_COPY "edit-copy"
108 #define GQ_ICON_FIND "edit-find"
109 #define GQ_ICON_REPLACE "edit-find-replace"
110 #define GQ_ICON_PRINT "document-print"
111 #define GQ_ICON_FILE_FILTER "preview-file"
112 #define GQ_ICON_USER_TRASH "user-trash"
113
114 #define GQ_ICON_GO_TOP "go-top"
115 #define GQ_ICON_GO_BOTTOM "go-bottom"
116 #define GQ_ICON_GO_UP "go-up"
117 #define GQ_ICON_GO_DOWN "go-down"
118 #define GQ_ICON_GO_FIRST "go-first"
119 #define GQ_ICON_GO_LAST "go-last"
120 #define GQ_ICON_GO_PREV "go-previous"
121 #define GQ_ICON_GO_NEXT "go-next"
122 #define GQ_ICON_GO_JUMP "go-jump"
123 #define GQ_ICON_HOME "go-home"
124
125 #define GQ_ICON_PREV_PAGE "media-skip-backward"
126 #define GQ_ICON_NEXT_PAGE "media-skip-forward"
127 #define GQ_ICON_BACK_PAGE "media-seek-backward"
128 #define GQ_ICON_FORWARD_PAGE "media-seek-forward"
129
130 #define GQ_ICON_PLAY "media-playback-start"
131 #define GQ_ICON_PAUSE "media-playback-pause"
132
133 #define GQ_ICON_ZOOM_IN "zoom-in"
134 #define GQ_ICON_ZOOM_OUT "zoom-out"
135 #define GQ_ICON_ZOOM_100 "zoom-original"
136 #define GQ_ICON_ZOOM_FIT "zoom-fit-best"
137
138 // might need replacing
139 #define GQ_ICON_PREFERENCES "preferences-system"
140 #define GQ_ICON_HELP "help-contents" // "help-browser"?
141 #define GQ_ICON_EXPORT "document-export" // use collection icon?
142
143 // not available in some themes
144 #define GQ_ICON_OK "emblem-ok"
145 #define GQ_ICON_APPLY "emblem-ok" // need something else?
146 #define GQ_ICON_CANCEL "dialog-cancel" // missing in adwaita and others, seen in breeze
147 #define GQ_ICON_PAN_DOWN "pan-down-symbolic" // adwaita, breeze, hicolor supports this
148 #define GQ_ICON_PAN_UP "pan-up-symbolic" // adwaita, breeze, hicolor supports this
149
150 #define GQ_ICON_DIALOG_ERROR "dialog-error"
151 #define GQ_ICON_DIALOG_INFO "dialog-information"
152 #define GQ_ICON_DIALOG_QUESTION "dialog-question"
153 #define GQ_ICON_DIALOG_WARNING "dialog-warning"
154
155 #define GQ_ICON_UNREADABLE "emblem-unreadable"
156 #define GQ_ICON_LINK "emblem-symbolic-link"
157 #define GQ_ICON_READONLY "emblem-readonly"
158
159 #define GQ_ICON_FLIP_HORIZONTAL "object-flip-horizontal"
160 #define GQ_ICON_FLIP_VERTICAL "object-flip-vertical"
161 #define GQ_ICON_ROTATE_LEFT "object-rotate-left"
162 #define GQ_ICON_ROTATE_RIGHT "object-rotate-right"
163
164 #define GQ_ICON_DIRECTORY "folder"
165 #define GQ_ICON_MISSING_IMAGE "image-missing"
166 #define GQ_ICON_STRIKETHROUGH "format-text-strikethrough"
167 #define GQ_ICON_FILE "text-x-generic"
168 #define GQ_ICON_GENERIC "text-x-generic"
169 #define GQ_ICON_SELECT_FONT "font-select"
170 #define GQ_ICON_SELECT_COLOR "color-select"
171 #define GQ_ICON_COLOR_MANAGEMENT "preferences-color" // breeze has nicer "color-management" icon, missing in others
172
173 // not done... plus many more
174 #define GQ_ICON_COLLECTION GTK_STOCK_INDEX
175 #define GQ_ICON_DND GTK_STOCK_DND_MULTIPLE
176 // PIXBUF_INLINE_ICON_ZOOMFILLHOR
177 // PIXBUF_INLINE_ICON_ZOOMFILLVERT
178
179 #endif // _MAIN_DEFINES_H
180 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */