X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/88f6f1c9a8861bed8d1907001a10c4605e268a5e..84820a0fe02b9fdd63fb7c28d5a823bfa065c259:/viewer/main.cpp diff --git a/viewer/main.cpp b/viewer/main.cpp index d54eac3..c0aa299 100644 --- a/viewer/main.cpp +++ b/viewer/main.cpp @@ -5,6 +5,7 @@ #include #include "view_btree.h" +#include "view_properties.h" using namespace Gnome::Canvas; @@ -15,16 +16,24 @@ int main(int argc, char *argv[]) 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 (area); + + 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;