4 * ROX-Filer, filer for the ROX desktop project
5 * By Thomas Leonard, <tal197@ecs.soton.ac.uk>.
12 #include "collection.h"
14 #include <sys/types.h>
19 extern GdkFont
*fixed_font
;
21 typedef struct _FilerWindow FilerWindow
;
22 typedef enum {LEFT
, RIGHT
, TOP
, BOTTOM
} Side
;
23 typedef enum {UNKNOWN_STYLE
, LARGE_ICONS
, SMALL_ICONS
, FULL_INFO
} DisplayStyle
;
27 FILER_NEEDS_RESCAN
= 0x01, /* Call may_rescan after scanning */
28 FILER_UPDATING
= 0x02, /* (scanning) items may already exist */
36 char *path
; /* pathname */
37 Collection
*collection
;
39 gboolean temp_item_selected
;
43 time_t m_time
; /* m-time at last scan */
44 int (*sort_fn
)(const void *a
, const void *b
);
45 DisplayStyle display_style
;
50 extern FilerWindow
*window_with_focus
;
51 extern GHashTable
*child_to_filer
;
55 void filer_opendir(char *path
, gboolean panel
, Side panel_side
);
56 void update_dir(FilerWindow
*filer_window
);
57 void scan_dir(FilerWindow
*filer_window
);
58 DirItem
*selected_item(Collection
*collection
);
59 void change_to_parent(FilerWindow
*filer_window
);
60 void filer_style_set(FilerWindow
*filer_window
, DisplayStyle style
);
61 char *details(DirItem
*item
);
62 void filer_set_hidden(FilerWindow
*filer_window
, gboolean hidden
);