df1105b491c732e775ac41e4105821a6da3d439d
[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 // @todo Merge with PixbufRendererScrollResetType ?
49 #define SCROLL_RESET_TOPLEFT 0
50 #define SCROLL_RESET_CENTER 1
51 #define SCROLL_RESET_NOCHANGE 2
52
53 // @todo Deduplicate mousewheel_scrolls processing
54 #define MOUSEWHEEL_SCROLL_SIZE 20
55
56
57 #define GQ_DEFAULT_SHELL_PATH "/bin/sh"
58 #define GQ_DEFAULT_SHELL_OPTIONS "-c"
59
60 #define DEFAULT_MINIMAL_WINDOW_SIZE 100
61
62
63 #define DEFAULT_OVERLAY_INFO    "%collection:<i>*</i>\\n%" \
64                                 "(%number%/%total%) [%zoom%] <b>%name%</b>\n" \
65                                 "%res%|%date%|%size%\n" \
66                                 "%formatted.Aperture%|%formatted.ShutterSpeed%|%formatted.ISOSpeedRating:ISO *%|%formatted.FocalLength%|%formatted.ExposureBias:* Ev%\n" \
67                                 "%formatted.Camera:40%|%formatted.Flash%\n"            \
68                                 "%formatted.star_rating%"
69
70 #define GQ_LINK_STR "↩"
71
72 #define TIMEZONE_DATABASE_WEB "https://cdn.bertold.org/zonedetect/db/db.zip"
73 #define TIMEZONE_DATABASE_FILE "timezone21.bin"
74 #define TIMEZONE_DATABASE_VERSION "out_v1"
75 #define HELP_SEARCH_ENGINE "https://duckduckgo.com/?q=site:geeqie.org/help "
76
77 #define STAR_RATING_NOT_READ -12345
78 #define STAR_RATING_REJECTED 0x274C //Unicode Character 'Cross Mark'
79 #define STAR_RATING_STAR 0x2738 //Unicode Character 'Heavy Eight Pointed Rectilinear Black Star'
80
81 #define GQ_ICON_ADD "list-add"
82 #define GQ_ICON_REMOVE "list-remove"
83 #define GQ_ICON_UNDO "edit-undo"
84 #define GQ_ICON_REDO "edit-redo"
85 #define GQ_ICON_OPEN "document-open"
86 #define GQ_ICON_OPEN_WITH "open-menu"
87 #define GQ_ICON_SAVE "document-save"
88 #define GQ_ICON_SAVE_AS "document-save-as"
89 #define GQ_ICON_NEW "document-new"
90 #define GQ_ICON_EDIT "document-edit"
91 #define GQ_ICON_REVERT "document-revert"
92 #define GQ_ICON_CLOSE "window-close"
93 #define GQ_ICON_RUN "system-run"
94 #define GQ_ICON_STOP "process-stop"
95 #define GQ_ICON_FULLSCREEN "view-fullscreen"
96 #define GQ_ICON_LEAVE_FULLSCREEN "view-restore"
97 #define GQ_ICON_REFRESH "view-refresh"
98 #define GQ_ICON_ABOUT "help-about"
99 #define GQ_ICON_QUIT "application-exit"
100 #define GQ_ICON_DELETE "edit-delete"
101 #define GQ_ICON_DELETE_SHRED "edit-delete-shred"
102 #define GQ_ICON_CLEAR "edit-clear"
103 #define GQ_ICON_COPY "edit-copy"
104 #define GQ_ICON_FIND "edit-find"
105 #define GQ_ICON_REPLACE "edit-find-replace"
106 #define GQ_ICON_PRINT "document-print"
107 #define GQ_ICON_FILE_FILTER "preview-file"
108 #define GQ_ICON_USER_TRASH "user-trash"
109
110 #define GQ_ICON_GO_TOP "go-top"
111 #define GQ_ICON_GO_BOTTOM "go-bottom"
112 #define GQ_ICON_GO_UP "go-up"
113 #define GQ_ICON_GO_DOWN "go-down"
114 #define GQ_ICON_GO_FIRST "go-first"
115 #define GQ_ICON_GO_LAST "go-last"
116 #define GQ_ICON_GO_PREV "go-previous"
117 #define GQ_ICON_GO_NEXT "go-next"
118 #define GQ_ICON_GO_JUMP "go-jump"
119 #define GQ_ICON_HOME "go-home"
120
121 #define GQ_ICON_PREV_PAGE "media-skip-backward"
122 #define GQ_ICON_NEXT_PAGE "media-skip-forward"
123 #define GQ_ICON_BACK_PAGE "media-seek-backward"
124 #define GQ_ICON_FORWARD_PAGE "media-seek-forward"
125
126 #define GQ_ICON_PLAY "media-playback-start"
127 #define GQ_ICON_PAUSE "media-playback-pause"
128
129 #define GQ_ICON_ZOOM_IN "zoom-in"
130 #define GQ_ICON_ZOOM_OUT "zoom-out"
131 #define GQ_ICON_ZOOM_100 "zoom-original"
132 #define GQ_ICON_ZOOM_FIT "zoom-fit-best"
133
134 // might need replacing
135 #define GQ_ICON_PREFERENCES "preferences-system"
136 #define GQ_ICON_HELP "help-contents" // "help-browser"?
137 #define GQ_ICON_EXPORT "document-export" // use collection icon?
138
139 // not available in some themes
140 #define GQ_ICON_OK "emblem-ok"
141 #define GQ_ICON_APPLY "emblem-ok" // need something else?
142 #define GQ_ICON_CANCEL "dialog-cancel" // missing in adwaita and others, seen in breeze
143 #define GQ_ICON_PAN_DOWN "pan-down-symbolic" // adwaita, breeze, hicolor supports this
144 #define GQ_ICON_PAN_UP "pan-up-symbolic" // adwaita, breeze, hicolor supports this
145
146 #define GQ_ICON_DIALOG_ERROR "dialog-error"
147 #define GQ_ICON_DIALOG_INFO "dialog-information"
148 #define GQ_ICON_DIALOG_QUESTION "dialog-question"
149 #define GQ_ICON_DIALOG_WARNING "dialog-warning"
150
151 #define GQ_ICON_UNREADABLE "emblem-unreadable"
152 #define GQ_ICON_LINK "emblem-symbolic-link"
153 #define GQ_ICON_READONLY "emblem-readonly"
154
155 #define GQ_ICON_FLIP_HORIZONTAL "object-flip-horizontal"
156 #define GQ_ICON_FLIP_VERTICAL "object-flip-vertical"
157 #define GQ_ICON_ROTATE_LEFT "object-rotate-left"
158 #define GQ_ICON_ROTATE_RIGHT "object-rotate-right"
159
160 #define GQ_ICON_DIRECTORY "folder"
161 #define GQ_ICON_MISSING_IMAGE "image-missing"
162 #define GQ_ICON_STRIKETHROUGH "format-text-strikethrough"
163 #define GQ_ICON_FILE "text-x-generic"
164 #define GQ_ICON_GENERIC "text-x-generic"
165 #define GQ_ICON_SELECT_FONT "font-select"
166 #define GQ_ICON_SELECT_COLOR "color-select"
167 #define GQ_ICON_COLOR_MANAGEMENT "preferences-color" // breeze has nicer "color-management" icon, missing in others
168
169 // not done... plus many more
170 #define GQ_ICON_COLLECTION GTK_STOCK_INDEX
171 #define GQ_ICON_DND GTK_STOCK_DND_MULTIPLE
172 // PIXBUF_INLINE_ICON_ZOOMFILLHOR
173 // PIXBUF_INLINE_ICON_ZOOMFILLVERT
174
175 #endif /* _MAIN_DEFINES_H */
176 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */