/[ghosts]/ghosts/gedcomviewer/src/MMIglade/src/OneChildToFamilyLink.cc
ViewVC logotype

Diff of /ghosts/gedcomviewer/src/MMIglade/src/OneChildToFamilyLink.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by cpcp, Sat Mar 1 12:04:26 2003 UTC revision 1.3 by cpcp, Sun Mar 2 14:39:23 2003 UTC
# Line 7  Line 7 
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  }  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26