Those are compressed directories with a description file and any number of content files. When starting a new project, the files are extracted and placeholders replaced with user-specified values. Creating the directory structure We will start with an empty directory. The description file Every project template needs a description file.
|Published (Last):||23 April 2008|
|PDF File Size:||19.36 Mb|
|ePub File Size:||1.38 Mb|
|Price:||Free* [*Free Regsitration Required]|
Those are compressed directories with a description file and any number of content files. When starting a new project, the files are extracted and placeholders replaced with user-specified values.
Creating the directory structure We will start with an empty directory. The description file Every project template needs a description file. It is a regular desktop file, but with an extension of. However, using it would create an empty project, as we still need to add files to the template. Template content files We must decide what kind of project do we want to create. For the needs of the tutorial, we will keep it simple and restrict ourselves to four files: Header and implementation for a class, a main.
It is also recommended to add a. Class header file As explained in the [ variables ] section, KDevelop will replace certain placeholders with suitable values. We will use some of these placeholders now. The placeholders are replaced in both file names and contents. In this tutorial, we will create a class with the same name as the application itself, and use the convention of lowercase file names.
The header file contents can also include placeholders. The main. The CMakeLists. Because of this difference we can use both in the same file. The project file Including a project file is necessary for KDevelop to initialize a version control system for the new project. Installing the template Now we have all the template contents prepared. We only need to compress the directory and make it available to KDevelop. There are three ways for doing that: compressing and loading it manually loading it from within KDevelop using a CMake macro.
Many archive formats are accepted, but for best compatibility use. Now copy the new archive somewhere where KDevelop will find it. Copying our template to either is fine, choose dependeng on whether you want the template available only to you or all users on your computer. After a run of kbuildsycoca4, KDevelop should pick up and offer you new template when creating a new project.
This has the disadvantage of requiring a large library for installing a simple archive file, but may be useful especially for project that already depend on it. Alternatively, you may copy KDevPlatformMacros. Then add the following CMakeLists.
It is an attempt to bring a Windows style programming manual to Linux, following the Windows philosophy that the programmer does not need to know everything about the operating system in order to be able to program on it. Therefore if you can access a version of KDE 3. This should however, only occur during setup instructions and not within any of the code discussions This project does not go into detail about the KDE Source though some references are obviously made as we are using the KDE libraries for our development but it will hopefully provide a reasonable starting point for people who wish to contribute to the KDE Project at a later date. Finally this project aims to be a good starting point for people who wish to write their own applications that run as either as their own projects or as a part of the KDE environment. This article is a updated version of Chapter 5. As openSuse
KDEVELOP TUTORIAL PDF
Die Besonderheit von der integrierten Entwicklungsumgebung IDE KDevelop liegt darin, dass man ziemlich einfach ein ganzes Softwareprojekt erstellen kann. Falls diese Programme nicht automatisch von der Paketverwaltung installiert werden, sollte man das noch nachholen. Eine Liste mit allen Anforderungen von KDevelop 3. Davon sollte man sich aber nicht verwirren lassen. Nach dem Anklicken erscheint eine Baumstruktur mit Links zu den einzelnen Dokumenten. Dazu braucht man nicht einmal Kenntnisse in der Programmiersprache.
Beginning KDevelop Programming Version 3.x
The Absolute Beginner's Guide to Kdevelop