Development/Tutorials (fr): Difference between revisions
Fatalerrors (talk | contribs) No edit summary |
No edit summary |
||
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
Les tutoriels sont la méthode la plus rapide pour découvrir ce que KDE peut faire pour vous, et comment mettre en place ces solutions. Vous trouverez ici la liste des tutoriels disponibles pour '''KDE4'''. Les tutoriels pour KDE3 et KDE2 sont disponibles en bas de cette page. | |||
;[[/KDE4 | == Débuter == | ||
:'' | ;[[Development/Tutorials/Programming Tutorial KDE 4|Introduction à la programmation sous KDE4]] | ||
:''Si vous êtes intéressé(e) par la possibilité de créer des applications avec KDE4 et que vous ne savez pas comment faire, cette série de tutoriels est faite pour vous.'' | |||
;[[/ | ;[[Development/Tutorials/KDE4 Porting Guide|Porter votre application]] | ||
:'' | :''Aide pour faire passer votre application de Qt3/KDE3 à Qt4/KDE4'' | ||
;[[/ | ;[[Development/Tutorials/CMake|Introduction à CMake]] | ||
:'' | :''Comment utiliser le système CMake sous KDE4.'' | ||
;[[/ | ;[[Development/Tutorials/Common Programming Mistakes|Erreurs courantes de programmation]] | ||
:'' | :''Il existe des erreurs courantes lors du dévelopement d'applications Qt et KDE ; apprenez à les éviter.'' | ||
;[[/ | ;[[Development/Tutorials/Using Qt Designer|Utiliser Qt Designer pour créer un GUI (interface utilisateur)]] | ||
:'' | :''Comment créer des fichiers UI avec Qt Design, et comment les intégrer à un programme KDE.'' | ||
== | == Tester et déboguer == | ||
;[[/Debugging| | ;[[Development/Tutorials/Debugging|Déboguer votre application]] | ||
:'' | :''Conseils, outils, et techniques à utiliser pour déboguer votre application KDE.'' | ||
;[[Development/Tutorials/Unittests| | ;[[Development/Tutorials/Unittests|Ecrire des tests unitaires pour Qt4 et KDE4 avec QTestLib]] ([http://developer.kde.org/documentation/tutorials/writingunittests/writingunittests.html Lien original]) | ||
:'' | :''Tutoriel par [mailto:[email protected] Brad Hards] qui explique comment écrire des tests unitaires en utilisant le framework QTestLib. Il se présente comme un tutoriel basé sur un exemple, et est encore en cours de développement.'' | ||
;[[/Code_Checking| | ;[[Development/Tutorials/Code_Checking|Méthodes semi-automatiques pour trouver des erreurs dans le code]] | ||
:''Techniques | :''Techniques que vous pouvez utiliser pour trouver des erreurs dans du code KDE'' | ||
== | == Gérer les données de configuration avec KConfig == | ||
;[[/KConfig|Introduction | ;[[Development/Tutorials/KConfig|Introduction à KConfig]] | ||
:'' | :''Un aperçu des classes de KConfig et de comment les utiliser dans le code de votre application'' | ||
;[[/Using KConfig XT| | ;[[Development/Tutorials/Using KConfig XT|Utiliser KConfig XT]] | ||
:'' | :''Tutoriel sur l'utilisation efficace du framework KConfig XT.'' | ||
== | == Localisation == | ||
;[[/Localization/Unicode|Introduction | ;[[Development/Tutorials/Localization/Unicode|Introduction à l'Unicode]] | ||
:'' | :''Une introduction à ce qu'est l'Unicode et comment le gérer dans les applications KDE.'' | ||
; [[/Localization/i18n| | ; [[Development/Tutorials/Localization/i18n|Ecrire des applications localisables]] | ||
:'' | :''Ce tutoriel explique ce qu'est la localisation, pourquoi elle est importante, et comment s'assurer que votre application est prête à être localisée. Une obligation de lecture pour tout développeur d'application.'' | ||
; [[/Localization/i18n Mistakes| | ; [[Development/Tutorials/Localization/i18n Mistakes|Eviter les erreurs courantes relatives à la localisation]] | ||
:'' | :''Il existe des erreurs courantes de programmation qui empêchent une application d'être correctement localisée. Apprenez comment les éviter facilement.'' | ||
; [[/Localization/Building KDE's l10n Module| | ; [[Development/Tutorials/Localization/Building KDE's l10n Module|Créer un module de localisation pour KDE]] | ||
:'' | :''Créer et installer le support d'un langage pour le module de localisation de KDE (l10n) est une bonne idée pour les applications se trouvant dans le dépôt principal de KDE. Ceci vous permettra de tester votre application dans d'autres langues et de trouver les problèmes. Apprenez à faire ceci en lisant ce tutoriel.'' | ||
; [[/Localization/i18n Build Systems| | ; [[Development/Tutorials/Localization/i18n Build Systems|Insérer i18n dans le système de build]] | ||
:'' | :''Une fois que votre application est prête à être localisée, l'étape suivante est de s'assurer que les fichiers de traduction sont créés automatiquement et qu'ils sont à jour. Ce tutoriel explique les modifications nécessaires de CMakeFile.txt et le processus de distribution des catalogues de messages avec votre application.'' | ||
; [[/Localization/i18n Challenges|Common i18n Challenges and Solutions]] | ; [[Development/Tutorials/Localization/i18n Challenges|Common i18n Challenges and Solutions]] | ||
:''This tutorial covers challenges that you may eventually run into such as translating handbooks and other data that exists outside of the source code, merging and handling obsolete .po files, dealing with freezes, coding in languages other than English and creating independent releases of or moving applications between KDE modules.'' | :''This tutorial covers challenges that you may eventually run into such as translating handbooks and other data that exists outside of the source code, merging and handling obsolete .po files, dealing with freezes, coding in languages other than English and creating independent releases of or moving applications between KDE modules.'' | ||
; [[Development/Tutorials/Localization/i18n Krazy|Automated i18n Code Checking]] | |||
:''The Krazy code checker scans KDE's code and reports common i18n mistakes.'' | |||
== Documentation == | == Documentation == | ||
Line 66: | Line 66: | ||
=== D-Bus === | === D-Bus === | ||
; [[/D-Bus/Introduction|Introduction to D-Bus]] | ; [[Development/Tutorials/D-Bus/Introduction|Introduction to D-Bus]] | ||
:''A straight-forward introduction to the core concepts in D-Bus from an application developer's perspective, this tutorial covers what D-Bus is and how it can be used by applications.'' | :''A straight-forward introduction to the core concepts in D-Bus from an application developer's perspective, this tutorial covers what D-Bus is and how it can be used by applications.'' | ||
; [[/D-Bus/Accessing Interfaces|Accessing D-Bus Interfaces]] | ; [[Development/Tutorials/D-Bus/Accessing Interfaces|Accessing D-Bus Interfaces]] | ||
:''A step-by-step guide to calling D-Bus methods and connecting to D-Bus signals using QtDBus.'' | :''A step-by-step guide to calling D-Bus methods and connecting to D-Bus signals using QtDBus.'' | ||
; [[/D-Bus/Intermediate_D-Bus|Intermediate D-Bus]] | ; [[Development/Tutorials/D-Bus/Intermediate_D-Bus|Intermediate D-Bus]] | ||
:''Tips to make use of QtDBus when faced with problematic real-world interfaces.'' | :''Tips to make use of QtDBus when faced with problematic real-world interfaces.'' | ||
; [[/D-Bus/Creating Interfaces|Creating D-Bus Interfaces]] | ; [[Development/Tutorials/D-Bus/Creating Interfaces|Creating D-Bus Interfaces]] | ||
:''Learn how to expose functionality in your application by creating and using custom D-Bus interfaces. Covers generating the XML descriptions, instantiating interfaces at run time and setting up the build system with CMake.'' | :''Learn how to expose functionality in your application by creating and using custom D-Bus interfaces. Covers generating the XML descriptions, instantiating interfaces at run time and setting up the build system with CMake.'' | ||
; [[/D-Bus/Autostart Services|D-Bus Autostart Services]] | ; [[Development/Tutorials/D-Bus/Autostart Services|D-Bus Autostart Services]] | ||
:''Turn your application into a D-Bus autostart service with this tutorial. This D-Bus feature, also known as "D-Bus service activation", will ensure that even when your application isn't running that D-Bus calls made to it will work by relying on the D-Bus daemon itself to start your app if and when needed.'' | :''Turn your application into a D-Bus autostart service with this tutorial. This D-Bus feature, also known as "D-Bus service activation", will ensure that even when your application isn't running that D-Bus calls made to it will work by relying on the D-Bus daemon itself to start your app if and when needed.'' | ||
; [[/Porting_to_D-Bus|Porting from DCOP to D-Bus]] | ; [[Development/Tutorials/Porting_to_D-Bus|Porting from DCOP to D-Bus]] | ||
: ''Port your applications from DCOP to D-Bus with this handy guide.'' | : ''Port your applications from DCOP to D-Bus with this handy guide.'' | ||
=== Konqueror === | === Konqueror === | ||
; [[/Creating Konqueror Service Menus|Creating Konqueror Service Menus]] | ; [[Development/Tutorials/Creating Konqueror Service Menus|Creating Konqueror Service Menus]] | ||
:''This tutorial shows you how to create mimetype-specific actions in Konqueror's context menu (aka "servicemenus").'' | :''This tutorial shows you how to create mimetype-specific actions in Konqueror's context menu (aka "servicemenus").'' | ||
Line 89: | Line 89: | ||
; [[Development/Tutorials/Kross/Scripts-as-Plugins|Scripts as Plugins with Kross]] | ; [[Development/Tutorials/Kross/Scripts-as-Plugins|Scripts as Plugins with Kross]] | ||
:''This tutorial provides a step-by-step introduction how to integrate scripts as plugins into a KDE application.'' | :''This tutorial provides a step-by-step introduction how to integrate scripts as plugins into a KDE application.'' | ||
=== KOffice === | === KOffice === | ||
Line 117: | Line 114: | ||
=== Strigi === | === Strigi === | ||
; [[/Writing file analyzers|Writing file analyzers]] | ; [[Development/Tutorials/Writing file analyzers|Writing file analyzers]] | ||
:''File analyzers extract data from files to display in the file dialogs and file managers. The data gathered this way is also used to search for files. KDE4 allows the use of multiple analyzers per file type. This tutorial describes how you can write new analyzers.'' | :''File analyzers extract data from files to display in the file dialogs and file managers. The data gathered this way is also used to search for files. KDE4 allows the use of multiple analyzers per file type. This tutorial describes how you can write new analyzers.'' | ||
=== Nepomuk === | === [http://nepomuk.kde.org Nepomuk] === | ||
; [[Development/Tutorials/Metadata/Nepomuk/Quickstart|Nepomuk Quickstart]] | |||
:''How to use Nepomuk resources in a quick and painless way without much fuss.'' | |||
; [[Development/Tutorials/Metadata/Nepomuk/RDFIntroduction|RDF and Ontologies in Nepomuk]] | |||
:''An introduction to RDF and the usage of ontologies in Nepomuk.'' | |||
; [[Development/Tutorials/Metadata/Nepomuk/Resources|Handling Resources with Nepomuk]] | |||
:''Nepomuk is the KDE library which provides easy access to metadata in the Nepomuk system. Learn how to make your application create and read metadata using the Nepomuk system.'' | |||
; [[/Metadata/ | ; [[Development/Tutorials/Metadata/Nepomuk/ResourceGenerator|Using the Nepomuk Resource Generator]] | ||
:''Nepomuk | :''Nepomuk includes a resource generator which creates convenience classes for handling metadata.'' | ||
== Hardware Awareness (Solid) == | == Hardware Awareness (Solid) == | ||
;[[/Solid_Tutorials|Introduction to Solid]] | ;[[Development/Tutorials/Solid_Tutorials|Introduction to Solid]] | ||
:''An introduction to using the Solid hardware discovery and interaction system in KDE applications.'' | :''An introduction to using the Solid hardware discovery and interaction system in KDE applications.'' | ||
;[[/Solid_Network_Tutorial|Accessing Network Information]] | ;[[Development/Tutorials/Solid_Network_Tutorial|Accessing Network Information]] | ||
:''How to use the Solid system to get information about the network'' | :''How to use the Solid system to get information about the network'' | ||
== Multimedia (Phonon) == | == Multimedia (Phonon) == | ||
;[[/Phonon/Introduction|Phonon]] | ;[[Development/Tutorials/Phonon/Introduction|Phonon]] | ||
:''How to start with the multimedia API'' | :''How to start with the multimedia API'' | ||
==Printing== | ==Printing== | ||
;[[/Printing Hello World|Hello World]] | ;[[Development/Tutorials/Printing Hello World|Hello World]] | ||
:''Introduction to the KDE printing system'' | :''Introduction to the KDE printing system'' | ||
Line 176: | Line 182: | ||
=== Using the KDE Games Library === | === Using the KDE Games Library === | ||
;[[/Games/KStandardGameAction| KStandardGameAction]] | ;[[Development/Tutorials/Games/KStandardGameAction| KStandardGameAction]] | ||
:''Using libkdegames to make your game fit the kdegames standard'' | :''Using libkdegames to make your game fit the kdegames standard'' | ||
;[[/Games/Highscores| Highscores]] | ;[[Development/Tutorials/Games/Highscores| Highscores]] | ||
:''Implementing a simple highscore table into your game'' | :''Implementing a simple highscore table into your game'' | ||
;[[/Games/Theme Selector| Theme Selector]] | ;[[Development/Tutorials/Games/Theme Selector|Theme Selector]] | ||
:''Using the libkdegames theme selection dialog'' | :''Using the libkdegames theme selection dialog'' | ||
=== 2D Plotting (KPlotWidget) === | === 2D Plotting (KPlotWidget) === | ||
;[[/KPlotWidget|Using the KDE data-plotting widget]] | ;[[Development/Tutorials/KPlotWidget|Using the KDE data-plotting widget]] | ||
:''This tutorial introduces KPlotWidget, which is used for 2-D data plotting. It includes information on simple usage of the widget (including adding and modifying data sets, and customizing the plot axes and labels), and advanced customization (including extending the widget through sub-classing).'' | :''This tutorial introduces KPlotWidget, which is used for 2-D data plotting. It includes information on simple usage of the widget (including adding and modifying data sets, and customizing the plot axes and labels), and advanced customization (including extending the widget through sub-classing).'' | ||
=== Spelling and Grammar Checking (Sonnet) === | === Spelling and Grammar Checking (Sonnet) === | ||
;[[/Sonnet/SonnetTutorial|Adding spell-checking or grammar-checking to KDE applications]] | ;[[Development/Tutorials/Sonnet/SonnetTutorial|Adding spell-checking or grammar-checking to KDE applications]] | ||
:''This tutorial introduces Sonnet and how one may use it to add language correction to your KDE application. Sonnet's auxiliary features shall be described in a separate tutorial.'' | :''This tutorial introduces Sonnet and how one may use it to add language correction to your KDE application. Sonnet's auxiliary features shall be described in a separate tutorial.'' | ||
Latest revision as of 08:58, 14 July 2012
Les tutoriels sont la méthode la plus rapide pour découvrir ce que KDE peut faire pour vous, et comment mettre en place ces solutions. Vous trouverez ici la liste des tutoriels disponibles pour KDE4. Les tutoriels pour KDE3 et KDE2 sont disponibles en bas de cette page.
Débuter
- Introduction à la programmation sous KDE4
- Si vous êtes intéressé(e) par la possibilité de créer des applications avec KDE4 et que vous ne savez pas comment faire, cette série de tutoriels est faite pour vous.
- Porter votre application
- Aide pour faire passer votre application de Qt3/KDE3 à Qt4/KDE4
- Introduction à CMake
- Comment utiliser le système CMake sous KDE4.
- Erreurs courantes de programmation
- Il existe des erreurs courantes lors du dévelopement d'applications Qt et KDE ; apprenez à les éviter.
- Utiliser Qt Designer pour créer un GUI (interface utilisateur)
- Comment créer des fichiers UI avec Qt Design, et comment les intégrer à un programme KDE.
Tester et déboguer
- Déboguer votre application
- Conseils, outils, et techniques à utiliser pour déboguer votre application KDE.
- Ecrire des tests unitaires pour Qt4 et KDE4 avec QTestLib (Lien original)
- Tutoriel par Brad Hards qui explique comment écrire des tests unitaires en utilisant le framework QTestLib. Il se présente comme un tutoriel basé sur un exemple, et est encore en cours de développement.
- Méthodes semi-automatiques pour trouver des erreurs dans le code
- Techniques que vous pouvez utiliser pour trouver des erreurs dans du code KDE
Gérer les données de configuration avec KConfig
- Introduction à KConfig
- Un aperçu des classes de KConfig et de comment les utiliser dans le code de votre application
- Utiliser KConfig XT
- Tutoriel sur l'utilisation efficace du framework KConfig XT.
Localisation
- Introduction à l'Unicode
- Une introduction à ce qu'est l'Unicode et comment le gérer dans les applications KDE.
- Ecrire des applications localisables
- Ce tutoriel explique ce qu'est la localisation, pourquoi elle est importante, et comment s'assurer que votre application est prête à être localisée. Une obligation de lecture pour tout développeur d'application.
- Eviter les erreurs courantes relatives à la localisation
- Il existe des erreurs courantes de programmation qui empêchent une application d'être correctement localisée. Apprenez comment les éviter facilement.
- Créer un module de localisation pour KDE
- Créer et installer le support d'un langage pour le module de localisation de KDE (l10n) est une bonne idée pour les applications se trouvant dans le dépôt principal de KDE. Ceci vous permettra de tester votre application dans d'autres langues et de trouver les problèmes. Apprenez à faire ceci en lisant ce tutoriel.
- Insérer i18n dans le système de build
- Une fois que votre application est prête à être localisée, l'étape suivante est de s'assurer que les fichiers de traduction sont créés automatiquement et qu'ils sont à jour. Ce tutoriel explique les modifications nécessaires de CMakeFile.txt et le processus de distribution des catalogues de messages avec votre application.
- Common i18n Challenges and Solutions
- This tutorial covers challenges that you may eventually run into such as translating handbooks and other data that exists outside of the source code, merging and handling obsolete .po files, dealing with freezes, coding in languages other than English and creating independent releases of or moving applications between KDE modules.
- Automated i18n Code Checking
- The Krazy code checker scans KDE's code and reports common i18n mistakes.
Documentation
- API Documentation
- This tutorial explains how to document your APIs properly.
Application Automation and Scripting
D-Bus
- Introduction to D-Bus
- A straight-forward introduction to the core concepts in D-Bus from an application developer's perspective, this tutorial covers what D-Bus is and how it can be used by applications.
- Accessing D-Bus Interfaces
- A step-by-step guide to calling D-Bus methods and connecting to D-Bus signals using QtDBus.
- Intermediate D-Bus
- Tips to make use of QtDBus when faced with problematic real-world interfaces.
- Creating D-Bus Interfaces
- Learn how to expose functionality in your application by creating and using custom D-Bus interfaces. Covers generating the XML descriptions, instantiating interfaces at run time and setting up the build system with CMake.
- D-Bus Autostart Services
- Turn your application into a D-Bus autostart service with this tutorial. This D-Bus feature, also known as "D-Bus service activation", will ensure that even when your application isn't running that D-Bus calls made to it will work by relying on the D-Bus daemon itself to start your app if and when needed.
- Porting from DCOP to D-Bus
- Port your applications from DCOP to D-Bus with this handy guide.
Konqueror
- Creating Konqueror Service Menus
- This tutorial shows you how to create mimetype-specific actions in Konqueror's context menu (aka "servicemenus").
Kross
- Introduction to Kross
- An introduction to the Kross Scripting Framework.
- Scripts as Plugins with Kross
- This tutorial provides a step-by-step introduction how to integrate scripts as plugins into a KDE application.
KOffice
- Development/Tutorials/KOffice Overview
- This document shows an overview of the different KOffice plugin types and tells you what each of their purpose and strengths are. If you are new with KOffice plugins, this is the place to start.
- Creating KOffice Flake Plugins
- This tutorial shows you how you can build a plugin for KOffice applications to allow you embed content in ODF documents using Flake.
- KWord Scripting
- This tutorial shows how to script KWord with Python, Ruby or JavaScript using Kross.
- KSpread Scripting
- This tutorial shows how to script KSpread with Python, Ruby or JavaScript using Kross.
- Krita Scripting
- This tutorial shows how to script Krita with Python, Ruby or JavaScript using Kross.
SuperKaramba
- SuperKaramba Tutorial
- This tutorial provides an overview of SuperKaramba, theme files and scripting with Python, Ruby and JavaScript.
Search and Metadata
Strigi
- Writing file analyzers
- File analyzers extract data from files to display in the file dialogs and file managers. The data gathered this way is also used to search for files. KDE4 allows the use of multiple analyzers per file type. This tutorial describes how you can write new analyzers.
Nepomuk
- Nepomuk Quickstart
- How to use Nepomuk resources in a quick and painless way without much fuss.
- RDF and Ontologies in Nepomuk
- An introduction to RDF and the usage of ontologies in Nepomuk.
- Handling Resources with Nepomuk
- Nepomuk is the KDE library which provides easy access to metadata in the Nepomuk system. Learn how to make your application create and read metadata using the Nepomuk system.
- Using the Nepomuk Resource Generator
- Nepomuk includes a resource generator which creates convenience classes for handling metadata.
Hardware Awareness (Solid)
- Introduction to Solid
- An introduction to using the Solid hardware discovery and interaction system in KDE applications.
- Accessing Network Information
- How to use the Solid system to get information about the network
Multimedia (Phonon)
- Phonon
- How to start with the multimedia API
Printing
- Hello World
- Introduction to the KDE printing system
- TODO Print Dialog
- Using the KDE print dialog
Get Hot New Stuff
- Introduction to Get Hot New Stuff
- An introduction to the developer-friendly network update system that allows KDE applications to fetch new application data at runtime in a user friendly manner.
- KNewStuff Secure (Original Link)
- Tutorial showing how to share resources in a secured way (KDE 3.4 and later). By András Mantia <[email protected]>.
Rapid Application Development
Python
- 101 Introduction to signals and slots
- A simple introduction to Qt's signal and slot architecture.
Ruby
- KDE Ruby Korundum tutorial
- A ruby version of Antonio Larrosa Jiménez's KDE tutorial by Richard Dale. See the Ruby Developers Corner for Qt tutorials and other info.
- Qt4 Ruby Tutorial
- Trolltech's fabulous introductory tutorial to Qt, translated to Ruby.
Shell
- Shell Scripting with KDE dialogs (Original Link) (German version)
- Tutorial by Brad Hards that describes how to use KDE dialogs in shell scripts with kdialog. It is presented as an example based tutorial.
Other tutorials
Using the KDE Games Library
- KStandardGameAction
- Using libkdegames to make your game fit the kdegames standard
- Highscores
- Implementing a simple highscore table into your game
- Theme Selector
- Using the libkdegames theme selection dialog
2D Plotting (KPlotWidget)
- Using the KDE data-plotting widget
- This tutorial introduces KPlotWidget, which is used for 2-D data plotting. It includes information on simple usage of the widget (including adding and modifying data sets, and customizing the plot axes and labels), and advanced customization (including extending the widget through sub-classing).
Spelling and Grammar Checking (Sonnet)
- Adding spell-checking or grammar-checking to KDE applications
- This tutorial introduces Sonnet and how one may use it to add language correction to your KDE application. Sonnet's auxiliary features shall be described in a separate tutorial.
KDE2 and KDE3 Materials
- KDE3 Tutorials
- These tutorials cover topics related to KDE3.
- KDE2 Tutorials
- These tutorials cover topics related to KDE2.