Refactor code to add inspection dialog.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 27 Jul 2011 22:12:53 +0000 (23:12 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 28 Jul 2011 15:37:13 +0000 (16:37 +0100)
commit674ec31578216d728c4ab9c0a8a297e47c81c492
tree9bd979c27f8315566c603c82952f2a519342173c
parenta4317d06454daae173209204137998838c73807a
Refactor code to add inspection dialog.

Turn Filetree into a Gtk object.

This changes the public interface of Filetree to be a Gtk object,
inheriting from GTree.view.  This allows us to attach signals to this
object.

Second, we add the inspection dialog as a separate module.

The filetree and inspection dialog modules are loosely coupled by two
signals.  The tree#op_inspection_dialog signal is emitted by the tree
when the inspection dialog should be opened.  tree#clear_tree is
emitted by the tree when the inspection dialog should be closed (it
can also be closed by user action).

The inspection dialog is not implemented by this commit.  It is just
empty for now.

The other operations are modified to work in the same way as the
inspection dialog.  eg. file checksum is implemented using a separate,
loosely-coupled module called Op_checksum_file, which listens for a
tree#op_checksum_file signal and runs when that signal is emitted.
34 files changed:
.depend
Makefile.am
TODO
filetree.ml
filetree.mli
filetree_markup.ml
filetree_markup.mli
filetree_ops.ml [deleted file]
filetree_ops.mli [deleted file]
filetree_type.ml [deleted file]
filetree_type.mli [deleted file]
op_checksum_file.ml [new file with mode: 0644]
op_checksum_file.mli [new file with mode: 0644]
op_copy_regvalue.ml [new file with mode: 0644]
op_copy_regvalue.mli [new file with mode: 0644]
op_disk_usage.ml [new file with mode: 0644]
op_disk_usage.mli [new file with mode: 0644]
op_download_as_reg.ml [new file with mode: 0644]
op_download_as_reg.mli [new file with mode: 0644]
op_download_dir_find0.ml [new file with mode: 0644]
op_download_dir_find0.mli [new file with mode: 0644]
op_download_dir_tarball.ml [new file with mode: 0644]
op_download_dir_tarball.mli [new file with mode: 0644]
op_download_file.ml [new file with mode: 0644]
op_download_file.mli [new file with mode: 0644]
op_file_information.ml [new file with mode: 0644]
op_file_information.mli [new file with mode: 0644]
op_inspection_dialog.ml [new file with mode: 0644]
op_inspection_dialog.mli [new file with mode: 0644]
op_view_file.ml [new file with mode: 0644]
op_view_file.mli [new file with mode: 0644]
utils.ml
utils.mli
window.ml