Outils pour utilisateurs

Outils du site


issue138:freeplane

When building a map, I often find it useful to tag or mark a node. This is especially helpful when my map is about a project or a group of projects. Freeplane's attributes feature does the trick as it lets you create a property/value pair. Freeplane keeps track of these attributes and the values you assign to them. You can even lock the list of possible values for certain attributes. In this article, I will explore the use of attributes.

Lors de la construction d'une carte, je trouve souvent utile de baliser ou de marquer un nœud. Ceci est particulièrement utile lorsque ma carte concerne un projet ou un groupe de projets. La fonction des attributs de Freeplane fait l'affaire, car elle vous permet de créer une paire propriété/valeur. Freeplane garde la trace de ces attributs et des valeurs que vous leur attribuez. Vous pouvez même verrouiller la liste des valeurs possibles pour certains attributs. Dans cet article, j'explorerai l'utilisation des attributs.

Adding and Editing Attributes There are several methods for adding and editing attributes. The most useful being Edit > Node extensions > Edit attribute in-line. You can also find Edit attribute in-line in the right-click menu. Lastly, you can use the shortcut keys ALT + F9. If the selected node doesn't have any attributes, Freeplane adds a blank pair. The left blank is for the attribute, and the right blank is for the value. You can type in a new attribute name or use the dropdown arrow to select an existing one. You can type in a value in the right blank or press the ENTER key to get a dropdown list. The list includes values already assigned to the attribute. If there are attributes assigned to the selected node, you can use the arrow keys to move around in the table. You can change the attribute by using the dropdown list or by typing a new attribute name. When editing the value, you press the ENTER key to get a dropdown list of assigned values, or type in a new value. If you right-click in the table, you get a context menu. ‘Optimal width’ scales the width of the table columns to fit the longest text in the column. ‘New attribute’ creates a row for you to add an attribute to the node. ‘Delete’ removes the selected attribute from the node. Up and Down moves you up and down the rows of attributes. (You can do the same things with the up and down arrow keys.) If you right-click on a value in the table, you get a context menu that includes the ability to add hyperlinks. You can add a link by choosing the file or typing in the URL/path. You can add a link to a node, too. You can use the mailto method as outlined in Part 8. Press the ESC (Escape) key to exit the edit mode or select a different node.

Ajout et modification d'attributs

Il existe plusieurs méthodes pour ajouter et modifier des attributs. La plus utile est Édition > Nœud avancé > Modifier les attributs. Vous pouvez également trouver Modifier les attributs dans le menu contextuel par un clic droit. Enfin, vous pouvez utiliser les touches de raccourci ALT + F9. Si le nœud sélectionné n'a pas d'attributs, Freeplane ajoute une paire vide. Le champ de gauche correspond à l'attribut et le champ de droite à la valeur. Vous pouvez saisir un nouveau nom d'attribut ou utiliser la flèche déroulante pour sélectionner un attribut existant. Vous pouvez taper une valeur dans le champ de droite ou appuyer sur la touche ENTRÉE pour obtenir une liste déroulante. La liste comprend les valeurs déjà affectées à l'attribut.

Si des attributs sont affectés au nœud sélectionné, vous pouvez utiliser les touches fléchées pour vous déplacer dans le tableau. Vous pouvez modifier l'attribut en utilisant la liste déroulante ou en tapant un nouveau nom d'attribut. Lorsque vous modifiez la valeur, appuyez sur la touche ENTER pour obtenir une liste déroulante des valeurs affectées ou saisissez une nouvelle valeur.

Si vous cliquez avec le bouton droit de la souris dans le tableau, vous obtenez un menu contextuel. L'option « Ajuster la largeur » permet d'ajuster la largeur des colonnes du tableau pour qu'elle corresponde au texte le plus long de la colonne. « Nouvel attribut » crée une ligne pour que vous puissiez ajouter un attribut au nœud. « Supprimer » supprime l'attribut sélectionné du nœud. Haut et Bas vous déplacent vers le haut et vers le bas dans les lignes d'attributs. (Vous pouvez faire la même chose avec les touches fléchées haut et bas.) Si vous cliquez avec le bouton droit de la souris sur une valeur du tableau, vous obtenez un menu contextuel qui permet d'ajouter des hyperliens. Vous pouvez ajouter un lien en choisissant un fichier ou en tapant l'URL/chemin. Vous pouvez également ajouter un lien vers un nœud. Vous pouvez utiliser la méthode mailto décrite dans la partie 8.

