Created a method addPaintId similar to the addMappingId to reuse some code.
Properly manage the windowModified() calls to let the software know something has changed.
Cosmetic change.