From ca4f831a3835de978b27c7e198b2b52999aa8f3e Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Sun, 25 Sep 2005 02:04:08 +0000 Subject: [PATCH 1/1] Veo propiedades en ventana principal. --- viewer/main.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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; -- 2.43.0