| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| QGIS News | ||
| Change history for the QGIS Project | ||
| %%date(%A %B %d, %Y) | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,159 @@ | ||
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
| <html xmlns="http://www.w3.org/1999/xhtml"> | ||
| <head> | ||
| <title>Help Python Console</title> | ||
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
|
|
||
| <style> | ||
| body{ | ||
| font-family: 'Trebuchet MS', sans-serif; | ||
| font-size : 12px; | ||
| } | ||
| #header{ | ||
| background: #f6f6f6; | ||
| border-bottom: 3px solid #000; | ||
| width: 100%; | ||
| } | ||
| #headerTool td{ | ||
| background: #f6f6f6; | ||
| /*width: 100%;*/ | ||
| } | ||
| ._titleP { | ||
| padding: 5px; | ||
| font-size: 15px; | ||
| font-weight: bold; | ||
| color: #000; | ||
| } | ||
| ._title { | ||
| font-size: 20px; | ||
| font-weight: bold; | ||
| color: #000; | ||
| } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <table id="header"> | ||
| <tr> | ||
| <td> | ||
| <img src="qrc:/images/themes/default/console/imgHelpDialog.png" /> | ||
| </td> | ||
| <td> | ||
| <span class="_title">#header.title#</span> | ||
| </td> | ||
| </tr> | ||
| </table> | ||
| <table> | ||
| <tr> | ||
| <td> | ||
| <p align="justify"> | ||
| #header.subject# | ||
| <br><br> | ||
| #header.subject.main# | ||
| </p> | ||
| </td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/imgHelpConsole.png" /></td> | ||
| </tr> | ||
| <tr> | ||
| <td> | ||
| <p align="justify"> | ||
| #header.subject.A# | ||
| <img src="qrc:/images/themes/default/console/imgHelpMenu.png"><br> | ||
| #header.subject.B# | ||
| </p> | ||
| </td> | ||
| </tr> | ||
| </table> | ||
| <table id="header"> | ||
| <tr> | ||
| <td> | ||
| <span class="_titleP">#features#</span> | ||
| </td> | ||
| </tr> | ||
| </table> | ||
| <p align="justify"> | ||
| <ul> | ||
| <li>#features.title# | ||
| <ol> | ||
| <li>Python</li> | ||
| <li>PyQGIS-master</li> | ||
| <li>PyQt4</li> | ||
| <li>QScintilla2</li> | ||
| <li>osgeo-gdal-ogr</li> | ||
| </ol> | ||
| </li> | ||
| <br> | ||
| <li>#features.a#</li> | ||
| <br> | ||
| <li>#features.b#</li> | ||
| <br> | ||
| <li>#features.api.doc#</li> | ||
| <br> | ||
| <li>#features.pyqgis.doc#</li> | ||
| <br> | ||
| <li>#features.c#</li> | ||
| <br> | ||
| <li>#features.d#</li> | ||
| <br> | ||
| <li>#features.e#</li> | ||
| </ul> | ||
| </p> | ||
| <table id="header"> | ||
| <tr> | ||
| <td> | ||
| <span class="_titleP">#toolbar#</span> | ||
| </td> | ||
| </tr> | ||
| </table> | ||
| <p>#toolbar.title#</p> | ||
| <table width="100%" border="0" id="headerTool"> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconClearConsole.png" /></td> | ||
| <td colspan="2">#toolbar.clear#</td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconClassConsole.png" /></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconIfaceConsole.png" /></td> | ||
| <td>#toolbar.iface#</td> | ||
| </tr> | ||
| <tr> | ||
| <td></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconSextanteConsole.png" /></td> | ||
| <td>#toolbar.sextante#</td> | ||
| </tr> | ||
| <tr> | ||
| <td></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconQtCoreConsole.png" /></td> | ||
| <td>#toolbar.qtcore#</td> | ||
| </tr> | ||
| <tr> | ||
| <td></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconQtGuiConsole.png" /></td> | ||
| <td>#toolbar.qtgui#</td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconScriptConsole.png" /></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconOpenConsole.png" /></td> | ||
| <td>#toolbar.script.open#</td> | ||
| </tr> | ||
| <tr> | ||
| <td></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconSaveConsole.png" /></td> | ||
| <td>#toolbar.script.save#</td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconSettingsConsole.png" /></td> | ||
| <td colspan="2">#toolbar.settings#</td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconHelpConsole.png" /></td> | ||
| <td colspan="2">#toolbar.help#</td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconRunConsole.png" /></td> | ||
| <td colspan="2">#toolbar.run#</td> | ||
| </tr> | ||
| </table> | ||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,165 @@ | ||
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
| <html xmlns="http://www.w3.org/1999/xhtml"> | ||
| <head> | ||
| <title>Help Python Console</title> | ||
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
|
|
||
| <style> | ||
| body{ | ||
| font-family: 'Trebuchet MS', sans-serif; | ||
| font-size : 12px; | ||
| } | ||
| #header{ | ||
| background: #f6f6f6; | ||
| border-bottom: 3px solid #000; | ||
| width: 100%; | ||
| } | ||
| #headerTool td{ | ||
| background: #f6f6f6; | ||
| /*width: 100%;*/ | ||
| } | ||
| ._titleP { | ||
| padding: 5px; | ||
| font-size: 15px; | ||
| font-weight: bold; | ||
| color: #000; | ||
| } | ||
| ._title { | ||
| font-size: 20px; | ||
| font-weight: bold; | ||
| color: #000; | ||
| } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <table id="header"> | ||
| <tr> | ||
| <td> | ||
| <img src="qrc:/images/themes/default/console/imgHelpDialog.png" /> | ||
| </td> | ||
| <td> | ||
| <span class="_title">Python Console für QGIS</span> | ||
| </td> | ||
| </tr> | ||
| </table> | ||
| <table> | ||
| <tr> | ||
| <td> | ||
| <p align="justify"> | ||
| Python Console auf PyQScintilla2 basierend | ||
| <br><br> | ||
| Das Objekt qgis.utils.iface (Instanz der Klasse QgisInterface) ermöglicht den Zugriff | ||
| auf die QGIS-Umgebung von der Konsole aus. | ||
| Über den defür bestimmten Knopf in der Werkzeugleiste | ||
| kann die Klasse QgisInterface geladen werden. | ||
| </p> | ||
| </td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/imgHelpConsole.png" /></td> | ||
| </tr> | ||
| <tr> | ||
| <td> | ||
| <p align="justify"> | ||
| #header.subject.A# | ||
| <img src="qrc:/images/themes/default/console/imgHelpMenu.png"><br> | ||
| #header.subject.B# | ||
| </p> | ||
| </td> | ||
| </tr> | ||
| </table> | ||
| <table id="header"> | ||
| <tr> | ||
| <td> | ||
| <span class="_titleP">Funktionen</span> | ||
| </td> | ||
| </tr> | ||
| </table> | ||
| <p align="justify"> | ||
| <ul> | ||
| <li>Auto-Vervollständigung und Syntaxhervorhebung der folgenden Programmierschnittstellen: | ||
| <ol> | ||
| <li>Python</li> | ||
| <li>PyQGIS-master</li> | ||
| <li>PyQt4</li> | ||
| <li>QScintilla2</li> | ||
| <li>osgeo-gdal-ogr</li> | ||
| </ol> | ||
| </li> | ||
| <br> | ||
| <li>Strg+Leertaste zur Anzeige der Verfolgständigungsliste.</li> | ||
| <br> | ||
| <li>Strg+Alt+Leertaste um die Befehlshistorie anzuzeigen.</li> | ||
| <br> | ||
| <li>#features.api.doc#</li> | ||
| <br> | ||
| <li>#features.pyqgis.doc#</li> | ||
| <br> | ||
| <li>Zum Speichern der Befehlshistorie '_save' eingeben oder das Konsolfenster schließen. | ||
| Dieser Befehl speichert die Historie in ~/.qgis/console_history.txt</li> | ||
| <br> | ||
| <li>Zum Löschen der Befehlshistorie '_clear' eingeben. | ||
| Dieser Befehl löscht die Befehlshistorie aus ~/.qgis/console_history.txt</li> | ||
| <br> | ||
| <li>Zum kompletten Löschen der Befehlshistorie '_clearAll' eingeben. | ||
| Dieser Befehl löscht die ganze Befehlshistorie. Er ist nicht zurückzunehmen.</li> | ||
| </ul> | ||
| </p> | ||
| <table id="header"> | ||
| <tr> | ||
| <td> | ||
| <span class="_titleP">Werkzeugleiste</span> | ||
| </td> | ||
| </tr> | ||
| </table> | ||
| <p>Im folgende Beschreibungen der Werkzeuge in der Leiste:</p> | ||
| <table width="100%" border="0" id="headerTool"> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconClearConsole.png" /></td> | ||
| <td colspan="2">Löschen der Python-Konsole</td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconClassConsole.png" /></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconIfaceConsole.png" /></td> | ||
| <td>Import der Klasse iface</td> | ||
| </tr> | ||
| <tr> | ||
| <td></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconSextanteConsole.png" /></td> | ||
| <td>Import der Klasse Sextante</td> | ||
| </tr> | ||
| <tr> | ||
| <td></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconQtCoreConsole.png" /></td> | ||
| <td>#toolbar.qtcore#</td> | ||
| </tr> | ||
| <tr> | ||
| <td></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconQtGuiConsole.png" /></td> | ||
| <td>#toolbar.qtgui#</td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconScriptConsole.png" /></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconOpenConsole.png" /></td> | ||
| <td>Laden eines Pythonscripts in die Konsole</td> | ||
| </tr> | ||
| <tr> | ||
| <td></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconSaveConsole.png" /></td> | ||
| <td>Speichern eines Pythonscripts.</td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconSettingsConsole.png" /></td> | ||
| <td colspan="2">#toolbar.settings#</td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconHelpConsole.png" /></td> | ||
| <td colspan="2">Hilfe</td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconRunConsole.png" /></td> | ||
| <td colspan="2">Zum Ausführen eines Befehlt (wie Eingabe von Enter)</td> | ||
| </tr> | ||
| </table> | ||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,171 @@ | ||
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
| <html xmlns="http://www.w3.org/1999/xhtml"> | ||
| <head> | ||
| <title>Help Python Console</title> | ||
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
|
|
||
| <style> | ||
| body{ | ||
| font-family: 'Trebuchet MS', sans-serif; | ||
| font-size : 12px; | ||
| } | ||
| #header{ | ||
| background: #f6f6f6; | ||
| border-bottom: 3px solid #000; | ||
| width: 100%; | ||
| } | ||
| #headerTool td{ | ||
| background: #f6f6f6; | ||
| /*width: 100%;*/ | ||
| } | ||
| ._titleP { | ||
| padding: 5px; | ||
| font-size: 15px; | ||
| font-weight: bold; | ||
| color: #000; | ||
| } | ||
| ._title { | ||
| font-size: 20px; | ||
| font-weight: bold; | ||
| color: #000; | ||
| } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <table id="header"> | ||
| <tr> | ||
| <td> | ||
| <img src="qrc:/images/themes/default/console/imgHelpDialog.png" /> | ||
| </td> | ||
| <td> | ||
| <span class="_title">Python Console for QGIS</span> | ||
| </td> | ||
| </tr> | ||
| </table> | ||
| <table> | ||
| <tr> | ||
| <td> | ||
| <p align="justify"> | ||
| Python Console based on PyQScintilla2. | ||
| <br><br> | ||
| To access the QGIS environment from this console | ||
| use qgis.utils.iface object (instance of QgisInterface class). | ||
| To import the class QgisInterface can also use the dedicated | ||
| button on the toolbar on the left. | ||
| </p> | ||
| </td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/imgHelpConsole.png" /></td> | ||
| </tr> | ||
| <tr> | ||
| <td> | ||
| <p align="justify"> | ||
| The console is split in two main panes, output and input areas. | ||
| Both are resizable by using the horizontal splitter. | ||
| Output area pane is a widget read-only which shows the commands output. | ||
| You can drag and drop or copy text into input area | ||
| (no matter if selected text contains >>> or ...). | ||
| Use 'Share on codepad' from contextual menu for sharing snippets code. | ||
| The context menu looks like the image below. | ||
| <img src="qrc:/images/themes/default/console/imgHelpMenu.png"><br> | ||
| Input area pane is the interactive python shell for input commands. | ||
| </p> | ||
| </td> | ||
| </tr> | ||
| </table> | ||
| <table id="header"> | ||
| <tr> | ||
| <td> | ||
| <span class="_titleP">Features</span> | ||
| </td> | ||
| </tr> | ||
| </table> | ||
| <p align="justify"> | ||
| <ul> | ||
| <li>Auto-completion and highlighting syntax for the following APIs: | ||
| <ol> | ||
| <li>Python</li> | ||
| <li>PyQGIS-master</li> | ||
| <li>PyQt4</li> | ||
| <li>QScintilla2</li> | ||
| <li>osgeo-gdal-ogr</li> | ||
| </ol> | ||
| </li> | ||
| <br> | ||
| <li>CTRL+SPACE to view the auto-completion list.</li> | ||
| <br> | ||
| <li>CTRL+ALT+SPACE to view the command history list.</li> | ||
| <br> | ||
| <li>Open QGIS API documentation by typing '_api'.</li> | ||
| <br> | ||
| <li>Open PyQGIS Cookbook by typing '_pyqgis'.</li> | ||
| <br> | ||
| <li>Saves the command history by typing '_save' or closing the widget. | ||
| This command saves the history command in the file ~/.qgis2/console_history.txt</li> | ||
| <br> | ||
| <li>Clears the command history by typing <b>_clear</b>. | ||
| This command clears the command history from file ~/.qgis2/console_history.txt</li> | ||
| <br> | ||
| <li>Clears completely command history by typing '_clearAll'. | ||
| This command clears completely the command history. It has an irreversible effect.</li> | ||
| </ul> | ||
| </p> | ||
| <table id="header"> | ||
| <tr> | ||
| <td> | ||
| <span class="_titleP">Toolbar</span> | ||
| </td> | ||
| </tr> | ||
| </table> | ||
| <p>The following is a description of the tools in the toolbar:</p> | ||
| <table width="100%" border="0" id="headerTool"> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconClearConsole.png" /></td> | ||
| <td colspan="2">Tool to clear python console</td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconClassConsole.png" /></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconIfaceConsole.png" /></td> | ||
| <td>Tool to import iface class</td> | ||
| </tr> | ||
| <tr> | ||
| <td></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconSextanteConsole.png" /></td> | ||
| <td>Tool to import Sextante class</td> | ||
| </tr> | ||
| <tr> | ||
| <td></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconQtCoreConsole.png" /></td> | ||
| <td>Tool to import PyQt4.QtCore class</td> | ||
| </tr> | ||
| <tr> | ||
| <td></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconQtGuiConsole.png" /></td> | ||
| <td>Tool to import PyQt4.QtGui class</td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconScriptConsole.png" /></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconOpenConsole.png" /></td> | ||
| <td>Tool to open a python script and load in console</td> | ||
| </tr> | ||
| <tr> | ||
| <td></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconSaveConsole.png" /></td> | ||
| <td>Tool to save a python script</td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconSettingsConsole.png" /></td> | ||
| <td colspan="2">Settings</td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconHelpConsole.png" /></td> | ||
| <td colspan="2">Help</td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconRunConsole.png" /></td> | ||
| <td colspan="2">Run command (like Enter key pressed)</td> | ||
| </tr> | ||
| </table> | ||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,172 @@ | ||
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
| <html xmlns="http://www.w3.org/1999/xhtml"> | ||
| <head> | ||
| <title>Help Python Console</title> | ||
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
|
|
||
| <style> | ||
| body{ | ||
| font-family: 'Trebuchet MS', sans-serif; | ||
| font-size : 12px; | ||
| } | ||
| #header{ | ||
| background: #f6f6f6; | ||
| border-bottom: 3px solid #000; | ||
| width: 100%; | ||
| } | ||
| #headerTool td{ | ||
| background: #f6f6f6; | ||
| /*width: 100%;*/ | ||
| } | ||
| ._titleP { | ||
| padding: 5px; | ||
| font-size: 15px; | ||
| font-weight: bold; | ||
| color: #000; | ||
| } | ||
| ._title { | ||
| font-size: 20px; | ||
| font-weight: bold; | ||
| color: #000; | ||
| } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <table id="header"> | ||
| <tr> | ||
| <td> | ||
| <img src="qrc:/images/themes/default/console/imgHelpDialog.png" /> | ||
| </td> | ||
| <td> | ||
| <span class="_title">Console Python per QGIS</span> | ||
| </td> | ||
| </tr> | ||
| </table> | ||
| <table> | ||
| <tr> | ||
| <td> | ||
| <p align="justify"> | ||
| Console Python basata su PyQScintilla2. | ||
| <br><br> | ||
| Per accedere all'ambiente QGIS da questa console | ||
| usa l'oggetto qgis.utils.iface (istanza della classe QgisInterface). | ||
| Per importare la classe QgisInterface puoi usare anche il bottone dedicato che si trova | ||
| sulla toolbar. | ||
| </p> | ||
| </td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/imgHelpConsole.png" /></td> | ||
| </tr> | ||
| <tr> | ||
| <td> | ||
| <p align="justify"> | ||
| La console è divisa in due riquadri principali, uno per i comandi di input l'altro per | ||
| quelli di output. Entrambi possono essere ridimensionate. | ||
| L'area di output non è editabile, visualizza solo l'output del comando | ||
| eseguito nella shell. | ||
| È possibile fare il drag&drop o copiare il testo direttamente nell'area di input | ||
| (il prompt >>> o ... viene filtrato automaticamente). | ||
| Usa 'Share on codepad' dal menu contestuale per condividere pezzi di codice. | ||
| Il menu contestuale si presenta come l'immagine sotto. | ||
| <img src="qrc:/images/themes/default/console/imgHelpMenu.png"><br> | ||
| L'area di input è la shell interrattiva di Python. | ||
| </p> | ||
| </td> | ||
| </tr> | ||
| </table> | ||
| <table id="header"> | ||
| <tr> | ||
| <td> | ||
| <span class="_titleP">Funzionalità</span> | ||
| </td> | ||
| </tr> | ||
| </table> | ||
| <p align="justify"> | ||
| <ul> | ||
| <li>Completamento automatico ed evidenziazione della sintassi per le seguenti APIs: | ||
| <ol> | ||
| <li>Python</li> | ||
| <li>PyQGIS-master</li> | ||
| <li>PyQt4</li> | ||
| <li>QScintilla2</li> | ||
| <li>osgeo-gdal-ogr</li> | ||
| </ol> | ||
| </li> | ||
| <br> | ||
| <li>CTRL+SPACE per visualizzare la lista per l'autocompletamento di classi e metodi.</li> | ||
| <br> | ||
| <li>CTRL+ALT+SPACE per visualizzare la lista della cronologia dei comandi.</li> | ||
| <br> | ||
| <li>Apri la documentazione completa sulle API di QuantumGIS digitando '_api'.</li> | ||
| <br> | ||
| <li>Apri il Cookbook PyQGIS digitando '_pyqgis'.</li> | ||
| <br> | ||
| <li>Possibilità di salvare la cronologia dei comandi digitando '_save' o semplicemente chiudendo il widget. | ||
| La cronologia verrà salvata all'interno del file ~/.qgis/console_history.txt</li> | ||
| <br> | ||
| <li>Possibilità di cancellare la storia dei comandi digitando '_clear'. | ||
| La cronologia verrà cancellata dal file ~/.qgis/console_history.txt</li> | ||
| <br> | ||
| <li>Possibilità di cancellare completamente la cronologia dei comandi digitando '_clearAll'. | ||
| La cronologia verrà cancellata sia dal file che dalla memoria temporanea.</li> | ||
| </ul> | ||
| </p> | ||
| <table id="header"> | ||
| <tr> | ||
| <td> | ||
| <span class="_titleP">Toolbar</span> | ||
| </td> | ||
| </tr> | ||
| </table> | ||
| <p>Di seguito la descrizione dei comandi disponibile nella toolbar:</p> | ||
| <table width="100%" border="0" id="headerTool"> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconClearConsole.png" /></td> | ||
| <td colspan="2">Strumento per pulire la console</td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconClassConsole.png" /></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconIfaceConsole.png" /></td> | ||
| <td>Strumento per importare la classe iface, per accedere all'ambiente QGIS</td> | ||
| </tr> | ||
| <tr> | ||
| <td></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconSextanteConsole.png" /></td> | ||
| <td>Strumento per importare la classe Sextante</td> | ||
| </tr> | ||
| <tr> | ||
| <td></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconQtCoreConsole.png" /></td> | ||
| <td>Strumento per importare la classe PyQt4.QtCore</td> | ||
| </tr> | ||
| <tr> | ||
| <td></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconQtGuiConsole.png" /></td> | ||
| <td>Strumento per importare la classe PyQt4.QtGui</td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconScriptConsole.png" /></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconOpenConsole.png" /></td> | ||
| <td>Strumento per aprire un script python da eseguire in console</td> | ||
| </tr> | ||
| <tr> | ||
| <td></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconSaveConsole.png" /></td> | ||
| <td>Strumento per salvare uno script python sul disco</td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconSettingsConsole.png" /></td> | ||
| <td colspan="2">Impostazioni</td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconHelpConsole.png" /></td> | ||
| <td colspan="2">Aiuto</td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconRunConsole.png" /></td> | ||
| <td colspan="2">Esegui comando (simile al tasto <Invio>)</td> | ||
| </tr> | ||
| </table> | ||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,171 @@ | ||
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
| <html xmlns="http://www.w3.org/1999/xhtml"> | ||
| <head> | ||
| <title>Help Python Console</title> | ||
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
|
|
||
| <style> | ||
| body{ | ||
| font-family: 'Trebuchet MS', sans-serif; | ||
| font-size : 12px; | ||
| } | ||
| #header{ | ||
| background: #f6f6f6; | ||
| border-bottom: 3px solid #000; | ||
| width: 100%; | ||
| } | ||
| #headerTool td{ | ||
| background: #f6f6f6; | ||
| /*width: 100%;*/ | ||
| } | ||
| ._titleP { | ||
| padding: 5px; | ||
| font-size: 15px; | ||
| font-weight: bold; | ||
| color: #000; | ||
| } | ||
| ._title { | ||
| font-size: 20px; | ||
| font-weight: bold; | ||
| color: #000; | ||
| } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <table id="header"> | ||
| <tr> | ||
| <td> | ||
| <img src="qrc:/images/themes/default/console/imgHelpDialog.png" /> | ||
| </td> | ||
| <td> | ||
| <span class="_title">Консоль Python для QGIS</span> | ||
| </td> | ||
| </tr> | ||
| </table> | ||
| <table> | ||
| <tr> | ||
| <td> | ||
| <p align="justify"> | ||
| Консоль Python на основе PyQScintilla2. | ||
| <br><br> | ||
| Для доступа к окружению QGIS из консоли | ||
| используйте объект qgis.utils.iface (экземпляр класса QgisInterface). | ||
| Также можно испортировать класс QgisInterface при помощи специальной | ||
| кнопки на панели инструментов слева. | ||
| </p> | ||
| </td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/imgHelpConsole.png" /></td> | ||
| </tr> | ||
| <tr> | ||
| <td> | ||
| <p align="justify"> | ||
| Консоль разделена на две части: поля ввода и вывода. | ||
| Размер полей можно изменять двигая горизонтальный разделитель. | ||
| Поле вывода доступно только для чтения, здесь отображаются результаты выполнения команд. | ||
| Текст в поле ввода можно перетаскивать или копировать | ||
| (при этом наличие в тексте символов >>> или ... не критично). | ||
| Для обмена фрагментами кода используйте пункт 'Share on codepad' контекстного меню. | ||
| Контекстное меню показано на рисунке ниже. | ||
| <img src="qrc:/images/themes/default/console/imgHelpMenu.png"><br> | ||
| Поле ввода предоставляет доступ к интерактивному интерпретатору Python и предназначена для ввода команд. | ||
| </p> | ||
| </td> | ||
| </tr> | ||
| </table> | ||
| <table id="header"> | ||
| <tr> | ||
| <td> | ||
| <span class="_titleP">Возможности</span> | ||
| </td> | ||
| </tr> | ||
| </table> | ||
| <p align="justify"> | ||
| <ul> | ||
| <li>Автодополнение и подсветка синтаксиса для следующих API: | ||
| <ol> | ||
| <li>Python</li> | ||
| <li>PyQGIS-master</li> | ||
| <li>PyQt4</li> | ||
| <li>QScintilla2</li> | ||
| <li>osgeo-gdal-ogr</li> | ||
| </ol> | ||
| </li> | ||
| <br> | ||
| <li>CTRL+SPACE для вызова списка автодополнения.</li> | ||
| <br> | ||
| <li>CTRL+ALT+SPACE для просмотра истории команд.</li> | ||
| <br> | ||
| <li>Открытие API-документации QGIS API при помощи метода '_api'.</li> | ||
| <br> | ||
| <li>Открытие Поваренной книги разработчика PyQGIS при помощи метода '_pyqgis'.</li> | ||
| <br> | ||
| <li>Сохранение истории введённых команд при помощи метода '_save' или при закрытии консоли. | ||
| История команд сохраняется в файле ~/.qgis/console_history.txt</li> | ||
| <br> | ||
| <li>Очистка истории введённых команд при помощи метода '_clear'. | ||
| Очищает содержимое файла ~/.qgis/console_history.txt</li> | ||
| <br> | ||
| <li>Полная очистка истории введённых команд при помощи метода '_clearAll'. | ||
| Вызов метода приведёт к полной очистке истории введённых команд. Эту операцию нельзя отменить.</li> | ||
| </ul> | ||
| </p> | ||
| <table id="header"> | ||
| <tr> | ||
| <td> | ||
| <span class="_titleP">Панель инструментов</span> | ||
| </td> | ||
| </tr> | ||
| </table> | ||
| <p>На панели инструментов расположены следующие кнопки:</p> | ||
| <table width="100%" border="0" id="headerTool"> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconClearConsole.png" /></td> | ||
| <td colspan="2">Очистить консоль</td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconClassConsole.png" /></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconIfaceConsole.png" /></td> | ||
| <td>Импортировать класс iface</td> | ||
| </tr> | ||
| <tr> | ||
| <td></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconSextanteConsole.png" /></td> | ||
| <td>Импортировать класс Sextante</td> | ||
| </tr> | ||
| <tr> | ||
| <td></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconQtCoreConsole.png" /></td> | ||
| <td>импортировать модуль PyQt4.QtCore</td> | ||
| </tr> | ||
| <tr> | ||
| <td></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconQtGuiConsole.png" /></td> | ||
| <td>Импортировать модуль PyQt4.QtGui</td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconScriptConsole.png" /></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconOpenConsole.png" /></td> | ||
| <td>Загрузить скрипт Pythоn</td> | ||
| </tr> | ||
| <tr> | ||
| <td></td> | ||
| <td><img src="qrc:/images/themes/default/console/iconSaveConsole.png" /></td> | ||
| <td>Сохранить скрипт Python</td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconSettingsConsole.png" /></td> | ||
| <td colspan="2">Настройки</td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconHelpConsole.png" /></td> | ||
| <td colspan="2">Справка</td> | ||
| </tr> | ||
| <tr> | ||
| <td><img src="qrc:/images/themes/default/console/iconRunConsole.png" /></td> | ||
| <td colspan="2">выполнить команду (действие аналогично нажатию клавиши Enter)</td> | ||
| </tr> | ||
| </table> | ||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| #!/usr/bin/perl | ||
|
|
||
| use strict; | ||
| use warnings; | ||
|
|
||
| my %src; | ||
|
|
||
| for my $f (<python/console/help/i18n/*.properties>) { | ||
| my($lang) = $f =~ m#python/console/help/i18n/(.+)\.properties$#; | ||
| print "$f [$lang]\n"; | ||
|
|
||
| my $title; | ||
| my $str; | ||
|
|
||
| open F, $f; | ||
| while( my $l = <F>) { | ||
| $l =~ s/\s+$//; | ||
| if( $l =~ /\\$/ ) { | ||
| $l =~ s/\\$/\n/; | ||
| while(<F>) { | ||
| s/\\\s*$/\n/; | ||
| $l .= $_; | ||
| last if /",$/; | ||
| } | ||
| } | ||
|
|
||
| next if $l =~ /^i18n_dict/; | ||
| next if $l =~ /^};$/; | ||
|
|
||
| if( ($title, $str) = $l =~ /"([^"]+)"\s*:\s*"([^"]*)",?$/m ) { | ||
| #print "TITLE:$title STR:$str\n"; | ||
| $src{$lang}{$title} = $str; | ||
| } else { | ||
| die "$lang:|$l| not parsed"; | ||
| } | ||
| } | ||
| close F; | ||
| } | ||
|
|
||
| open F, "resources/context_help/PythonConsole"; | ||
| my $src = join("", <F>); | ||
| close F; | ||
|
|
||
| foreach my $lang (keys %src) { | ||
| my $dst = $src; | ||
|
|
||
| my %t; | ||
| foreach my $title ( keys %{ $src{$lang} } ) { | ||
| my $d = $src{$lang}{$title}; | ||
|
|
||
| die "dst for $title undefined" unless defined $d; | ||
|
|
||
| my $dst0 = $dst; | ||
| $dst =~ s/#$title#/$d/gm; | ||
|
|
||
| warn "$lang.$title [$d] not replaced\n$dst" if $dst0 eq $dst; | ||
| } | ||
|
|
||
| open F, ">resources/context_help/PythonConsole-$lang"; | ||
| print F $dst; | ||
| close F; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| Coordinate Capture Plugin for QGIS | ||
|
|
||
| Tim Sutton 2008 | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| Spatial Query Plugin for QGIS | ||
|
|
||
| Luiz Motta and Diego Moreira 2009 | ||
|
|
||
|
|
||