IDE: open a build mode selection dialog for adding paths only if there are > 1 build modes.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45263 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: remove unneeded search paths from all build modes.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45264 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: refactor, move 3 methods from MainIDE to SourceFileManager.

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

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45266 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: refactor, move 3 more methods from MainIDE to SourceFileManager.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45267 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: remove unneeded unit names from MainIDE uses section. (Units with an initialization section were not removed)

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45268 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: Move method PublishModule to SourceFileManager.

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

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