- (* Wire up the loosely-coupled external components of the filetree.
- * See the note about signals in {!Filetree.tree} documentation.
- *)
- ignore (tree#op_checksum_file
- ~callback:(Op_checksum_file.checksum_file tree));
- ignore (tree#op_copy_regvalue
- ~callback:(Op_copy_regvalue.copy_regvalue tree));
- ignore (tree#op_disk_usage
- ~callback:(Op_disk_usage.disk_usage tree));
- ignore (tree#op_download_as_reg
- ~callback:(Op_download_as_reg.download_as_reg tree));
- ignore (tree#op_download_dir_find0
- ~callback:(Op_download_dir_find0.download_dir_find0 tree));
- ignore (tree#op_download_dir_tarball
- ~callback:(Op_download_dir_tarball.download_dir_tarball tree));
- ignore (tree#op_download_file
- ~callback:(Op_download_file.download_file tree));
- ignore (tree#op_file_information
- ~callback:(Op_file_information.file_information tree));
- ignore (tree#op_inspection_dialog
- ~callback:(Op_inspection_dialog.inspection_dialog tree));
- ignore (tree#op_view_file
- ~callback:(Op_view_file.view_file tree));
-
- tree
-
-class window =
- (* I prototyped the basic window layout using Glade, but have
- * implemented it by hand to give us more flexibility.
- *)
- let title = "Guest Filesystem Browser" in
- let window = GWindow.window ~width:700 ~height:700 ~title () in
- let vbox = GPack.vbox ~packing:window#add () in
-
- (* Menus. *)
- let connect_kvm_item, connect_xen_item, connect_none_item, _, _ =
- make_menubar window vbox ~packing:vbox#pack () in
-
- (* Top toolbar. *)
- let vmcombo, refresh_button, throbber, throbber_static, throbber_animation =
- make_toolbar ~packing:vbox#pack () in
-
- (* Main part of display is the file tree. *)
- let view = make_filetree ~packing:(vbox#pack ~expand:true ~fill:true) () in
-