[QGIS Commit] r10884 - docs/branches/1.0.0/italian/user_guide

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Jun 5 07:24:14 EDT 2009


Author: santini
Date: 2009-06-05 07:24:14 -0400 (Fri, 05 Jun 2009)
New Revision: 10884

Modified:
   docs/branches/1.0.0/italian/user_guide/external_plugins.tex
   docs/branches/1.0.0/italian/user_guide/plugins_writing_in_cpp.tex
Log:
IT translation for plugins writing chapter - partial

Modified: docs/branches/1.0.0/italian/user_guide/external_plugins.tex
===================================================================
--- docs/branches/1.0.0/italian/user_guide/external_plugins.tex	2009-06-05 09:24:00 UTC (rev 10883)
+++ docs/branches/1.0.0/italian/user_guide/external_plugins.tex	2009-06-05 11:24:14 UTC (rev 10884)
@@ -39,6 +39,6 @@
 \button{Edit...} o rimuoverli completamente con il tasto \button{Delete}.
 
 \begin{Tip} \caption{\textsc{Aggiungere più Plugin esterni}}
-\qgistip{In aggiunta ai plugin esterni moderati dall'archivio ufficiale QGIS si possono aggiungere più archivi esterni. Quindi selezionare la scheda Repositories nell'Istallatore di Plugin Python}
+\qgistip{In aggiunta ai plugin esterni moderati dall'archivio ufficiale QGIS si possono aggiungere più archivi esterni. Quindi selezionare la scheda Repositories nell'Istallatore di Plugin Pythons}
 \end{Tip}
 

Modified: docs/branches/1.0.0/italian/user_guide/plugins_writing_in_cpp.tex
===================================================================
--- docs/branches/1.0.0/italian/user_guide/plugins_writing_in_cpp.tex	2009-06-05 09:24:00 UTC (rev 10883)
+++ docs/branches/1.0.0/italian/user_guide/plugins_writing_in_cpp.tex	2009-06-05 11:24:14 UTC (rev 10884)
@@ -1,62 +1,38 @@
 % vim: set textwidth=78 autoindent:
 
-\section{Writing a QGIS Plugin in C++}\label{cpp_plugin}
+\section{Scrivere un plugin QGIS in C++}\label{cpp_plugin}
 
 % when the revision of a section has been finalized, 
 % comment out the following line:
 % \updatedisclaimer
 
-In this section we provide a beginner's tutorial for writing a simple QGIS
-C++ plugin. It is based on a workshop held by Dr. Marco Hugentobler. 
+In questa sezione viene fornito un'esercitazione per principianti per scrivere un semplice plugin QGIS in C++. E' basata su un workshop tenuto dal Dr. Marco Hugentobler. 
 
-QGIS C++ plugins are dynamically linked libraries (.so or .dll). They are
-linked to QGIS at runtime when requested in the plugin manager and extend the
-functionality of QGIS. They have access to the QGIS GUI and can be devided
-into core and external plugins.
+I plugin QGIS C++ sono librerie collegate dinamicamente (.so or .dll). Sono legate a QGIS al runtime quando richiesto nel Gestore dei Plugin ed estendono la funzionalità di QGIS. hanno accesso al GUI di QGIS e possono essere distinti in core ed ed esterni.
 
-Technically the QGIS plugin manager looks in the lib/qgis directory for all
-.so files and loads them when it is started. When it is closed they are
-unloaded again, except the ones with a checked box. For newly loaded plugins,
-the \method{classFactory} method creates an instance of the plugin class and
-the \method{initGui} method of the plugin is called to show the GUI elements
-in the plugin menu and toolbar. The \method{unload()} function of the plugin
-is used to remove the allocated GUI elements and the plugin class itself is
-removed using the class destructor. To list the plugins, each plugin must
-have a few external 'C' functions for description and of course the
-\method{classFactory} method.
+Tecnicamente il Gestore dei Plugin QGIS cerca nella directory lib/qgis per tutti i file
+.so e li carica quando è lanciato. Quando viene chiuso sono scaricati di nuovo, eccetto quelli con la casella vistata. Per i plugin caricati nuovi,il \method{classFactory} metodo crea un'istanza della classe del plugin e il \method{initGui} metodo del plugin è chiamato a mostrare gli elementi GUI nel menu plugin e nella barra degli strumenti. La funzione  \method{unload()} del plugin è usata per rimuovere gli elementi GUI allocati e la classe stessa del plugin è rimossa usando il distruttore di classe. Per elencare i plugin, ognuno deve avere alcune funzioni esterne 'C' per descrizione e ovviamente il metodo
+\method{classFactory}.
 
-\subsection{Why C++ and what about licensing}
+\subsection{Perchè C++ e circa le licenze}
 
-QGIS itself is written in C++, so it also makes sense to write plugins in C++
-as well. It is an object-oriented programming (OOP) language that is viewed
-by many developers as a prefered language for creating large-scale
-applications.
+QGIS stesso è scritto in C++, così è sensato scrivere anche i plugin in C++. E' un linguaggio di programmazione orientato all'oggetto (object-oriented programming, OOP) che è visto da molti sviluppatori come un linguaggio preferenziale per creared applicativi su larga scala.
 
