r1996: Cope slightly better with invalid filenames in various places (reported by
[rox-filer.git] / ROX-Filer / src / bind.h
blob4a72047518330458c15ab14cb283501657a126eb
1 /*
2 * $Id$
4 * ROX-Filer, filer for the ROX desktop project
5 * By Thomas Leonard, <tal197@users.sourceforge.net>.
6 */
8 #ifndef _BIND_H
9 #define _BIND_H
11 #include <gtk/gtk.h>
13 extern Option o_new_button_1;
15 typedef enum {
16 BIND_DIRECTORY,
17 BIND_DIRECTORY_ICON,
18 BIND_PANEL,
19 BIND_PANEL_ICON,
20 BIND_PINBOARD,
21 BIND_PINBOARD_ICON,
22 } BindContext;
24 typedef enum {
25 ACT_IGNORE, /* Do nothing */
26 ACT_SELECT_EXCL, /* Select just this one item */
27 ACT_TOGGLE_SELECTED, /* Toggle this item's selected state */
28 ACT_OPEN_ITEM, /* Run app, load file or open dir */
29 ACT_EDIT_ITEM, /* Open app, load text file or mount dir */
30 ACT_POPUP_MENU, /* Show the popup menu */
31 ACT_CLEAR_SELECTION, /* Unselect all icons in this area */
32 ACT_MOVE_ICON, /* Reposition a pinboard/panel icon */
33 ACT_PRIME_FOR_DND, /* Significant motion will start dnd */
34 ACT_PRIME_AND_SELECT, /* As above, but select the item too */
35 ACT_PRIME_AND_TOGGLE, /* As above, but toggle the item instead */
36 ACT_LASSO_CLEAR, /* Clear selection, and start lasso drag */
37 ACT_LASSO_MODIFY, /* Start lasso drag without clearing */
38 ACT_SLIDE_PANEL, /* Start scrolling the panel */
39 ACT_SLIDE_CLEAR_PANEL, /* As above, but clear selection too */
40 ACT_RESIZE, /* Auto-resize the filer window */
41 } BindAction;
43 void bind_init(void);
44 BindAction bind_lookup_bev(BindContext context, GdkEventButton *event);
46 #endif /* _BIND_H */