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 #if 1 /* set to 0 to disable debugging code and related options */
104 #include "typedefs.h"
107 *----------------------------------------------------------------------------
109 *----------------------------------------------------------------------------
111 ConfOptions *init_options(ConfOptions *options); /* TODO: move to globals.h */
113 ConfOptions *options;
124 *----------------------------------------------------------------------------
126 *----------------------------------------------------------------------------
130 * This also doubles as the main.c header.
133 GtkWidget *window_new(GtkWindowType type, const gchar *name, const gchar *icon,
134 const gchar *icon_file, const gchar *subtitle);
135 void window_set_icon(GtkWidget *window, const gchar *icon, const gchar *file);
136 gint window_maximized(GtkWidget *window);
138 gdouble get_zoom_increment(void);
140 void help_window_show(const gchar *key);
142 void keyboard_scroll_calc(gint *x, gint *y, GdkEventKey *event);
143 gint key_press_cb(GtkWidget *widget, GdkEventKey *event, gpointer data);
144 void exit_program(void);
146 #define CASE_SORT(a, b) ( (options->file_sort.case_sensitive) ? strcmp((a), (b)) : strcasecmp((a), (b)) )