-QGIS C++ plugins use functionalities of libqgis*.so libraries. As they are
-licensed under GNU GPL, QGIS C++ plugins must be licenced under the GPL, too.
-This means you may use your plugins for any purpose and you are not forced to
-publish them. If you do publish them however, they must be published under
-the conditions of the GPL license. 
+I plugins QGIS C++ usano funzionalità di librerie libqgis*.so. Dato che hanno licenze GNU GPL, anche i plugins QGIS C++  devono avere licenze GPL.
+Questo significa che si possono usare i plugin per qualsiasi scopo e non si è costretti a pubblicarli. Se si vuole pubblicarli comunque, devono essere pubblicati sotto le condizinni della licenza GPL.
 
-\subsection{Programming a QGIS C++ Plugin in four steps}
+\subsection{Programmare un plugin QGIS C++ in 4 passi}
 
-The example plugin is a point converter plugin and intentionally kept simple. 
-The plugin searches the active vector layer in QGIS, converts all vertices of
-the layer features to point features keeping the attributes and finally
-writes the point features into a delimited text file. The new layer can then
-be loaded into QGIS using the delimited text plugin (see Section
+Il plugin di esempio è un convertitore di punti ed è intenzionalmente mantenuto semplice. Il plugin cerca lo layer vettoriale attivo in QGIS, converte tutti i vertici delle caratteristiche del layer a caratteristiche puntiformi mantenendo gli attributi e finalmente scrive le caratteristiche puntiformi in un file di testo delimitato. Il nuovo layer può quindi essere caricato in QGIS usando il plugin di testo delimitato (vedere la Sezione
 \ref{label_dltext}).
 
-\minisec{Step 1: Make the plugin manager recognise the plugin}
+\minisec{Passo 1: Far riconoscre il plugin al gestore dei plugin}
 
-As a first step we create the \filename{QgsPointConverter.h} and
-\filename{QgsPointConverter.cpp} files. Then we add virtual methods inherited
-from QgisPlugin (but leave them empty for now), create necessary external 'C'
-methods and a .pro file, which is a Qt mechanism to easily create Makefiles.
-Then we compile the sources, move the compiled library into the plugin folder
-and load it in the QGIS plugin manager.
+Come primo passo si creano i file \filename{QgsPointConverter.h} e
+\filename{QgsPointConverter.cpp}. Poi si aggiungono metodi virtuali ereditati da QgisPlugin (ma si lasciano vuoti per ora), si creano i necessari metodi esterni 'C' e un file .pro, che è un meccanismo Qt per creare facilmente Makefiles.
+Quindi si compila i sorgenti, si sposta la libreria compilata nell cartella plugin e si carica con il gestore dei plugin QGIS.
 
-\textbf{a) Create new pointconverter.pro file and add}:
+\textbf{a) Creare un nuovo file pointconverter.pro e aggiungere}:
 
 \begin{verbatim}
 #base directory of the qgis installation
@@ -74,7 +50,7 @@
 DEFINES += GUI_EXPORT= CORE_EXPORT=
 \end{verbatim}
 
-\textbf{b) Create new qgspointconverterplugin.h file and add}:
+\textbf{b) Creare un nuovo file qgspointconverterplugin.h e aggiungere}:
 
 \begin{verbatim}
 #ifndef QGSPOINTCONVERTERPLUGIN_H
@@ -98,7 +74,7 @@
 #endif
 \end{verbatim}
 
-\textbf{c) Create new qgspointconverterplugin.cpp file and add}:
+\textbf{c) Creare un nuovo file qgspointconverterplugin.cpp e aggiungere}:
 
 \begin{verbatim}
 #include "qgspointconverterplugin.h"
@@ -158,14 +134,13 @@
 }
 \end{verbatim}
 
-\minisec{Step 2: Create an icon, a button and a menu for the plugin}
+\minisec{Passo 2: Creare un'icona, un pulsante e un menu per il plugin}
 
-This step includes adding a pointer to the QgisInterface object in the plugin
-class. Then we create a QAction and a callback function (slot), add it to the
-QGIS GUI using QgisIface::addToolBarIcon() and QgisIface::addPluginToMenu()
-and finally remove the QAction in the \method{unload()} method.
+Questo passo include l'aggiunta di un puntatore all' oggetto QgisInterface nella classe plugins. Quindi si crea un QAction e una funzione di richiamo (slot), si aggiunge al 
+QGIS GUI usando QgisIface::addToolBarIcon() and QgisIface::addPluginToMenu()
+e alla fine si rimuove il QAction nel metodo \method{unload()}.
 
-\textbf{d) Open qgspointconverterplugin.h again and extend existing content to}:
+\textbf{d) Aprire qgspointconverterplugin.h di nuovo e estendere il contenuto esistente a}:
 
 \begin{verbatim}
 #ifndef QGSPOINTCONVERTERPLUGIN_H
@@ -199,7 +174,7 @@
 #endif
 \end{verbatim}
 
-\textbf{e) Open qgspointconverterplugin.cpp again and extend existing content to}:
+\textbf{e) Aprire qgspointconverterplugin.cpp di nuovo e estendere il contenuto esistente a}:
 
 \begin{verbatim}
 #include "qgspointconverterplugin.h"



More information about the QGIS-commit mailing list