Version 0.0.1
[guestfs-browser.git] / filetree.mli
1 (* Guestfs Browser.
2  * Copyright (C) 2010 Red Hat Inc.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  *)
18
19 (** Tree model for displaying files in the guest filesystem.
20
21     The model reads files and directories on demand so that we don't
22     have to read the whole thing in at the beginning.
23
24     Originally this was written as a custom tree model, but we
25     couldn't get that to work.  Instead we use something similar
26     to this trick:
27     http://mail.gnome.org/archives/gtk-app-devel-list/2003-May/msg00241.html *)
28
29 val filetree : string -> Slave.rw_flag -> GTree.view
30   (** [filetree dev rw] creates a new filetree widget.
31
32       [dev] is the device.
33       [rw] is the RO|RW flag. *)