In today’s lab you will make a tiny phone book application. I’ve given you some starter code, but you still have a ways to go.
You know the drill.
Except this time, we’ve given you a couple of simple
.gitignores. Just make sure to keep your repositories clean!
You will lose points…
.gitignores we gave you1.
maketo build the project.
newNumberneeds a signal that it can use to send new phone number information to
newNumber::addPress()to send a signal to
PhoneBookwith a number to add.
PhoneBookneeds to connect
newNumber’s signal to a new slot.
PhoneBook::entrieskeeps track of all the
Entrywidgets, so all new
Entrywidgets you create need to be added to it.
Entrywidgets also need to be added to
PhoneBook::layout, so that they actually show up on screen.
At this point, you should stop and make sure that your code properly displays new phone numbers in the UI whenever you click the ‘Add’ button.
Now that you can add entries to your phone book, let’s add features, so that the user is able to save and open a phone book.
serialize()converts all the
Entrys to a string that can be then written to a text file.
deserialize()should read data from a string and convert it back into a bunch of
Entrys into a string; save the string to a file; load the string from a file; and deserialize the string back into a bunch of
You will be graded on:
.gitignoreand absence of junk files.
TODOcomments must be addressed
TODOcomment is insufficient…
As always, your git repo on http://git-classes.mst.edu is your submission. Don’t forget to commit and push all relevant files. Make sure you see everything you expect on GitLab!
We expect to see the following files on your master branch:
Whyyyy would you do that? ↩