Last bits of styles editor: Port to C++: Done