Customize Toolbars/it: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
Line 50: Line 50:
</div>
</div>


* Select your icon and click {{KEY|OK}}.
*Selezionare l'icona desiderata poi cliccare sul pulsante {{KEY|OK}}


[[File:CustomizeToolBar 07.png|640px|center|Select your icon]]
[[File:CustomizeToolBar 07.png|640px|center|Select your icon]]

Revision as of 21:21, 8 June 2017

Tutorial
Argomento
Configurazione
Livello di difficoltà
Principiante
Tempo di esecuzione
5 minuti
Autori
Mario52
Versione di FreeCAD
Tutte
Files di esempio
Nessuno
Vedere anche
Nessuno

Introduzione

Questo tutorial spiega come creare un pulsante nella barra degli strumenti per avviare velocemente una macro o per associare altri collegamenti a una icona personalizzata. Gli strumenti (inclusi gli strumenti Macro) possono essere usati in diversi ambienti di lavoro. In un esempio, una Macro diventa uno Strumento-macro creando un 'Testo', un 'Suggerimento' (Tool tip) e una 'Icona'. Successivamente questo Strumento-macro diventa parte di una barra degli strumenti extra in un ambiente di lavoro.

Uso

1. Trovare il menu Personalizza

Customize
Customize
  • o fare clic con il pulsante destro del mouse su qualsiasi barra degli strumenti
Right mouse click
Right mouse click
  • Appare la finestra Personalizza
The Customize window appears
The Customize window appears

2. Make a Macro to a Macro-Tool

Selezionare la tabella Macro

  • Per selezionare un'icona della barra degli strumenti per la macro cliccare sul pulsante Pixmap ... .
Select a toolbar
Select a toolbar
  • Cercare l'icona appropriata tra quelle già presenti in FreeCAD,

      [o aggiungere una propria icona cliccando sul pulsante Aggiungi icone...].                   (Espandere per un esempio)

Add icon
Add icon

     [Si apre una finestra di selezione dei file, selezionare un file immagine che deve essere di 64x64 pixel in formato PNG]

Get a file
Get a file
  • Selezionare l'icona desiderata poi cliccare sul pulsante OK
Select your icon
Select your icon
  • The icon you selected is now displayed next to the Pixmap button labelled ....
Your icon is displayed
Your icon is displayed
  • Select the provided macro in line Macro:' and specify a Menu text: (which will appear as the text label in the menu); also fill in the Tool Tip': (which is the text that will appear when a mouse is over the button on the toolbar); further lines are optional.
  • Click the button Add.
Click the button
Click the button
  • The button of the macro-tool is now created.
Your button is created
Your button is created

3. Create a toolbar outside the workbench Macro which contains the created Macro-tool

  • Select the Toolbars tab and choose the workbench (for which the toolbar is provided) in the drop down on the right (Part in this example).

     [Since version 0.15 there is a   Global  toolbar. If this is selected, the provided toolbar will be in each workbench.]

Toolbars tab
Toolbars tab
  • In the dropdown on the left select Macros.
Macros
Macros
  • The macro-tool with its icon appears in the list.
Your icon is listed
Your icon is listed
  • Click the button New...
Click on "New"
Click on "New"
  • In the window "New Toolbar" enter the name of the provided extra toolbar for the Part Workbench and click OK
Enter the name for your toolbar
Enter the name for your toolbar
  • The toolbar is now created.
  • To add the creadet macro-tool to this toolbar, select it in the left window and then click the Button with the arrow pointing right.
Select your macro
Select your macro
  • You have created now a toolbar called "Camera" (with the Macro-tool Camera in it)
  • Click the Close button.
Close
Close
  • Your new toolbar is now contained in the toolbars' right-click menu. Its Icons (in our example only the camera) are visible, if the toolbar is activated (blue checkmark).
New Toolbar
New Toolbar