From: Ricardo Markiewicz Date: Sun, 25 Sep 2005 02:04:08 +0000 (+0000) Subject: Veo propiedades en ventana principal. X-Git-Tag: 1_0-pre1~105 X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/commitdiff_plain/ca4f831a3835de978b27c7e198b2b52999aa8f3e?hp=70084b679b2a4a3be3f7cc6ef80cef7c7ccf8bed Veo propiedades en ventana principal. --- 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;