| 7 |
|
|
| 8 |
#include "config.h" |
#include "config.h" |
| 9 |
#include "OneChildToFamilyLink.hh" |
#include "OneChildToFamilyLink.hh" |
| 10 |
|
#include "OneChildToFamilyLinkHandler.hh" |
| 11 |
|
#include "MMIParentsFamilyNote.hh" |
| 12 |
#include <gtk--/label.h> |
#include <gtk--/label.h> |
| 13 |
|
|
| 14 |
OneChildToFamilyLink::OneChildToFamilyLink(void) : |
OneChildToFamilyLink::OneChildToFamilyLink(void) : |
| 15 |
OneChildToFamilyLink_glade(), |
OneChildToFamilyLink_glade(), |
| 16 |
MMIParentsFamilyNote(0) |
OneFamilyLink() |
| 17 |
{ |
{ |
| 18 |
return; |
return; |
| 19 |
} |
} |
| 20 |
|
|
| 21 |
OneChildToFamilyLink::~OneChildToFamilyLink(void) |
OneChildToFamilyLink::~OneChildToFamilyLink(void) |
| 22 |
{ |
{ |
|
if (MMIParentsFamilyNote != 0) |
|
|
{ |
|
|
MMIParentsFamilyNote->clear(); |
|
|
} |
|
| 23 |
return; |
return; |
| 24 |
} |
} |
| 25 |
|
|
| 26 |
OneChildToFamilyLink::OneChildToFamilyLink(std::string const &father, |
OneChildToFamilyLink::OneChildToFamilyLink(OneFamilyLinkHandler const * const handler) : |
|
std::string const &mother, |
|
|
SigC::Slot1<int, GdkEventButton *> * slot_father, |
|
|
SigC::Slot1<int, GdkEventButton *> * slot_mother |
|
|
) : |
|
| 27 |
OneChildToFamilyLink_glade(), |
OneChildToFamilyLink_glade(), |
| 28 |
MMIParentsFamilyNote(0) |
OneFamilyLink(handler) |
| 29 |
{ |
{ |
| 30 |
_father->set_text(father); |
OneChildToFamilyLinkHandler const * const child_to_family_link_handler = static_cast < OneChildToFamilyLinkHandler const * const >(handler); |
| 31 |
_mother->set_text(mother); |
_father->set_text(child_to_family_link_handler->getFather()); |
| 32 |
if (slot_father != 0) |
_mother->set_text(child_to_family_link_handler->getMother()); |
| 33 |
_goto_father->button_release_event.connect(*slot_father); |
OneFamilyLinkHandler::SlotHandler_t * slot_father = child_to_family_link_handler->getSlotFather(); |
| 34 |
if (slot_mother != 0) |
if (slot_father != 0) |
| 35 |
_goto_mother->button_release_event.connect(*slot_mother); |
_goto_father->button_release_event.connect(*slot_father); |
| 36 |
return; |
OneFamilyLinkHandler::SlotHandler_t * slot_mother = child_to_family_link_handler->getSlotMother(); |
| 37 |
|
if (slot_mother != 0) |
| 38 |
|
_goto_mother->button_release_event.connect(*slot_mother); |
| 39 |
|
return; |
| 40 |
} |
} |