Development/Tutorials (it): Difference between revisions

    From KDE TechBase
    No edit summary
    No edit summary
    Line 106: Line 106:


    === D-Bus ===
    === D-Bus ===
    ; [[Development/Tutorials/D-Bus/Introduction|Introduction to D-Bus]]
    ; [[Development/Tutorials/D-Bus/Introduction|Introduzione a 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.''
    :''Una introduzione ai concetti chiave di D-Bus dalla prospettiva dello sviluppatore, questo tutorial mostra cos'e' DBus e come puo' essere usato dalle applicazioni.''
    ; [[Development/Tutorials/D-Bus/Accessing Interfaces|Accessing D-Bus Interfaces]]
    ; [[Development/Tutorials/D-Bus/Accessing Interfaces|Accesso alle interfacce di D-Bus]]
    :''A step-by-step guide to calling D-Bus methods and connecting to D-Bus signals using QtDBus.''
    :''Una guida passo-passo per chiamare i metodi di D-Bus e connettere i segnali di D-Bus tramite QtDBus.''
    ; [[Development/Tutorials/D-Bus/Intermediate_D-Bus|Intermediate D-Bus]]
    ; [[Development/Tutorials/D-Bus/Intermediate_D-Bus|D-Bus Intermedio]]
    :''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.''
    ; [[Development/Tutorials/D-Bus/Creating Interfaces|Creating D-Bus Interfaces]]
    ; [[Development/Tutorials/D-Bus/Creating Interfaces|Creating D-Bus Interfaces]]

    Revision as of 16:44, 19 May 2008


    Development/Tutorials


    I Tutorials sono la via piu' veloce di comprendere cosa KDE fa per te, e come lo fa. Qui c'e' una lista dei tutorial disponibilie per KDE4. Materiale per KDE3 e KDE2 e' disponibile in fondo alla pagina.

    Introduzione alla programmazione di KDE 4

    Sei interessato a scrivere applicazioni con KDE 4? Questa serie di tutorial e' mirata a questo completamente nuovo modo di programmare KDE.

    Hello World
    Un'introduzione preliminare alle basi della programmazione KDE4
    Creazione della finestra principale (Main Window)
    Questo tutorial ti mostra la magia di un aspetto molto importante di un'applicazione: La finestra principale (main window).
    Usare le KActions
    Come aggiungere eventi ai menu e alle toolbar.
    Salvataggio e Caricamento
    Introduzione alla libreria KIO per il supporto al caricamento e salvataggio da una propria applicazione.
    Argomenti della linea di comando
    Aggiungere la capacita' di specificare quale file aprire dalla riga di comando nel proprio editor di testo.

    Basi

    Effettuare il porting delle tue applicazioni
    Aiuto per il porting di applicazioni da Qt3/KDE3 a Qt4/KDE4
    Introduzione a CMake
    Come usare il sistema di build CMake usato da KDE 4.
    Errori di Programmazione Comuni
    Svariati errori comuni fatti durante lo sviluppo di Qt e KDE e come neutralizzarli.
    Usare il Qt Designer per costruire interfacce utente
    Come creare file UI con il designer, e come integrarli in un programma KDE.
    Creare librerie per condividere il codice
    Come aggiungere una libreria al sistema di build e come predisporre il codice sorgente.

    Testing e Debugging

    Debugging delle tue applicazioni
    Suggerimenti, strumenti e tecniche da applicare quando si esegue il debug delle proprie applicazioni KDE
    Scrivere Unittests per Qt4 e KDE4 con QTestLib (Link originale)
    Tutorial da Brad Hards che descrive come scrivere unit test usando il framework QTestLib. E' mostrato come un tutorial basato su esempi, ed e' in fase di sviluppo.
    Vie Semi-automatiche per rilevare errori nel codice
    Tecniche che si possono usare per rilevare errori nel codice di KDE

    Gestire i dati di configurazione con KConfig

    Introduzione a KConfig
    Una visione d'insieme delle classi di KConfig e come usarle nelle tue applicazioni
    Usare KConfig XT
    Tutorial su come usare efficientemente il framework KConfig XT.
    Aggiornare i file di KConfig
    Tutorial su come scrivere uno script di aggiornamento per mantenere i cambiamenti nel formato dei file delle tue applicazioni in sincronia con i file di configurazione degli utenti gia' esistenti

    Servizi: Applicazioni e Plugins

    Introduzione al Services Framework
    Una visione d'insieme del services framework in KDE e di cosa fornisce agli sviluppatori. Copre la cache alla configurazione di sistema (SyCoCa), i files sorgente dati e come le informazioni indicizzate possono essere usate.
    Trovare i servizi tramite le queries di scambio (Trader Queries)
    Come trovare servizi, come plugins o mimetypes, che sono indicizzati nella SyCoCa usando la sintassi delle Trader Queries
    Creare e Caricare Plugins Usando KService
    Impara come definire tipi di plugin personalizzati, trovare plugin installati (inclusi plugin di terze parti) e caricarli in una maniera facile e portabile usando KService.

    Localizzazione

    Introduzione A Unicode
    Una introduzione su cos'e' Unicode e come manipolare i dati Unicode nelle applicazioni KDE.
    Scrivere applicazioni con la localizzazione in mente
    Questo tutorial spiega che cos'e' la localizzazione, perche' e' importante e come assicurarsi che le tue applicazioni sono pronte ad essere localizzate. Un MUST per tutti gli sviluppatori.
    Evitare i rischi comuni legati alla localizzazione
    Ci sono svariati errori comuni che non consentono alle applicazioni di essere correttamente localizzate. Scopri in questo tutorial quali sono e come prevenirli facilmente.
    Compilare Moduli di localizzazione di KDE
    Potrebbe essere una buona idea effetture la compilazione ed installazione del supporto alle lingue dal modulo di localizzazione (l10n) di KDE lavorandoci sopra. Questo modo ti permettera' di testare le tue applicazioni in altre lingue ed evidenziare le aree problematiche. Impara come farlo in questo tutorial.
    Incorporare i18n nel sistema di build
    Una volta che la tua applicazione e' pronta per essere localizzata, il prossimo passo e' di assicurarsi che i files di traduzione siano impacchettati automaticamente e mantenuti aggiornati. Questo tutorial tratta della necessarie aggiunte al CMakeFiles.txt oltre che del processo di distribuzione degli elenchi di messaggi risultanti con le tue applicazioni.
    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.
    Semantic Markup of Messages
    To ensure consistent presentation and more meaningful representations of messages in applications, semantic markup can be applied to messages marked for translation using the KUIT system. This tutorial describes how this system works.
    Automated i18n Code Checking
    The Krazy code checker scans KDE's code and reports common i18n mistakes.

    Documentazione

    Documentazione alle API
    Questo tutorial spiega come documentare correttamente le tue API.
    Man Pages
    Scrittura e generazione delle Man Pages di riferimento.

    Automazione e Scripting delle applicazioni

    D-Bus

    Introduzione a D-Bus
    Una introduzione ai concetti chiave di D-Bus dalla prospettiva dello sviluppatore, questo tutorial mostra cos'e' DBus e come puo' essere usato dalle applicazioni.
    Accesso alle interfacce di D-Bus
    Una guida passo-passo per chiamare i metodi di D-Bus e connettere i segnali di D-Bus tramite QtDBus.
    D-Bus Intermedio
    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.
    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

    Getting Started With Plasmoids
    Crea il tuo primo widget Plasma, o Plasmoide, in C++ con uno sfondo SVG, un icon ed un testo di esempio
    Writing A DataEngine
    I DataEngines forniscono una interfaccia standardizzata a varie sorgenti dati per la visualizzazione e l'uso. Scopri cos'e' un DataEngine e come scriverne uno.
    Usare DataEngines in un Plasmoide
    Con un DataEngine, e' possibile recuperare dati per visualizzarli in un modo semplice e standard. Questo tutorial copre l'argomento di come usare i DataEngines per questo scopo nei Plasmoidi.
    Creare Runners
    I Runners sono plugin che forniscono funzionalita' di ricerca action-based nel dialogo "esegui comando" dello spazio di lavoro di Plasma. Questi plugin possono essere usati da qualsiasi applicazione linkata a libplasma.
    Creating a Plasma Theme
    Guida per la creazione del tuo primo tema per Plasma.

    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.

    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.

    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

    Altri tutorials

    Usare la Games Library di KDE

    KStandardGameAction
    Usare libkdegames per rendere i propri giochi adatti allo standard per i giochi di kde
    Highscores
    Implementare una tabella per la classifica nei tuoi giochi
    Selettore dei temi
    Usare la finestra di dialogo per i temi da libkdegames

    2D Plotting (KPlotWidget)

    Usare il widget data-plotting di kde
    Questo tutorial introduce KPlotWidget, usato per il plotting di dati 2-D. Include informazioni sull'uso semplice del widget (includendo aggiunta e modifica dei data sets, e personalizzazione degli assi e delle etichette), e personalizzazioni avanzate (inclusa l'estensione del widget attraverso sottoclassi).

    Spelling and Grammar Checking (Sonnet)

    Aggiungere controllo lessicale o grammaticale alle applicazioni KDE
    Questo tutorial introduce Sonnet e come uno puo' usarki per aggiungere la correzione al linguaggio nelle tue applicazioni KDE. Le funzionalita' ausiliarie di Sonnet saranno descritte in un tutorial separato.

    Pixmap cache (KPixmapCache)

    Usare la pixmap cache di KDE
    Questo tutorial mostra come usare KPixmapCache per il caching(per es. pixmaps generate da SVG o altri dati).

    Usare MarbleWidget (Marble)

    Usare MarbleWidget
    Questo breve tutorial descrive come usare il MarbleWidget nei tuoi progetti

    Usare SCM locali per lo sviluppo di KDE

    Usare Git per sviluppare per KDE
    Questo tutorial mostra come usare Git per sviluppare per KDE

    Materiali su KDE2 e KDE3

    Tutorials su KDE3
    Questi tutorials coprono gli argomenti relativi a KDE3.
    Tutorials su KDE2
    Questi tutorials coprono gli argomenti relativi a KDE2.