28 |
OneSpouseToFamilyLink_glade(), |
OneSpouseToFamilyLink_glade(), |
29 |
OneFamilyLink(handler) |
OneFamilyLink(handler) |
30 |
{ |
{ |
31 |
OneSpouseToFamilyLinkHandler const * const spouse_to_family_link_handler = static_cast < OneSpouseToFamilyLinkHandler const * const >(handler); |
ManageFamilyLinkHandler(handler, _husband, _wife, _goto_husband, _goto_wife); |
32 |
|
|
33 |
|
OneSpouseToFamilyLinkHandler const * const spouse_to_family_link_handler = static_cast < OneSpouseToFamilyLinkHandler const * const >(handler); |
34 |
_union_date->set_text(spouse_to_family_link_handler->getUnionDate()); |
_union_date->set_text(spouse_to_family_link_handler->getUnionDate()); |
35 |
UnionPlace->set_text(spouse_to_family_link_handler->getUnionPlace()); |
UnionPlace->set_text(spouse_to_family_link_handler->getUnionPlace()); |
|
_husband->set_text(spouse_to_family_link_handler->getHusband()); |
|
|
OneFamilyLinkHandler::SlotHandler_t * slot_husband = spouse_to_family_link_handler->getSlotHusband(); |
|
|
if (slot_husband != 0) |
|
|
{ |
|
|
_goto_husband->button_release_event.connect(*slot_husband); |
|
|
} |
|
|
_wife->set_text(spouse_to_family_link_handler->getWife()); |
|
|
OneFamilyLinkHandler::SlotHandler_t * slot_wife = spouse_to_family_link_handler->getSlotWife(); |
|
|
if (slot_wife != 0) |
|
|
{ |
|
|
_goto_wife->button_release_event.connect(*slot_wife); |
|
|
} |
|
36 |
std::vector< std::string > children = spouse_to_family_link_handler->getChildren(); |
std::vector< std::string > children = spouse_to_family_link_handler->getChildren(); |
37 |
std::vector< OneFamilyLinkHandler::SlotHandler_t * > slots_children = spouse_to_family_link_handler->getSlotsChildren(); |
std::vector< OneFamilyLinkHandler::NavigationSlotHandler_t * > slots_children = spouse_to_family_link_handler->getNavigationSlotsChildren(); |
38 |
for (unsigned int cpt_child = 0; cpt_child < children.size(); cpt_child++) |
for (unsigned int cpt_child = 0; cpt_child < children.size(); cpt_child++) |
39 |
{ |
{ |
40 |
Gtk::Button * goto_child = manage(new Gtk::Button(children[cpt_child])); |
Gtk::Button * goto_child = manage(new Gtk::Button(children[cpt_child])); |