r898: Applied Bernard Jungen's latest patch:
[rox-filer.git] / ROX-Filer / src / bind.h
bloba6abb61fca5379665653ae7c1884bb7bc9746a87
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 gboolean o_new_window_on_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 */