Updated user guide and welcome page. Among it a new page on Web+ and translations done for Google Code-In. Thanks everyone.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39691 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Joachim Seemer
2010-12-01 14:23:44 +00:00
parent 8417651ec7
commit 07df8bec9b
247 changed files with 1697 additions and 932 deletions
+28 -24
View File
@@ -9,12 +9,14 @@
*
* Authors:
* Humdinger <[email protected]>
* Translators:
* Barret
*
-->
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="robots" content="all" />
<title>Attributes</title>
<title>Attributi</title>
<link rel="stylesheet" type="text/css" href="../Haiku-doc.css" />
</head>
<body>
@@ -41,7 +43,7 @@
<span>
« <a href="filetypes.html">Filetypes</a>
:: <a href="contents.html" class="uplink">Contenuti</a>
:: <a href="index.html">Index</a> »
:: <a href="index.html">Indice del file system</a> »
</span></div>
</div>
@@ -49,35 +51,37 @@
<div>
<div class="box-info">La traduzione di questa pagina non è stata completata. Per questo motivo le parti non tradotte sono visibili in inglese.</div>
<h1>Attributes</h1>
<h1>Attributi</h1>
<p>Attributes are data fields that belong to a file but aren't part of that file, e.g. they are not computed into the file size and can be copied or changed without touching the file itself. The system uses these attributes to store e.g. file size, file type or date of the last modification. This is similar to other operating systems and their filesystems.</p>
<p>What's different is that you can add any kind of attribute to any file and display it or make it editable in a Tracker window. You just have to define the kind of attribute you want to add to a file type (e.g. string, integer or time) and give it a name and description.</p>
<p>The file itself doesn't even need any contents at all. Take a look at these People files for example:</p>
<p>Gli attributi sono campi di dati che appartengono ad un file ma non ne fanno parte. Ad esempio non sono calcolati nella dimensione del file e possono essere copiati o modificati senza modificare il file stesso. Il sistema utilizza questi attributi per memorizzare ad esempio, la dimensione del file, il tipo di file o la data dell'ultima modifica. Tutto questo è analogo ad altri sistemi operativi ed ai loro file system.</p>
<p>Quello che c'è di diverso, è che puoi aggiungere qualsiasi tipo di attributo a qualsiasi file, e visualizzarlo o renderlo modificabile in una finestra del Tracker. Devi semplicemente definire il tipo di attributo che vuoi aggiungere a un tipo di file (e.g. una stringa, un numero o il tempo) e dargli un nome e una descrizione.</p>
<p>Il file stesso non ha nemmeno bisogno di contenere qualcosa. Per esempio dai un'occhiata a questi file People:</p>
<img src="images/attributes-images/people.png" alt="people.png" />
<br />
<p>As you can see, these are all 0-sized files with attached attributes, the E-mail attribute of "John Nox" being edited right in Tracker.</p>
<p>If you index these attributes, as People, Email or audio files are by default, they are also searchable with Haiku's fast query system.</p>
<p>Come puoi notare, questi sono tutti file di dimensione 0 e con allegati degli attributi. L'attributo "E-mail" del file "John Nox" può essere modificato anche nel Tracker.</p>
<p>Se indicizzi questi attributi, come di default per People, Email o per i file audio, essi potranno essere trovati tramite il veloce sistema di ricerca che fornisce Haiku.</p>
<h2>
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
<a id="attributes-tracker" name="attributes-tracker">Attributes in Tracker</a></h2>
<p>Attributes are displayed quite similar to a database or spreadsheet. Using Tracker you can choose which attributes to display (columns) and sort file listings (rows) accordingly.</p>
<p>To do this, open a Tracker window, click on the <span class="menu">Attributes</span> menu, and select the attributes you want to display. Alternatively, simply right-click onto a column heading and mark the items in the context menu. You can rearrange the columns by a simple drag&amp;drop of the column heading. Moving a column out of a window, is a fast way to get rid of columns you don't need.</p>
<p>Double-click on the line between two attributes in the heading to automatically resize a column to its optimal width.</p>
<p>Click on a column heading to toggle the sorting order from ascending to descending. You can establish a secondary sort order by pressing the <span class="key">SHIFT</span> key while clicking on a column heading. You can sort your People files by company and within that order sort by contact name, for instance. See the above screenshot as an example. The secondary sort order is marked by a lighter colored indicator beside the heading.</p>
<p>Editing these attributes is as simple as renaming a file: Either click on an entry or press <span class="key">ALT</span> <span class="key">E</span> and move between the attributes with <span class="key">TAB</span> and <span class="key">SHIFT</span> <span class="key">TAB</span>. <span class="key">ESC</span> leaves the editing mode without applying the changes.</p>
<a id="attributes-tracker" name="attributes-tracker">Gli Attributi nel Tracker</a></h2>
<p>Gli attributi sono visualizzati in modo simile a un database o a un foglio di calcolo. Usando il Tracker potrai scegliere quali attributi visualizzare (colonne) ed ordinare di conseguenza la lista dei file (righe).</p>
<p>Per fare questo, apri una finestra del Tracker, clicca nel menu <span class="menu">Attributes</span> e scegli l'attributo che desideri visualizzare. Oppure, semplicemente clicca con il tasto destro su una colonna e segna le voci nel menu contestuale. È possibile riordinare le colonne facendo un semplice drag&amp;drop della colonna. Spostare una colonna fuori da una finestra, è un modo veloce per eliminare le colonne indesiderate.</p>
<p>Per ridimensionare automaticamente una colonna nella sua larghezza ottimale, è sufficiente fare un doppio click nella linea tra due attributi.</p>
<p>Per cambiare l'ordinamento da crescente a decrescente, è sufficiente cliccare su una colonna. Puoi stabilire un ordinamento secondario premendo il tasto <span class="key">SHIFT</span> mentre clicchi su una colonna. Puoi ordinare i file People per società e in quell'ordinamento, puoi riordinare tutto per nome, per esempio. Guarda gli screenshot sopra come esempio. L'ordinamento secondario è segnato da un indicatore di colore più chiaro accanto al titolo.</p>
<p>Modificare questi attributi è semplice come rinominare un file: Ad esempio cliccando su una voce, o premendo <span class="key">ALT</span> <span class="key">E</span> muovendosi attraverso gli attributi con <span class="key">TAB</span> e <span class="key">SHIFT</span> <span class="key">TAB</span>. Premendo <span class="key">ESC</span> si abbandona la modalità di modifica senza applicare alcun cambiamento.</p>
<h2>
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
<a id="attributes-terminal" name="attributes-terminal">Attributes in Terminal</a></h2>
<p>If you prefer to use the commandline or plan to work with many files using scripting, there are several commands for controlling attributes from Terminal.</p>
<a id="attributes-terminal" name="attributes-terminal">Gli Attributi nel Terminale</a></h2>
<p>Se preferisci usare la linea di comando, o hai intenzione di lavorare su molti file usando lo scripting, ci sono diversi comandi per controllare gli attributi dal Terminale.
</p>
<h3>
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
<a id="listattr" name="listattr">listattr</a></h3>
<p><span class="cli">listattr</span> lists a file's attributes, but doesn't show the contents of the attributes.</p>
<pre>usage: listattr 'filename' ['filename' ...]</pre>
<p>From our screenshot example above:</p>
<p><span class="cli">listattr</span> elenca gli attributi di un file, ma non mostra il loro contenuto.</p>
<pre>uso: listattr 'nomefile' ['nomefile' ...]</pre>
<p>Dal nostro precedente screenshot di esempio:</p>
<pre class="terminal"> ~/people -&gt;listattr Clara\ Botters
File: Clara Botters
Type Size Name
@@ -112,16 +116,16 @@ MIME String 21 "BEOS:TYPE"
<h3>
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
<a id="catattr" name="catattr">catattr</a></h3>
<p><span class="cli">catattr</span> displays the contents of a specific attribute of a file.</p>
<p><span class="cli">catattr</span> visualizza il contenuto di uno specifico attributo di un file.</p>
<pre>usage: catattr [--raw|-r] attr_name file1 [file2...]</pre>
<p>Again our example:</p>
<p>Ancora il nostro esempio:</p>
<pre class="terminal"> ~/people -&gt;catattr META:city Clara\ Botters
Clara Botters : string : Whelton</pre>
<h3>
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
<a id="addattr" name="addattr">addattr</a></h3>
<p><span class="cli">addattr</span> adds an attribute to a file and/or fills it with a value.</p>
<p><span class="cli">addattr</span> aggiunge un attributo a un file e/o lo riempie con un valore.</p>
<pre>usage: addattr [-t type] attr value file1 [file2...]
or: addattr [-f value-from-file] [-t type] attr file1 [file2...]
@@ -129,7 +133,7 @@ Clara Botters : string : Whelton</pre>
string, mime, int, llong, float, double, bool, icon, raw
or a numeric value (ie. 0x1234, 42, 'ABCD', ...)
The default is "string"</pre>
<p>So, say dear Clara took a job with the multi-national Barkelbaer Inc., you fill the formerly empty "Company" attribute with that data (which is of type "string"):</p>
<p>Quindi, ipotizzando che Clara abbia ottenuto un lavoro dalla multinazionale Barkelbaer Inc., riempirai in questo modo l'attributo teoricamente vuoto "Company" con quelle informazioni (che sono di tipo "string"):</p>
<pre class="terminal"> ~/people -&gt;addattr -t string META:company Barkelbaer\ Inc. Clara\ Botters</pre>
<h3>
@@ -161,7 +165,7 @@ Clara Botters : string : Whelton</pre>
<div class="inner"><span>
« <a href="filetypes.html">Filetypes</a>
:: <a href="contents.html" class="uplink">Contenuti</a>
:: <a href="index.html">Index</a> »
:: <a href="index.html">Indice del file system</a> »
</span></div>
</div>