Zhan June 20-26

From PSwiki
Jump to navigation Jump to search

20-26 June

  • Monday
    • Add copy constructor to the base pawsWidget class to copy all the base attributes of widgets and do the same thing to widget’s children. When compiling, a lot of unexpected errors came. Many classes derived from pawsWidget could not correctly compile because of the new copy constructor in pawsWidget. I traced all the errors and fixed them to make the project correctly compiled finally.
  • Tuesday
    • In order to clone a window, the base widgets in libpaws should all be added copy constructors. I tried to do this to the text box widgets and buttons and multiline text box. And then tested clone the chat window by using copy constructor. But there was just a semitransparent background with the same size as the chat window to display on screen. If I tried to move the “window”, the client crashed.
  • Wednesday
    • Debug in the copy constructor step by step to see what is wrong while cloning chat window. Finally I found that the base copy constructor called in any derived class’s copy constructor is actually called but with no change on the base widget’s attributes. The cloned window was actually constructed and all its children widgets were created but no children widgets would be displayed. At last, the problem got solved by calling the base copy constructor in derived classes’ copy constructor’s initialization list. In this way, the base copy constructor worked finally.
  • Thursday
    • Discuss some issues about the copy constructor with weltall and show him the current work I had done.
    • Continue adding other copy constructor to classes in libpaws and test them.
  • Friday
    • Continue adding other copy constructor to classes in libpaws and test them.
  • Plan for next week
    • Tasks for this week are not totally finished. Works should be finished next week.
    • Start to design using RTT rendering widgets.