Personalizzare la barra degli strumenti

From FreeCAD Documentation
Revision as of 10:29, 26 November 2016 by Renatorivo (talk | contribs)
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

Synopsis

This tutorial walks you through how to create a Toolbar button and one or more buttons that connect you to your favourite macros or to other associated links whether there is a custom icon or not.

Uso

1 : Selezionare Template:Menu → Strumenti → 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 : selezionare la tabella Macro

3 : per selezionare un'icona della barra degli strumenti per la macro cliccare sul pulsante Pixmap ...

Select a toolbar
Select a toolbar

4 : cercare l'icona appropriata tra quelle già presenti in FreeCAD,

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

Add icon
Add icon

5b : 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

6 : selezionare l'icona desiderata poi cliccare sul pulsante OK

Select your icon
Select your icon

7 : l'icona selezionata ora è visualizzata accanto al pulsante Pixmap ...

Your icon is displayed
Your icon is displayed

8 : Scegliere la macro e specificare un Testo di menu (il testo che appare come etichetta nel menu); compilare anche il campo Suggerimento (il testo che appare quando il mouse si trova sopra al pulsante sulla barra degli strumenti); per il pulsante si possono anche compilare altri campi opzionali

9 : Cliccare su Aggiungi

Click the button
Click the button

10 : ora il pulsante è creato

Your button is created
Your button is created

11 : create a toolbar for the button

12 : go to the Toolbars tab and choose your workbench in the drop down on the right (Part in this example)

Since version 0.15 there is a Global toolbar. If your toolbar is docked in this bar, it will always remain visible

Toolbars tab
Toolbars tab

13 : in the dropdown on the left select Macros

Macros
Macros

14 : your macro and its icon appears in the list

Your icon is listed
Your icon is listed

15 : Click the button New... (you can choose your toolbar here and it will be attached to the Part Workbench)

Click on "New"
Click on "New"

16 : in the window "New Toolbar" enter the name for your toolbar and click OK

Enter the name for your toolbar
Enter the name for your toolbar

17 : your toolbar has now been created - make sure you check its checkbox so that it will actually appear

18 : selezionare la macro con la sua icona nella finestra di sinistra e quindi fare clic sul Pulsante freccia destra

Select your macro
Select your macro

19 : È stata creata una barra degli strumenti chiamata "Camera"

20 : cliccare sul pulsante Chiudi

Close
Close

21 : your new toolbar with its button is now displayed above the active window as well as in the toolbars' right-click menu

New Toolbar
New Toolbar

22 : buon lavoro!