IDE: refactor loading compiler options for BuildModes. Separate default and other modes.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45623 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: refactor, separate loading project and session default compiler options for BuildModes.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45624 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: refactor loading compiler options for build modes.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45625 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: refactor, separate loading project and session BuildModes.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45626 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: refactor, remove useless variable FLoadParts for loading project.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45627 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: refactor TProject.LoadBuildModes. (is the original logic correct?)

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45628 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: refactor TProject.LoadBuildModes more.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45629 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: refactor, get rid of TProject.LoadBuildModes.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45630 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: TProject.LoadFromSession is never called with prfLoadParts flag, remove test.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45631 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: simplify code for getting package version in compiler options import/export.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45632 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: refactor, remove TProject.SaveBuildModes.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45633 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: refactor TProjectBuildModes.SaveToXMLConfig.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45634 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: refactor TProjectBuildModes.SaveToXMLConfig.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45635 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: refactor TProject.SaveUnits.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45636 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: refactoring and cleanup for load/save BuildModes.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45637 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: Implement import / export for compiler options of all build modes.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45638 4005530d-fff6-0310-9dd1-cebe43e6787f