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

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

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

revision 1.1 by cpcp, Sun Mar 2 14:39:23 2003 UTC revision 1.2 by cpcp, Sun Mar 2 18:20:33 2003 UTC
# Line 22  Line 22 
22  #include "OneFamilyLink.hh"  #include "OneFamilyLink.hh"
23    
24  OneFamilyLink::OneFamilyLink(void) :  OneFamilyLink::OneFamilyLink(void) :
25    _family_note(0)    _family_link_note(0),
26      _family_record_note(0)
27  {  {
28    return;    return;
29  }  }
30    
31  OneFamilyLink::~OneFamilyLink(void)  OneFamilyLink::~OneFamilyLink(void)
32  {  {
33    if (_family_note != 0)    if (_family_link_note != 0)
34      {      {
35        _family_note->clear();        _family_link_note->clear();
36      }      }
37      if (_family_record_note != 0)
38        {
39          _family_record_note->clear();
40        }
41    
42    return;    return;
43  }  }
44    
45  OneFamilyLink::OneFamilyLink(OneFamilyLinkHandler const * const handler) :  OneFamilyLink::OneFamilyLink(OneFamilyLinkHandler const * const handler) :
46    _family_note(0)    _family_link_note(0),
47      _family_record_note(0)
48    {
49      return;
50    }
51    
52    void OneFamilyLink::setFamilyLinkNote(WidgetNote &note)
53  {  {
54      if (_family_link_note != &note)
55        {
56          _family_link_note = &note;
57        }
58    return;    return;
59  }  }
60    
61  void OneFamilyLink::setFamilyNote(WidgetNote &note)  WidgetNote * OneFamilyLink::getFamilyLinkNote(void) const
62  {  {
63    _family_note = &note;    return _family_link_note;
64    }
65    
66    void OneFamilyLink::setFamilyRecordNote(WidgetNote &note)
67    {
68      if (_family_record_note != &note)
69        {
70          _family_record_note = &note;
71        }
72    return;    return;
73  }  }
74    
75  WidgetNote * OneFamilyLink::getFamilyNote(void)  WidgetNote * OneFamilyLink::getFamilyRecordNote(void) const
76  {  {
77    return _family_note;    return _family_record_note;
78  }  }

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

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