X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/d76cfcfa2ef1363786c12ede4780e99d1bf02803..eabe0084451a515b80a7fd462c71b4bb2f8dd7bd:/viewer/view_properties.cpp?ds=inline diff --git a/viewer/view_properties.cpp b/viewer/view_properties.cpp index 4576965..65f782f 100644 --- a/viewer/view_properties.cpp +++ b/viewer/view_properties.cpp @@ -42,8 +42,12 @@ ViewProperties::ViewProperties ():Frame () table.attach (data_type, 1, 2, 4, 5, Gtk::EXPAND|Gtk::FILL, Gtk::SHRINK); table.attach (data_key, 1, 2, 5, 6, Gtk::EXPAND|Gtk::FILL, Gtk::SHRINK); table.attach (data_child, 1, 2, 6, 7, Gtk::EXPAND|Gtk::FILL, Gtk::SHRINK); + + table.property_column_spacing () = 8; + table.property_row_spacing () = 8; add (table); + property_label_xalign () = 0; set_label ("Propiedades"); set_shadow_type(Gtk::SHADOW_NONE); set_size_request (200, 0); @@ -74,25 +78,26 @@ void ViewProperties::ShowItem (BTreeData *data, BTreeNodeHeader &header) std::string s4; std::stringstream ss4; - ss4 << data->getChild (); + ss4 << data->GetChild (); ss4 >> s4; data_child.set_label (s4); } else if (dynamic_cast(data)) { data_type.set_label ("BTreeLeafData"); data_child.set_label ("N/C"); - std::string s4 = *(data->getClave ()); - data_child.set_label (s4); + std::string s4 = *(data->GetKey ()); + std::cout << "----> " << s4 << std::endl; + data_key.set_label (s4); } else { data_type.set_label ("BTreeData"); std::string s4; std::stringstream ss4; - ss4 << data->getChild (); + ss4 << data->GetChild (); ss4 >> s4; data_child.set_label (s4); - std::string s5 = *(data->getClave ()); + std::string s5 = *(data->GetKey ()); data_key.set_label (s5); } }