4 * Copyright (C) 2008 The Geeqie Team
8 * This software is released under the GNU General Public License (GNU GPL).
9 * Please read the included file COPYING for more information.
10 * This software comes with no warranty of any kind, use at your own risk!
21 #ifdef HAVE_STRVERSCMP
32 *-------------------------------------
33 * Standard library includes
34 *-------------------------------------
45 #include <sys/types.h>
50 *-------------------------------------
51 * includes for glib / gtk / gdk-pixbuf
52 *-------------------------------------
58 #include <gdk-pixbuf/gdk-pixbuf.h>
59 #include <gdk-pixbuf/gdk-pixbuf-loader.h>
63 *----------------------------------------------------------------------------
65 *----------------------------------------------------------------------------
68 #define GQ_APPNAME "Geeqie"
69 #define GQ_APPNAME_LC "geeqie"
70 #define GQ_WEBSITE "geeqie.sourceforge.net"
71 #define GQ_EMAIL_ADDRESS "geeqie-devel@lists.sourceforge.net"
73 #define GQ_WMCLASS GQ_APPNAME_LC
75 #define GQ_RC_DIR "." GQ_APPNAME_LC
76 #define GQ_RC_DIR_COLLECTIONS GQ_RC_DIR"/collections"
77 #define GQ_RC_DIR_TRASH GQ_RC_DIR"/trash"
79 #define RC_FILE_NAME GQ_APPNAME_LC "rc"
81 #define ZOOM_RESET_ORIGINAL 0
82 #define ZOOM_RESET_FIT_WINDOW 1
83 #define ZOOM_RESET_NONE 2
85 #define SCROLL_RESET_TOPLEFT 0
86 #define SCROLL_RESET_CENTER 1
87 #define SCROLL_RESET_NOCHANGE 2
89 #define MOUSEWHEEL_SCROLL_SIZE 20
91 #define GQ_EDITOR_GENERIC_SLOTS 10
93 #define COLOR_PROFILE_INPUTS 4
95 #define DEFAULT_THUMB_WIDTH 96
96 #define DEFAULT_THUMB_HEIGHT 72
98 #define IMAGE_LOADER_READ_BUFFER_SIZE_DEFAULT 4096
99 #define IMAGE_LOADER_READ_BUFFER_SIZE_MIN 512
100 #define IMAGE_LOADER_READ_BUFFER_SIZE_MAX 16*1024*1024
102 #define IMAGE_LOADER_IDLE_READ_LOOP_COUNT_DEFAULT 1
103 #define IMAGE_LOADER_IDLE_READ_LOOP_COUNT_MIN 1
104 #define IMAGE_LOADER_IDLE_READ_LOOP_COUNT_MAX 16
106 #define PANEL_MIN_WIDTH 64
107 #define PANEL_DEFAULT_WIDTH 288
108 #define PANEL_MAX_WIDTH 1200
110 #define DEFAULT_OVERLAY_INFO "%collection:<i>*</i>\\n%" \
111 "(%number%/%total%) [%zoom%] <b>%name%</b>\n" \
112 "%res%|%date%|%size%\n" \
113 "%formatted.Aperture%|%formatted.ShutterSpeed%|%formatted.ISOSpeedRating:ISO *%|%formatted.FocalLength%|%formatted.ExposureBias:* Ev%\n" \
114 "%formatted.Camera:40%|%formatted.Flash%"
116 #include "typedefs.h"
121 *----------------------------------------------------------------------------
123 *----------------------------------------------------------------------------
127 * This also doubles as the main.c header.
130 gdouble get_zoom_increment(void);
131 gchar *utf8_validate_or_convert(gchar *text);
132 gchar *expand_tilde(const gchar *filename);
134 void keyboard_scroll_calc(gint *x, gint *y, GdkEventKey *event);
135 gint key_press_cb(GtkWidget *widget, GdkEventKey *event, gpointer data);
137 void exit_program(void);
139 #define CASE_SORT(a, b) ( (options->file_sort.case_sensitive) ? strcmp((a), (b)) : strcasecmp((a), (b)) )