// generated 2002/5/26 15:55:07 CEST by free@m127.net195-132-170.noos.fr.localdomain // using glademm V0.6.4 // // newer (non customized) versions of this file go to MMIChildToFamilyLink.cc_new // This file is for your program, I won't touch it again! #include "config.h" #include "MMIChildToFamilyLink.hh" #include #include "../string_utility/Converter.hh" MMIChildToFamilyLink::MMIChildToFamilyLink( ) : MMIChildToFamilyLink_glade() { _child_to_family_links->pages().clear(); _cpt_family = 0; } OneChildToFamilyLink * MMIChildToFamilyLink::addChildToFamilyLink(std::string const &father, std::string const &mother, SigC::Slot0 * slot_father = 0, SigC::Slot0 * slot_mother = 0 ) { _cpt_family++; OneChildToFamilyLink = manage(new class OneChildToFamilyLink(father, mother, slot_father, slot_mother)); MMIParentsFamilyNote = manage(new class MMIParentsFamilyNote()); Gtk::Label *_child_to_family_link1 = manage(new class Gtk::Label(_("Family ") + toString(_cpt_family))); _child_to_family_link1->set_alignment(0.5, 0.5); _child_to_family_link1->set_padding(0, 0); Gtk::HBox *hbox24 = manage(new class Gtk::HBox(false, 0)); hbox24->pack_start(*_child_to_family_link1); hbox24->pack_end(*MMIParentsFamilyNote, false, true, 0); _child_to_family_links->pages().push_back(Gtk::Notebook_Helpers::TabElem(*OneChildToFamilyLink, *hbox24)); OneChildToFamilyLink->MMIParentsFamilyNote = MMIParentsFamilyNote; return OneChildToFamilyLink; } void MMIChildToFamilyLink::Clear(void) { _child_to_family_links->pages().clear(); _cpt_family = 0; return; }