r339: The menu key bindings are now only saved if they actually changed.
[rox-filer/ma.git] / ROX-Filer / src / display.h
blob4b9a2080e89ab8f24e8b097bfd521c9dcf3bfb43
1 /*
2 * $Id$
4 * ROX-Filer, filer for the ROX desktop project
5 * By Thomas Leonard, <tal197@users.sourceforge.net>.
6 */
8 #ifndef _DISPLAY_H
9 #define _DISPLAY_H
11 #define ROW_HEIGHT_LARGE 64
13 #include <gtk/gtk.h>
14 #include "collection.h"
15 #include <sys/types.h>
16 #include <dirent.h>
18 typedef enum {
19 UNKNOWN_STYLE,
20 LARGE_ICONS,
21 SMALL_ICONS,
22 LARGE_FULL_INFO,
23 SMALL_FULL_INFO,
24 } DisplayStyle;
26 typedef enum {
27 DETAILS_SUMMARY,
28 DETAILS_SIZE,
29 DETAILS_SIZE_BARS,
30 } DetailsType;
32 extern guchar *last_layout;
33 extern gboolean last_show_hidden;
34 extern int (*last_sort_fn)(const void *a, const void *b);
36 /* Prototypes */
37 void display_init();
38 char *details(FilerWindow *filer_window, DirItem *item);
39 gboolean display_set_layout(FilerWindow *filer_window, guchar *layout);
40 void display_set_hidden(FilerWindow *filer_window, gboolean hidden);
41 int sort_by_name(const void *item1, const void *item2);
42 int sort_by_type(const void *item1, const void *item2);
43 int sort_by_date(const void *item1, const void *item2);
44 int sort_by_size(const void *item1, const void *item2);
45 void display_set_sort_fn(FilerWindow *filer_window,
46 int (*fn)(const void *a, const void *b));
47 void display_set_autoselect(FilerWindow *filer_window, guchar *leaf);
48 void shrink_width(FilerWindow *filer_window);
49 int calc_width(FilerWindow *filer_window, DirItem *item);
51 #endif /* _DISPLAY_H */