Appuyez sur la touche Échappe pour quitter le mode édition ou sélectionner un autre nœud.

When you add an attribute to a node, the menus View > Node attributes determine whether it shows. ‘Show selected attributes’ will display only the attributes tagged as selected. Later, I will show you how to set the select tag. To display all attributes below the node, select ‘Show all attributes’. ‘Hide all attributes’ will show no attributes. Use the Show icon for attributes to display the attributes icon on the node core. If you hover over a node with attributes, all the attributes will show in a pop-up. Another way to add attributes is through a dialog. Use the menus Edit > Node extensions > Add attribute in dialog. The dialog has two dropdown lists and two buttons. From the Attribute Name dropdown list, you can select an existing attribute, or you can type in a new name. The Attribute Value dropdown list lets you select an existing value, or you can type in a new one. Click the OK button to assign the attribute to the selected node, or the Cancel button to discard. To copy the attributes on a selected node, use the menus Edit > Node extensions > Copy attributes. Select the node you want to copy the attributes to. To paste the attributes use the menus Edit > Node extensions > Pastes attributes. It is not possible to copy selected attributes. You are copying all the attributes of the node.

Lorsque vous ajoutez un attribut à un nœud, les menus Affichage > Attributs déterminent leurs affichages. « Afficher les attributs sélectionnés » n'affichera que les attributs marqués comme sélectionnés. Plus tard, je vous montrerai comment régler la balise select. Pour afficher tous les attributs sous chaque nœud, sélectionnez « Afficher tous les attributs ». « Masquer tous les attributs » n'affichera aucun attribut. Utilisez « Afficher tous les attributs » pour afficher l'icône des attributs sur le noyau du nœud. Si vous survolez un nœud avec des attributs, tous les attributs s'afficheront dans une fenêtre pop-up.

Une autre façon d'ajouter des attributs est d'utiliser une boîte de dialogue. Utilisez les menus Édition > Nœud avancé > Modifier les attributs dans une nouvelle fenêtre… La boîte de dialogue comporte deux listes déroulantes et deux boutons. Dans la liste déroulante Nom, vous pouvez sélectionner un attribut existant ou saisir un nouveau nom. La liste déroulante Valeur vous permet de sélectionner une valeur existante ou d'en saisir une nouvelle. Cliquez sur le bouton OK pour affecter l'attribut au nœud sélectionné ou sur le bouton Annuler pour annuler.

Pour copier les attributs sur un nœud sélectionné, utilisez Édition > Nœud avancé > Copier les attributs. Sélectionnez le nœud dans lequel vous voulez copier les attributs. Pour coller les attributs, utilisez Édition > Nœud avancé > Coller les attributs. Il n'est pas possible de copier les attributs sélectionnés. Vous copiez tous les attributs du nœud.

Attribute Manager The Attribute Manager lets you add, remove, and edit the attributes and values for the map. The manager dialog is a one-stop/do it all for managing the attributes in a map. You can specify which attributes are selected and which are not. To open the Attribute Manager, use the menus Edit > Node extensions > Attribute manager. There are four columns across the top of the dialog: Attributes, Selected Visible, Restricted Set, and Edit. The Attribute column lists the active attributes in the map. You can check the Selected Visible column to change how the attribute shows in the node. If checked, the attribute will display below the node. If unchecked, the attribute shows only when you hover over the node. This is dependant on the attribute’s view settings. Restricted Set locks the values for that attribute to those already in the map. Use the Edit button to change the list of values. The Edit dialog has a list of the current values, a text box, and buttons to add, rename, and delete. To add a value, type the new value in the text box and click the Add button. To rename a value select the value to change, make the change, and click the Rename button. You delete a value by selecting the value and clicking the Delete button. Click the Close button to return to the Attribute Manager dialog. Four buttons line the bottom of the Attribute Manager dialog. The OK button saves your changes and closes the dialog. Click the Apply button to save your settings without closing the dialog. The Cancel button closes the dialog and discards any changes. The Import Map button opens a dialog that allows you to import attributes and values from any open maps. Select the attributes and values you want to import and click the OK button. Click the Cancel button to close the dialog without importing any attributes. The first entry in the manager is All Attributes. This entry is used to make changes related to all attribute names. The other rows allow you to edit values of specific attributes. Checking the Selected Visible makes all attributes visible under the node. Unchecking makes all the attributes show only when the mouse hovers over a node. The Restricted Set locks the addition of any attributes except in the manager. The Edit lets you add and remove attributes from the current map. It works the same as the values dialog, but you are adding and removing attributes instead of values.

