#include <libgnomecanvasmm.h>
#include "view_btree.h"
+#include "view_properties.h"
using namespace Gnome::Canvas;
Gnome::Canvas::init ();
Gtk::Window window;
+ Gtk::HBox hbox;
+ ViewProperties frame;
+ Gtk::ScrolledWindow area;
Gnome::Canvas::Canvas canvas;
ViewBTree canvas_grp (canvas.root (), "test.idx");
+ canvas.set_scroll_region (0, 0, 5000, 5000);
+ area.add (canvas);
- window.add (canvas);
- window.set_size_request (800, 100);
+ hbox.pack_start (frame, false, false, 10);
+ hbox.pack_start (area);
+
+ window.add (hbox);
+ window.set_size_request (640, 480);
window.show_all ();
+ /* Conecto el Canvas con el Frame */
+ canvas_grp.signal_selected ().connect ( sigc::mem_fun (frame, &ViewProperties::ShowItem) );
Gtk::Main::run(window);
return 0;