30 |
#include "GEDCOMParser/IndividualEvent.hh" |
#include "GEDCOMParser/IndividualEvent.hh" |
31 |
#include "MMIIndividualEvents.hh" |
#include "MMIIndividualEvents.hh" |
32 |
#include "GEDCOMParser/IndividualRecord.hh" |
#include "GEDCOMParser/IndividualRecord.hh" |
33 |
|
#include <sigc++/object.h> |
34 |
|
|
35 |
namespace BakeryGateway { |
namespace BakeryGateway { |
36 |
class ViewIndividualEvents : public BakeryExtras::View_Linked < BakeryGateway::Document, GEDCOMParser::IndividualRecord >, |
class ViewIndividualEvents : public BakeryExtras::View_Linked < BakeryGateway::Document, GEDCOMParser::IndividualRecord >, |
37 |
public BakeryExtras::View_RunTimeSubscriber < BakeryGateway::Document, GEDCOMParser::Event, WidgetNote > |
public BakeryExtras::View_RunTimeSubscriber < BakeryGateway::Document, GEDCOMParser::Event, WidgetNote >, |
38 |
|
public SigC::Object |
39 |
|
|
40 |
{ |
{ |
41 |
public: |
public: |
42 |
ViewIndividualEvents(MMIIndividualEvents *); |
ViewIndividualEvents(MMIIndividualEvents *); |
43 |
~ViewIndividualEvents(); |
~ViewIndividualEvents(); |
44 |
virtual void load_from_document(); |
virtual void load_from_document(); |
45 |
|
virtual void save_to_document(); |
46 |
private: |
private: |
47 |
MMIIndividualEvents * _mmi_individual_events; |
MMIIndividualEvents * _mmi_individual_events; |
48 |
|
void on_BirthDate_changed(void); |
49 |
|
void on_DeathDate_changed(void); |
50 |
|
void loadEventList(void); |
51 |
|
void getEventsChanges(GEDCOMParser::IndividualEvent const * const event, std::string * const old_value, bool * const event_exists, bool * const eventdetail_exists) const; |
52 |
|
void setEventsChanges(std::string const &new_value, std::string const &old_value, bool event_flag, bool eventdetail_flag, GEDCOMParser::IndividualEvent::enumIndividualEvents event_type); |
53 |
|
bool _during_load; |
54 |
}; |
}; |
55 |
}; |
}; |
56 |
|
|