Gestionnaire d'attributs

Le Gestionnaire d'attributs vous permet d'ajouter, de supprimer et de modifier les attributs et les valeurs de la carte. La boîte de dialogue du gestionnaire est un guichet unique pour la gestion des attributs d'une carte. Vous pouvez spécifier les attributs qui sont sélectionnés et ceux qui ne le sont pas. Pour ouvrir le Gestionnaire d'attributs, utilisez Édition > Nœud avancé > Gestionnaire d'attributs…

Il y a quatre colonnes en haut de la boîte de dialogue : Attributs, Sélectionner ce qui est visible, Sélection réduite et Modifier. La colonne Attributs liste les attributs actifs de la carte. Vous pouvez cocher la colonne Sélectionner ce qui est visible pour modifier l'affichage de l'attribut dans le nœud. Si cette case est cochée, l'attribut s'affichera sous le nœud. Si cette case n'est pas cochée, l'attribut n'apparaît que lorsque vous passez au-dessus du nœud. Cela dépend des paramètres de vue de l'attribut. Sélection réduite verrouille les valeurs de cet attribut sur celles qui se trouvent déjà dans la carte. Utilisez le bouton Modifier pour modifier la liste des valeurs.

La boîte de dialogue Modifier contient une liste des valeurs actuelles, une zone de texte et des boutons Ajouter, Renommer et Supprimer. Pour ajouter une valeur, tapez la nouvelle valeur dans la zone de texte et cliquez sur le bouton Ajouter. Pour renommer une valeur, sélectionnez la valeur à modifier, effectuez la modification et cliquez sur le bouton Renommer. Vous supprimez une valeur en la sélectionnant et en cliquant sur le bouton Supprimer. Cliquez sur le bouton Fermer pour revenir à la boîte de dialogue Gestionnaire des attributs.

Quatre boutons se trouvent en bas de la boîte de dialogue du Gestionnaire d'attributs. Le bouton OK enregistre vos modifications et ferme la boîte de dialogue. Cliquez sur le bouton Appliquer pour enregistrer vos paramètres sans fermer la boîte de dialogue. Le bouton Annuler ferme la boîte de dialogue et annule toute modification. Le bouton Importer carte ouvre une boîte de dialogue qui vous permet d'importer des attributs et des valeurs depuis n'importe quelle carte ouverte. Sélectionnez les attributs et les valeurs que vous voulez importer et cliquez sur le bouton OK. Cliquez sur le bouton Annuler pour fermer la boîte de dialogue sans importer d'attribut.

La première entrée dans le gestionnaire est Tous les attributs. Cette entrée permet d'effectuer des modifications relatives à tous les noms d'attributs. Les autres lignes vous permettent de traiter les valeurs d'attributs spécifiques. Si vous cochez la case Sélectionner ce qui est visible, tous les attributs sont visibles sous le nœud. Décocher cette option permet d'afficher tous les attributs uniquement lorsque la souris passe au-dessus d'un nœud. Sélection réduite verrouille l'ajout d'un attribut quel qu'il soit sauf dans le gestionnaire. La fonction Modifier vous permet d'ajouter et de supprimer des attributs de la carte actuelle. Il fonctionne de la même manière que le dialogue des valeurs, mais vous ajoutez et supprimez des attributs au lieu de valeurs.

Find And Replace Attribute In the menus, Edit > Node extensions > Find and replace attribute brings up the Extended attribute editor. The two radio buttons at the top determine the nodes affected by your search and replace queries. You can pick from Selected nodes and All visible nodes. The checkbox Skip root node determines whether to include the root node in the search. Two sets of combo boxes allow you to select or enter attribute/value pairs. The Add button applies the top attribute pair to the indicated nodes. To remove a certain attribute from the node, select it in the top pair and click Remove all values button. The Remove this value button will remove only the attribute/value from the top pair. The Replace with button will replace the top pair with the bottom pair. The Close button closes the dialog.

Rechercher et remplacer un attribut

Dans les menus, Édition > Nœud avancé > Modifier les attributs… fait apparaître l'éditeur d'attributs étendu. Les deux cases d'option en haut déterminent les nœuds affectés par votre recherche et remplacent les requêtes. Vous pouvez choisir parmi Nœuds sélectionnés et Tous les nœuds visibles. La case à cocher Ignorer le nœud racine détermine si le nœud racine doit être inclus dans la recherche. Deux ensembles de listes déroulantes vous permettent de sélectionner ou d'entrer des paires d'attributs/de valeurs. Le bouton Ajouter applique la paire d'attributs supérieure aux nœuds indiqués. Pour supprimer un attribut donné du nœud, sélectionnez-le dans la paire supérieure et cliquez sur le bouton Supprimer toutes les valeurs. Le bouton Supprimer cette valeur supprimera uniquement l'attribut/la valeur de la paire supérieure. Le bouton Remplacer par remplacera la paire supérieure par la paire inférieure. Le bouton Fermer ferme la boîte de dialogue.

