4 * ROX-Filer, filer for the ROX desktop project
5 * By Thomas Leonard, <tal197@users.sourceforge.net>.
12 #include "collection.h"
16 OPEN_SHIFT
= 0x01, /* Do ShiftOpen */
17 OPEN_SAME_WINDOW
= 0x02, /* Directories open in same window */
18 OPEN_CLOSE_WINDOW
= 0x04, /* Opening files closes the window */
19 OPEN_FROM_MINI
= 0x08, /* Non-dir => close minibuffer */
24 FILER_NEEDS_RESCAN
= 0x01, /* Call may_rescan after scanning */
25 FILER_UPDATING
= 0x02, /* (scanning) items may already exist */
29 #include "minibuffer.h"
32 typedef void (*TargetFunc
)(FilerWindow
*filer_window
, int item
, gpointer data
);
37 gboolean scanning
; /* State of the 'scanning' indicator */
38 guchar
*path
; /* pathname */
39 Collection
*collection
;
40 gboolean temp_item_selected
;
43 int (*sort_fn
)(const void *a
, const void *b
);
45 DetailsType details_type
;
46 DisplayStyle display_style
;
50 gboolean had_cursor
; /* (before changing directory) */
51 char *auto_select
; /* If it we find while scanning */
53 GtkWidget
*minibuffer_area
; /* The hbox to show/hide */
54 GtkWidget
*minibuffer_label
; /* The operation name */
55 GtkWidget
*minibuffer
; /* The text entry */
59 /* TRUE if hidden files are shown because the minibuffer leafname
62 gboolean temp_show_hidden
;
67 GtkWidget
*toolbar_frame
;
68 GtkWidget
*toolbar_text
;
71 gint open_timeout
; /* Will resize and show window... */
74 extern FilerWindow
*window_with_focus
;
75 extern GList
*all_filer_windows
;
76 extern GHashTable
*child_to_filer
;
77 extern gboolean o_unique_filer_windows
;
80 void filer_init(void);
81 FilerWindow
*filer_opendir(char *path
);
82 void filer_update_dir(FilerWindow
*filer_window
, gboolean warning
);
83 void filer_update_all(void);
84 int selected_item_number(Collection
*collection
);
85 DirItem
*selected_item(Collection
*collection
);
86 void change_to_parent(FilerWindow
*filer_window
);
87 void full_refresh(void);
88 void filer_openitem(FilerWindow
*filer_window
, int item_number
,
90 void filer_check_mounted(char *path
);
91 void filer_change_to(FilerWindow
*filer_window
, char *path
, char *from
);
92 gboolean
filer_exists(FilerWindow
*filer_window
);
93 void filer_open_parent(FilerWindow
*filer_window
);
94 void filer_detach_rescan(FilerWindow
*filer_window
);
95 void filer_target_mode(FilerWindow
*filer_window
,
99 void filer_window_autosize(FilerWindow
*filer_window
);
101 #endif /* _FILER_H */