26 |
#include "OneFamilyLinkHandler.hh" |
#include "OneFamilyLinkHandler.hh" |
27 |
#include "../../widgets/WidgetNote.hh" |
#include "../../widgets/WidgetNote.hh" |
28 |
#include <gtk--/box.h> |
#include <gtk--/box.h> |
29 |
|
#include <gtk--/label.h> |
30 |
|
#include <gtk--/button.h> |
31 |
|
#include <sigc++/object.h> |
32 |
|
#include <string> |
33 |
|
|
34 |
|
class OneFamilyLink; |
35 |
|
|
36 |
#include "MMIMenuLinkEditor.hh" |
#include "MMIMenuLinkEditor.hh" |
37 |
|
|
38 |
class OneFamilyLink |
class OneFamilyLink : public SigC::Object |
39 |
{ |
{ |
40 |
public: |
public: |
41 |
OneFamilyLink(void); |
OneFamilyLink(void); |
46 |
void setFamilyRecordNote(WidgetNote &); |
void setFamilyRecordNote(WidgetNote &); |
47 |
WidgetNote * getFamilyRecordNote(void) const; |
WidgetNote * getFamilyRecordNote(void) const; |
48 |
void PopupLinkEditorMenu(LinkEditorMenu_t const &menus); |
void PopupLinkEditorMenu(LinkEditorMenu_t const &menus); |
49 |
|
void menu_link_editor_activated(std::string const); |
50 |
|
typedef void LinkEditionReturnHandler_t; |
51 |
|
typedef SigC::Signal1 < LinkEditionReturnHandler_t, std::string > LinkEditionSlotHandler_t; |
52 |
|
LinkEditionSlotHandler_t & LinkEdited(void); |
53 |
|
protected: |
54 |
|
void ManageFamilyLinkHandler(OneFamilyLinkHandler const * const handler, Gtk::Label * label_man, Gtk::Label * label_woman, Gtk::Button * button_man, Gtk::Button * button_woman) const; |
55 |
|
void ManageFamilyLinkHandler(OneFamilyLinkHandler const * const handler); |
56 |
private: |
private: |
57 |
WidgetNote * _family_link_note; |
WidgetNote * _family_link_note; |
58 |
WidgetNote * _family_record_note; |
WidgetNote * _family_record_note; |
59 |
|
LinkEditionSlotHandler_t _link_edited; |
60 |
|
|
61 |
}; |
}; |
62 |
|
|
63 |
#endif |
#endif |