28 |
#include "BakeryExtras/View_RunTimeSubscriber.hh" |
#include "BakeryExtras/View_RunTimeSubscriber.hh" |
29 |
#include "BakeryGateway/Document.hh" |
#include "BakeryGateway/Document.hh" |
30 |
#include "OneFamilyLinkHandler.hh" |
#include "OneFamilyLinkHandler.hh" |
31 |
|
#include "OneFamilyLink.hh" |
32 |
#include "widgets/WidgetNote.hh" |
#include "widgets/WidgetNote.hh" |
33 |
#include <sigc++/object.h> |
#include <sigc++/object.h> |
34 |
#include <string> |
#include <string> |
35 |
|
#include "GEDCOMParser/FamilyRecord.hh" |
36 |
|
#include "BakeryGateway/ViewFamilyRecordNoteFactory.hh" |
37 |
|
|
38 |
namespace BakeryGateway { |
namespace BakeryGateway { |
39 |
template < class T_FamilyLink > |
template < class T_FamilyLink > |
75 |
} |
} |
76 |
return *individual_name; |
return *individual_name; |
77 |
}; |
}; |
78 |
|
|
79 |
|
OneFamilyLinkHandler::SlotHandler_t * getSlotHandler(std::string * individu_id) |
80 |
|
{ |
81 |
|
return new OneFamilyLinkHandler::SlotHandler_t(SigC::bind(SigC::slot(this, &BakeryGateway::ViewFamilyLink < T_FamilyLink > ::ButtonPressed), individu_id)); |
82 |
|
}; |
83 |
|
|
84 |
|
void ManageFamilyRecordNote(OneFamilyLink * family_link, GEDCOMParser::FamilyRecord * family_record) |
85 |
|
{ |
86 |
|
BakeryGateway::ViewFamilyRecordNoteFactory familyrecord_note_factory; |
87 |
|
Bakery::View<BakeryGateway::Document> * familyrecord_note_view = familyrecord_note_factory.createView(family_link->getFamilyRecordNote()); |
88 |
|
subscribe_view(familyrecord_note_view); |
89 |
|
BakeryExtras::View_Linked < BakeryGateway::Document, GEDCOMParser::FamilyRecord > * tmp = dynamic_cast < BakeryExtras::View_Linked < BakeryGateway::Document, GEDCOMParser::FamilyRecord > * > (familyrecord_note_view); |
90 |
|
tmp->set_parent_entity(family_record); |
91 |
|
return; |
92 |
|
}; |
93 |
|
|
94 |
bool _during_load; |
bool _during_load; |
95 |
virtual void family_added(void) = 0; |
virtual void family_added(void) = 0; |
96 |
virtual void family_deleted(int family_index) = 0; |
virtual void family_deleted(int family_index) = 0; |