/*
 * ROX-Filer, filer for the ROX desktop project
 * By Thomas Leonard, <tal197@users.sourceforge.net>.
 */

#ifndef _BIND_H
#define _BIND_H

#include <gtk/gtk.h>

extern Option o_new_button_1, o_single_click;

typedef enum {
	BIND_DIRECTORY,
	BIND_DIRECTORY_ICON,
} BindContext;

typedef enum {
	ACT_IGNORE,		/* Do nothing */
	ACT_SELECT_EXCL,	/* Select just this one item */
	ACT_TOGGLE_SELECTED,	/* Toggle this item's selected state */
	ACT_OPEN_ITEM,		/* Run app, load file or open dir */
	ACT_OPEN_ITEM_CLOSE,
	ACT_EDIT_ITEM,		/* Open app, load text file or mount dir */
	ACT_EDIT_ITEM_CLOSE,
	ACT_POPUP_MENU,		/* Show the popup menu */
	ACT_CLEAR_SELECTION,	/* Unselect all icons in this area */
	ACT_PRIME_FOR_DND,	/* Significant motion will start dnd */
	ACT_PRIME_AND_SELECT,	/* As above, but select the item too */
	ACT_PRIME_AND_TOGGLE,	/* As above, but toggle the item instead */
	ACT_LASSO_CLEAR,	/* Clear selection, and start lasso drag */
	ACT_LASSO_MODIFY,	/* Start lasso drag without clearing */
	ACT_RESIZE,		/* Auto-resize the filer window */
} BindAction;

void bind_init(void);
BindAction bind_lookup_bev(BindContext context, GdkEventButton *event);

#endif /* _BIND_H */
