add config.h and cleanup

This commit is contained in:
vrd
2023-03-06 22:26:31 +02:00
parent 9ef74b8283
commit 35d9d44aa6
10 changed files with 84 additions and 288 deletions
+1 -4
View File
@@ -58,9 +58,6 @@ public:
std::vector<person_id> findChildren(person_id person) const;
std::vector<person_id> findChildren(person_id person, person_id exclude) const;
void saveToFile()const;//
bool loadFromFile();
void addPerson(const char* name, Sex sex, person_id father=Nobody, person_id mother=Nobody, EventTime birth={}, EventTime death={});
bool addRelation(const char* firstName, RelType, const char* secondName); //Adds a new relation or edits an old one. 0 - failure 1 - success
bool addRelation(person_id first, RelType, person_id second, bool update=true); //0 - failure 1 - success
@@ -70,6 +67,7 @@ public:
void removeRelation(person_id first, person_id second);
void removeRelation(const char* firstName, const char* secondName);
/* display the tree and wait process key input */
void display();
void print()const;
@@ -88,7 +86,6 @@ private:
void draw() const;
/* draw a line of people starting from person with id
return the farthest X that will be drawn */
I16 drawLine(person_id, I16 drawY, I16 drawX) const;
I16 drawLineWithWives(person_id, I16 drawY, I16 drawX) const;
void selectLeft();