Saturday, March 16, 2013

Program – Custom Data Model

Up to now only the simple predefined string list model has been used to hold the program.  The next task was to start the implementation of a custom data model that will eventually hold the program code that will be run.  To get he program model started, it will just hold a list of strings representing the lines of the program.

The new ProgramModel class is based on the QAbstractListModel as it only needs to hold a list of program lines.  This will be changed as needed since the program model will eventually need to be able to hold multiple lists of program lines, one for the main routine and several for the subroutines and functions of the program.

Now that the initial program model has been implemented (click Continue... for details), using the program view, all the various edit change operations and scenarios will now be tested to make sure all the possible changes are covered and working properly.  This is necessary to make sure the edit box keeps the program model properly informed of program changes.  Then the process of connecting to the parser and translator will begin.

[commit b543f74b6d]