Development/Tutorials (es)

    From KDE TechBase
    Revision as of 14:59, 10 December 2008 by Mstreet (talk | contribs)


    Development/Tutorials

    noframe
    noframe
    Traducción en curso: solo hasta el punto 6, también está traducido el punto 13 (Plasma)
    Aviso


    Los tutoriales son la forma más rápida de encontrar lo que KDE puede hacer por usted y como hacerlo. Aquí tienes una lista de los tutoriales disponibles actualmente para KDE4. Material para KDE3 y KDE2 está disponible al final de la página.

    Introducción a la programación en KDE4

    Estś interesado en escribir aplicacion en KDE4? Esta serie de tutoriales están dirigidos a personas totalmente novatas en la programación en KDE4.

    Hola Mundo
    Una introducción preliminar a los aspectos básicos de la programación en KDE4.
    Crear la ventana principal
    Este tutorial te muestra la magia de la cosa mas importante en una aplicación: la ventana principal
    Usar KActions
    Como añadir acciones a los menús y a las toolbars.
    Guardar y Abrir
    Introducción a la biblioteca KIO mientras añades soporte para guardar y abrir en tu aplicación.
    Argumentos en la línea de órdenes
    Añade la capacidad de especificar a nuestro editor que archivo abrir desde la línea de ordenes.

    Básicos

    Portar tu aplicación
    Ayuda para portar aplicaciones de Qt3/KDE3 a Qt4/KDE4.
    Introducción a CMake
    Como usar el sistema de construcción CMake usado por KDE4.
    Errores comunes de programación
    Varios errores comunes que se presentan en el desarrollo de aplicaciones Qt y KDE y como evitarlos.
    Usar Qt Designer para diseñar interfaces de usuario
    Como crear archivos UI con el diseñador, y como integrarlos después en un programa KDE.
    Crear bibliotecas para compartir código
    Como añadir la biblioteca al "buildsystem" y como preparar el código fuente.
    How to add the library to the buildsystem and how to prepare the source code.

    Comprobación y depurado

    Depurar tu aplicación
    Consejos, herramientas y técnicas para depurar tu aplicación KDE.
    Escribir "unittests" para Qt4 y KDE4 con QTestLib (enlace original)
    Tutorial de Brad Hards que describe como escribir unittests mediante la framework QTestLib. El tutorial se realiza con un ejemplo, y aun está en desarrollo.
    Maneras semiautomáticas de detectar errores en el código
    Técnicas que puedes usar para detectar errores en el código KDE.

    Gestión de los datos de configuración con KConfig

    Introducción a KConfig
    Una sinopsis de las clases de KConfig y como usarlas en el código de tu aplicación.
    Uso de KConfig XT
    Tutorial sobre como usar eficientemente el framework KConfig XT
    Actualizando archivos con KConfig
    Tutorial sobre como escribir un script de actualización para conservar los cambios de tu archivo de configuración de tu aplicación y sincornizarlo con el archivo de configuración del usuario

    Servicios: Aplicaciones y Plugins

    Introducción al framework de Servicios
    Una visión general del framework de Servicios en KDE y qué proporciona a los desarrolladores de aplicaciones. Trata sobre la cache de configuración del sistema (SyCoCa), los archivos de datos fuente y el uso que puede darse a la información indexada.
    Encontrar Servicios usando consultas con operadores (Trader Queries)
    Como encontrar servicios, como plugins o mimetypes, que están indexados en SyCoCa, usando la sintaxis de preguntas con operadores (Trader Query Syntax).
    Crear y cargar Plugins mediante KService
    Aprende como definir plugins propios, encontrar plugins instalados (incluidos plugins de terceras partes) y cargarlos de forma fácil y portable usando KService.

    Localización

    Véase también el Portal de Localización.

    Introducción a Unicode
    Una introducción a Unicode, así como la forma de manejar datos Unicode en las aplicaciones de KDE.
    Escribir aplicaciones teniendo en cuenta la Localización
    Este tutorial trata sobre que es la localización, por que es importante y como asegurarse de que tu aplicación está lista para ser localizada. Una lectura obligatoria para todos los desarrolladores de aplicaciones.
    Evitar errores comunes en la localización
    Existen algunos errores comunes que impiden que las aplicaciones sean localizadas correctamente. Descubre cuales son y como evitarlos facilmente en este tutorial.
    Construir el modulo de Localización de KDE
    Construir e instalar el soporte de idiomas del módulo de localización de KDE (l10n) es una buena idea para aquellos que están trabajando en aplicaciones del repositorio principal de KDE. Si lo haces, te permitirá probar tu aplicación en otro idioma y tratar los posibles errores. Aprende como llevarlo a cabo en este tutorial.
    Incorporar l18n a la construcción del sistema
    Una vez que tu aplicación está lista para ser localizada, el siguiente paso es asegurarse que los archivos de traducción se construyen automáticamente y que estos estén actualizados. Este tutorial cubre los añadidos necesarios en CMakeLists.txt, así como el proceso de distribuir el catálogo de mensajes resultante junto a tu aplicación.
    Retos comunes en i18n y soluciones
    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.
    Marcado semántico de los mensajes
    Para garantizar una presentación consistente y una representación más significativa de los mensajes en las aplicaciones, el marcado semántico puede aplicarse a los mensajes marcados para la traducción utilizando el sistema KUIT. Este tutorial describe como trabaja este sistema.
    Comprobación automática de código i18n
    El "Krazy code checker" comprueba el código e informa de los errores comunes de i18n.

    Documentación

    API Documentation
    This tutorial explains how to document your APIs properly.
    Man Pages
    Writing and Generating Reference Manual Pages.

    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.
    Hello World
    A first application with working kross code.
    Calling Functions in Kross
    Simple demonstration of calling scripting functions
    Connecting Signals and Slots in Kross
    Simple demonstration of connecting object signals with script slots
    Scripts as Plugins with Kross
    This tutorial provides a step-by-step introduction how to integrate scripts as plugins into a KDE application.
    Load Kross Scripts as KPlugins
    This tutorial provides a step-by-step introduction how to load scripts as KPlugins.
    Placing script actions in your application menus
    Simple demonstration on how to extend you application menus to execute script files.

    KOffice

    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.

    Plugins and KParts

    Writing kontact plugins
    Kontact plugins are KParts. This tutorial describes how you can write one.
    Using KParts
    Learn how to load a KPart into an application window.

    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.
    The Nepomuk Server
    The Nepomuk Server hosts the main Nepomuk data repository and can be accessed directly via a Soprano API.
    Nepomuk Services
    The Nepomuk Server manages a set of Nepomuk services.
    Advanced Queries
    The real power of Nepomuk can only be exposed when performing fancy queries on the data repository. This tutorial provides an introduction to semantic and full text queries in Nepomuk.

    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
    How to compile and use Phonon and its GStreamer backend on Linux using Qt 4.3.x
    This article gives you a quick brief of how you can use checkout, compile Phonon and its GStreamer backend on GNU/Linux with just Qt 4.3.x. Towards the end, the article also describes how a developer can make use of Phonon to create simple audio and video players. You can read the article here. You can download the editable OpenDocumentText file from here.

    Plasma

    Primeros pasos con los Plasmoids
    Crea tu primer widget de Plasma, o Plasmoid, en C++ con un fondo SVG, un icono y algo de texto.
    Escribir DataEngine
    DataEngines proporcionan una interfaz estandarizada para varias fuentes de datos para usarlos en las visualizaciones. Aprende que es un DataEngine y como escribir uno.
    Usar DataEngines en los Plasmoids
    Con un DateEngine, es posible recuperar datos para mostrarlos de una forma simple y estandar. Este tutorial abarca el tema de como usar DataEngines en los Plasmoids.
    Crear Runners
    Los "Runners" son plugins que proporcionan la funcionalidad de busqueda basada en acciones mediante el dialogo "ejecutar orden" en el area de trabajo de Plasma. Estos plugins pueden ser usados por cualquier aplicación que enlace con libplasma.
    Creating a Plasma Theme
    Guía para crear tu primer tema de Plasma.
    Usar Extenders
    Esta guía te muestra como crear un simple applet (destripando el applet kuiserver) que use extenders.

    Communication (Decibel)

    Getting started with Decibel
    This tutorial describes how to set up Decibel.
    Handling TextChannels
    This tutorial introduces the basics of handling incoming TextChannels by guiding you through building a simple text chat application.

    Personal Information Management (Akonadi)

    Developing Akonadi Resources
    Akonadi Resources are agent programs which transport PIM data between Akonadi and a backend (files, servers, etc)

    Kate / Kwrite

    Getting started with KTextEditor plugins
    Creating your first KTextEditor plugin
    Developing a plugin with configuration dialog
    Adding a configuration dialog to the Time & Date example
    A small Editor
    Create a small application using KTextEditor

    Printing

    Hello World
    Introduction to the KDE printing system
    Print Dialog
    Using the KDE print dialog

    Get Hot New Stuff

    New introduction to KGet Hot New Stuff2
    A short tutorial about how to use KHotNewStuff2 in your application.
    • old links for KNS1 content:
    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]>.

    Goya

    Introduction to Goya usage
    An introduction for the Goya subsystem usage, which allows you to easily add widgets to your itemviews and connect their signals to your code, as they were real widgets.
    Introduction to Goya usage (part 2)
    The second part of the tutorial, with a slightly more complex example than the first part.

    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.
    Creating a Plasma Widget in Ruby
    Tutorial that shows how to create your first Plasma Applet using the Ruby language.

    Shell

    Shell Scripting with KDE dialogs (Original Link)
    Tutorial by Brad Hards that describes how to use KDE dialogs in shell scripts with kdialog. It is presented as an example based tutorial.

    Graphics Programming

    QPainter Perfomance
    Hints on avoiding common mistakes leading to poor performance when using QPainter

    Using the KDE Games Libraries

    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
    Palapeli Patterns
    Creating a pattern for Palapeli

    Other tutorials

    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.

    Pixmap cache (KPixmapCache)

    Using the KDE pixmap cache
    This tutorial shows how to use KPixmapCache to cache e.g. pixmaps generated from SVGs or some data.

    Using MarbleWidget (Marble)

    Using MarbleWidget
    This short tutorial describes how to use the MarbleWidget in your project

    Using local SCM for KDE development

    Using Git to develop for KDE
    This tutorial shows how to use Git to develop for KDE

    KDE2 and KDE3 Materials

    KDE3 Tutorials
    These tutorials cover topics related to KDE3.
    KDE2 Tutorials
    These tutorials cover topics related to KDE2.