Zhan June 27-July 4
Jump to navigation
Jump to search
- This week I almost paid all my time on coding for using copy constructor to clone widgets. Following is what I have done:
- Continue the work I have done the last week and test the base pawsWidget's copy constructor. Make sure it could correctly create all children widgets using the right widget factory.
- Adding copy constructor for other widget classes in libpaws. And test those copy constructors to ensure they work.
- Solving the problem I met in adding constructor for pawsTree, pawsTreeNode. At first I didn't see clearly the relationship between pawsTree and pawsTreeNode that only one tree node would show in the cloned window. After debuging step by step I figure that the root tree node's children are all added into pawsTree widget but in pawsTreeNode's copy constructor you don't know who is the current tree node's parent tree. The problem was finally solved in pawsTree's copy constructor by recursively loop through the root tree node to add every children into their parent tree.
- Plan for next week
- Finishing copy constructor work and submit patch.
- Finishing the work for chat window improvement.