To change KDevelop's code please read the API documentation generated by doxygen at:

http://www.kdevelop.org/

or generate it yourself:

make apidox  ( the generated documentation will be at apidocs/html )

or read *.dox files in the doc/api/ directory.
