Das KDevelop-Programmierhandbuch: Leitfaden zur C++-Anwendungsentwicklung für das K Desktop Environment (KDE) mit Hilfe der KDevelop-IDE in der Version 1.2 | ||
---|---|---|
Zurück | Kapitel 14. File System Usage for KDevelop Projects | Vor |
Another issue in creating projects often appears to the programmer if he has or wants to include additional data that have to be installed with the project. You already know where to install it, but what about organizing it in the source tree ?
A good advice here may be to collect all data in directories that more or less match the KDE File System Standard, e.g. your application needs additional toolbar icons. Creating these icons in the main project directory is potentially not a good idea as they will be difficult to locate in the real file viewer and a removal will result in much work for each icon. Therefore, create your icon with "File"- "New" and choose a subdirectory toolbar ; if it doesn't exist, it can be easily created with the "select directory" dialog. Existing icons can be copied and included into the project with "Project"-"Add existing file(s)", where you have to choose the files and the destination. When selecting the destination directory, you can create the toolbar subdirectory first within the selection dialog. After being finished, press OK and the files will be copied as well as included in the project.
As an example, a toolbar icon should go to the following:
$(kde&_;datadir)/&<;appname&>;/toolbar /&<;youricon&>;.xpm
Pictures or additional icons that are not used as toolbar icons should go to a subdirectory pics instead of toolbar .