7 * This software is released under the GNU General Public License (GNU GPL).
8 * Please read the included file COPYING for more information.
9 * This software comes with no warranty of any kind, use at your own risk!
20 #ifdef HAVE_STRVERSCMP
29 *-------------------------------------
30 * Standard library includes
31 *-------------------------------------
42 #include <sys/types.h>
47 *-------------------------------------
48 * includes for glib / gtk / gdk-pixbuf
49 *-------------------------------------
55 #include <gdk-pixbuf/gdk-pixbuf.h>
56 #include <gdk-pixbuf/gdk-pixbuf-loader.h>
60 *----------------------------------------------------------------------------
62 *----------------------------------------------------------------------------
65 #define GQ_APPNAME "Geeqie"
66 #define GQ_APPNAME_LC "geeqie"
67 #define GQ_WEBSITE "geeqie.sourceforge.net"
68 #define GQ_EMAIL_ADDRESS "geeqie-devel@lists.sourceforge.net"
70 #define GQ_WMCLASS GQ_APPNAME_LC
72 #define GQ_RC_DIR "." GQ_APPNAME_LC
73 #define GQ_RC_DIR_COLLECTIONS GQ_RC_DIR"/collections"
74 #define GQ_RC_DIR_TRASH GQ_RC_DIR"/trash"
76 #define RC_FILE_NAME GQ_APPNAME_LC "rc"
78 #define ZOOM_RESET_ORIGINAL 0
79 #define ZOOM_RESET_FIT_WINDOW 1
80 #define ZOOM_RESET_NONE 2
82 #define SCROLL_RESET_TOPLEFT 0
83 #define SCROLL_RESET_CENTER 1
84 #define SCROLL_RESET_NOCHANGE 2
86 #define MOUSEWHEEL_SCROLL_SIZE 20
88 #define GQ_EDITOR_GENERIC_SLOTS 10
90 #define COLOR_PROFILE_INPUTS 4
92 #define DEFAULT_THUMB_WIDTH 96
93 #define DEFAULT_THUMB_HEIGHT 72
95 #define IMAGE_LOADER_READ_BUFFER_SIZE_DEFAULT 4096
96 #define IMAGE_LOADER_READ_BUFFER_SIZE_MIN 512
97 #define IMAGE_LOADER_READ_BUFFER_SIZE_MAX 16*1024*1024
99 #define IMAGE_LOADER_IDLE_READ_LOOP_COUNT_DEFAULT 1
100 #define IMAGE_LOADER_IDLE_READ_LOOP_COUNT_MIN 1
101 #define IMAGE_LOADER_IDLE_READ_LOOP_COUNT_MAX 16
104 #define DEFAULT_OVERLAY_INFO "%collection%(%number%/%total%) [%zoom%] <b>%name%</b>\n" \
105 "%res%|%date%|%size%\n" \
106 "%fAperture%|%fShutterSpeed%|%fISOSpeedRating%|%fFocalLength%|%fExposureBias%\n" \
107 "%fCamera%|%fFlash%" \
109 #if 1 /* set to 0 to disable debugging code and related options */
118 #include "typedefs.h"
121 *----------------------------------------------------------------------------
123 *----------------------------------------------------------------------------
125 ConfOptions *init_options(ConfOptions *options); /* TODO: move to globals.h */
127 ConfOptions *options;
138 *----------------------------------------------------------------------------
140 *----------------------------------------------------------------------------
144 * This also doubles as the main.c header.
147 GtkWidget *window_new(GtkWindowType type, const gchar *name, const gchar *icon,
148 const gchar *icon_file, const gchar *subtitle);
149 void window_set_icon(GtkWidget *window, const gchar *icon, const gchar *file);
150 gint window_maximized(GtkWidget *window);
152 gdouble get_zoom_increment(void);
154 const gchar *get_exec_time();
156 void help_window_show(const gchar *key);
158 void keyboard_scroll_calc(gint *x, gint *y, GdkEventKey *event);
159 gint key_press_cb(GtkWidget *widget, GdkEventKey *event, gpointer data);
160 void exit_program(void);
162 #define CASE_SORT(a, b) ( (options->file_sort.case_sensitive) ? strcmp((a), (b)) : strcasecmp((a), (b)) )