Attribute From Style In the style editor, you can add attributes to a style. When you assign a node to the style, the attributes aren't added to the node. You apply the style attributes through the menus Edit > Node extensions > Attribute from style. This assumes the node is assigned to a style and the style has attributes. In the style editor, you find the attribute options in the Edit > Node extensions menu.

Attribut à partir du style

Dans l'éditeur de style, vous pouvez ajouter des attributs à un style. Lorsque vous affectez un nœud au style, les attributs ne sont pas ajoutés au nœud. Vous appliquez les attributs de style via Édition > Nœud avancé > Ajouter des attributs par style. Ceci suppose que le nœud est affecté à un style et que le style possède des attributs. Dans l'éditeur de style, vous trouverez les options d'attribut dans le menu Édition > Extensions des nœuds.

Remove Attributes In the menus, Edit > Node extensions > Remove attributes, you have options to Remove first, Remove last, and Remove all attributes.

Supprimer des attributs

Dans les menus Édition > Nœud avancé > Supprimer les attributs, vous avez des options pour Supprimer le premier attribut, Supprimer le dernier attribut, et Supprimer tous les attributs.

Tool Panel In the Tool Panel on the Calendar and Attributes tab, you find one more place to add attributes to nodes. But in the panel, you get a feature not found elsewhere, the ability to format the values of the attributes. The attribute section is at the bottom of the tab. The New attribute button adds an attribute to the selected node. The Optimal width works in the same way as it does in other places. The Value format will open a list of formats. You will recognize many of these from the article on core text formatting (Part 8). Select a format to apply to the attribute value. The format is applied only to the currently selected value. The right-click menus are the same as those when editing the attributes in-line.

Panneau d'outils

Dans le Panneau d'outils avec l'onglet Calendrier et attributs, vous trouverez un autre endroit pour ajouter des attributs aux nœuds. Mais dans le panneau, vous obtenez une fonctionnalité que l'on ne trouve nulle part ailleurs, la possibilité de formater les valeurs des attributs.

La section Attributs se trouve en bas de l'onglet. Le bouton Nouvel attribut ajoute un attribut au nœud sélectionné. La largeur optimale fonctionne de la même manière qu'ailleurs. Le format Valeur ouvre une liste de formats. Vous en reconnaîtrez plusieurs dans l'article sur la mise en forme du texte de base (Partie 8). Sélectionnez un format à appliquer à la valeur de l'attribut. Le format est appliqué uniquement à la valeur actuellement sélectionnée.

Les menus du clic droit sont les mêmes que ceux de l'édition des attributs en ligne.

Filtering and searching nodes by attributes In the filter toolbar or the filter composer, the attribute names display in the left-hand dropdown list. The right-hand dropdown list is available for selecting defined values. Select the comparison operator from the middle dropdown list. All comparison operations consider the data type of the values (text, date, time, number). The status bar shows the type of the selected value. Attributes are a great way to tag and identify nodes for a certain purpose. You can add attributes in-line or through the Attribute manager. In the Tool Panel, you have an option to format the values on the Calendar and Attributes tab.

Filtrage et recherche des nœuds par attributs

Dans la barre d'outils du filtre ou dans le compositeur de filtre, les noms des attributs s'affichent dans la liste déroulante de gauche (Ndt : outil Recherche des nœuds…). La liste déroulante de droite permet de sélectionner des valeurs définies. Sélectionnez l'opérateur de comparaison dans la liste déroulante du milieu. Toutes les opérations de comparaison prennent en compte le type de données des valeurs (texte, date, heure, nombre). La barre d'état indique le type de la valeur sélectionnée.

Les attributs sont un excellent moyen de baliser et d'identifier les nœuds dans un but précis. Vous pouvez ajouter des attributs en ligne ou via le Gestionnaire d'attributs. Dans le Panneau d'outils, vous avez la possibilité de formater les valeurs dans l'onglet Calendrier et attributs.

issue138/freeplane.txt · Dernière modification : 2018/11/12 07:39 de christo.2so