color
This commit is contained in:
@@ -340,7 +340,7 @@ void Tree::removePerson(const unsigned id)
|
||||
--numPeople;
|
||||
}
|
||||
|
||||
void Tree::removePerson(const char* personName, const short year, const unsigned char month, const unsigned char day)
|
||||
void Tree::removePerson(const char* personName, short year, unsigned char month, unsigned char day)
|
||||
{
|
||||
removePerson(findId(personName, year, month, day));
|
||||
}
|
||||
@@ -371,38 +371,24 @@ void Tree::draw(person_id focused) const
|
||||
{
|
||||
erase(); //Clear the screen
|
||||
wnoutrefresh(stdscr);
|
||||
/* WINDOW* father = people[0].createPad(); */
|
||||
/* WINDOW* mother = people[1].createPad(); */
|
||||
|
||||
/* U16 fw = getmaxx(father); /\* return size, not coords *\/ */
|
||||
/* U16 fh = getmaxy(father); */
|
||||
/* U16 mw = getmaxx(mother); */
|
||||
/* U16 mh = getmaxy(mother); */
|
||||
|
||||
/* U16 drawX = (COLS - fw - mw) / 2; */
|
||||
/* pnoutrefresh(father, 0, 0, */
|
||||
/* 1, drawX, */
|
||||
/* 1 +fh-1, drawX + fw-1); */
|
||||
|
||||
/* const U32 numPpl = people.gNum(); */
|
||||
/* std::vector<bool> drawn(numPpl, false); */
|
||||
|
||||
U16 drawY = 0/* (LINES) / 2 */;
|
||||
U16 drawX = 0/* (COLS) / 2 */;
|
||||
drawLineWithWives(focused, drawY, drawX);
|
||||
/* people[0].draw(drawY, drawY); */
|
||||
/* for(U32 i=0; i<relations[0].gNum(); ++i) */
|
||||
/* { */
|
||||
/* if(relations[0][i] == RelType::Son) */
|
||||
/* { */
|
||||
/* drawX = drawLineRec(i, drawY, drawX) + 2; */
|
||||
/* } */
|
||||
/* } */
|
||||
|
||||
/* pnoutrefresh(mother, 0, 0, 1, d */
|
||||
|
||||
doupdate();
|
||||
getch();
|
||||
|
||||
char c;
|
||||
do
|
||||
{
|
||||
c = std::tolower(getch());
|
||||
|
||||
switch(c)
|
||||
{
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
while(c != 'w');
|
||||
}
|
||||
|
||||
void Tree::print() const
|
||||
|
||||
Reference in New Issue
Block a user