Customize Toolbars/it: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
No edit summary
Line 4: Line 4:
This tutorial shows you the customization of toolbars. Tools (inclusive Macro-tools) can used in different workbenches. In an example a Macro becomes a Macro-tool by creation of a '''Menu text''', a '''Tool tip''' and an '''Icon'''. Afterwards this Macro-tool becomes part of an extra toolbar in a workbench.
This tutorial shows you the customization of toolbars. Tools (inclusive Macro-tools) can used in different workbenches. In an example a Macro becomes a Macro-tool by creation of a '''Menu text''', a '''Tool tip''' and an '''Icon'''. Afterwards this Macro-tool becomes part of an extra toolbar in a workbench.


==Uso==
==Use==
<u>'''1.''' Find the Customize Menu</u>


'''1''' : Selezionare {{MenuCommand|Menu → StrumentiPersonalizza}}
*Click {{MenuCommand|Main Menu → ToolsCustomize}},


[[File:CustomizeToolBar 01.png|640px|center|Customize]]
[[File:CustomizeToolBar 01.png|640px|center|Customize]]
{{clear}}
{{clear}}


*or right click on any toolbar.
o fare clic con il pulsante destro del mouse su qualsiasi barra degli strumenti


[[File:CustomizeToolBar 02.png|640px|center|Right mouse click]]
[[File:CustomizeToolBar 02.png|640px|center|Right mouse click]]
{{clear}}
{{clear}}


*The Customize window appears.
appare la finestra Personalizza


[[File:CustomizeToolBar 03.png|640px|center|The Customize window appears]]
[[File:CustomizeToolBar 03.png|640px|center|The Customize window appears]]
Line 23: Line 24:
<u>'''2.''' Make a Macro to a Macro-Tool</u>
<u>'''2.''' Make a Macro to a Macro-Tool</u>


*Select the "Macro" tab.
'''2''' : selezionare la tabella ''Macro''


'''3''' : per selezionare un'icona della barra degli strumenti per la macro cliccare sul pulsante Pixmap {{KEY|... }}
*To add an icon for the provided macro click the Pixmap button (labelled {{KEY|... }}).


[[File:CustomizeToolBar 04.png|640px|center|Select a toolbar]]
[[File:CustomizeToolBar 04.png|640px|center|Select a toolbar]]
{{clear}}
{{clear}}


*Search for an appropriate icon from amongst FreeCAD's existing icons,
'''4''' : cercare l'icona appropriata tra quelle già presenti in FreeCAD,


<div class="mw-collapsible mw-collapsed toccolours">
<div class="mw-collapsible mw-collapsed toccolours">


&nbsp; &nbsp; &nbsp; [or add your own icon by clicking {{KEY|Add icons...}}]. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(expand for an example)
'''5''' : o aggiungere una propria icona cliccando sul pulsante {{KEY|Aggiungi icone...}} (Espandere per un esempio)


<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
Line 41: Line 42:
{{clear}}
{{clear}}


&nbsp; &nbsp; &nbsp;[You will get a file selection window, select your custom image file (PNG format, 64x64 pixels)]
'''5b''' : si apre una finestra di selezione dei file, selezionare un file immagine che deve essere di 64x64 pixel in formato PNG


[[File:CustomizeToolBar 06.png|640px|center|Get a file]]
[[File:CustomizeToolBar 06.png|640px|center|Get a file]]
Line 49: Line 50:
</div>
</div>


* Select your icon and click {{KEY|OK}}.
'''6''' : 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]]
Line 59: Line 60:
{{clear}}
{{clear}}


*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.
'''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 {{KEY|Aggiungi}}
* Click the button {{KEY|Add}}.


[[File:CustomizeToolBar 09.png|640px|center|Click the button]]
[[File:CustomizeToolBar 09.png|640px|center|Click the button]]
{{clear}}
{{clear}}


*The button of the macro-tool is now created.
'''10''' : ora il pulsante è creato


[[File:CustomizeToolBar 10.png|640px|center|Your button is created]]
[[File:CustomizeToolBar 10.png|640px|center|Your button is created]]
{{clear}}
{{clear}}


<u>'''3.''' Create a toolbar outside the workbench '''Macro''' which contains the created '''Macro-tool'''</u>
'''11''' : creare una barra degli strumenti per il pulsante


* 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).
'''12''' : cliccare sulla scheda '''Barre degli strumenti''' e scegliere l'ambiente di lavoro nel menu a discesa sulla destra ('''Parte''' in questo esempio)


Dalla versione 0.15 c'è una barra degli strumenti {{KEY|[[File:Freecad.svg|16px]] Globale }}. Se la barra degli strumenti è allegata a questa barra, essa rimane sempre visibile
&nbsp; &nbsp; &nbsp;[Since version 0.15 there is a &nbsp;{{KEY|[[File:Freecad.svg|16px]] Global}}&nbsp; toolbar. If this is selected, the provided toolbar will be in each workbench.]


[[File:CustomizeToolBar 11.png|640px|center|Toolbars tab]]
[[File:CustomizeToolBar 11.png|640px|center|Toolbars tab]]
{{clear}}
{{clear}}


'''13''' : nel menu a discesa sulla sinistra selezionare '''Macros'''
*In the dropdown on the left select '''Macros'''.


[[File:CustomizeToolBar 12.png|640px|center|Macros]]
[[File:CustomizeToolBar 12.png|640px|center|Macros]]
{{clear}}
{{clear}}


*The macro-tool with its icon appears in the list.
'''14''' : ora la macro e la sua icona appaiono nell'elenco


[[File:CustomizeToolBar 13.png|640px|center|Your icon is listed]]
[[File:CustomizeToolBar 13.png|640px|center|Your icon is listed]]
{{clear}}
{{clear}}


*Click the button {{KEY|New...}}
'''15''' : Cliccare su {{KEY|Nuovo...}} (si può scegliere la barra, qui è aggiunta all'ambiente Part)


[[File:CustomizeToolBar 14.png|640px|center|Click on "New"]]
[[File:CustomizeToolBar 14.png|640px|center|Click on "New"]]
{{clear}}
{{clear}}


*In the window "New Toolbar" enter the name of the provided extra toolbar for the '''Part''' Workbench and click {{KEY|OK}}
'''16''' : nella finestra "Nuova barra degli strumenti" inserire il nome che si vuole dare alla nuova barra e poi cliccare su {{KEY|OK}}


[[File:CustomizeToolBar 15.png|640px|center|Enter the name for your toolbar]]
[[File:CustomizeToolBar 15.png|640px|center|Enter the name for your toolbar]]
{{clear}}
{{clear}}


*The toolbar is now created.
'''17''' : ora la barra è stata creata - assicuratevi di attivare la casella di controllo in modo che essa sia visualizzata nella barra degli strumenti


*To add the creadet macro-tool to this toolbar, select it in the left window and then click the {{KEY|Button}} with the arrow pointing right.
*To add the creadet macro-tool to this toolbar, select it in the left window and then click the {{KEY|Button}} with the arrow pointing right.
Line 107: Line 108:
{{clear}}
{{clear}}


* You have created now a toolbar called "Camera" (with the Macro-tool '''Camera''' in it)
'''19''' : È stata creata una barra degli strumenti chiamata "Camera"


*Click the {{KEY|Close}} button.
'''20''' : cliccare sul pulsante {{KEY|Chiudi}}


[[File:CustomizeToolBar 17.png|640px|center|Close]]
[[File:CustomizeToolBar 17.png|640px|center|Close]]
{{clear}}
{{clear}}


*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).
'''21''' : ora la nuova barra degli strumenti con il suo pulsante viene visualizzata sia nella finestra attiva che tramite il menu del tasto destro sulla barra degli strumenti


[[File:CustomizeToolBar 18.png|640px|center|New Toolbar]]
[[File:CustomizeToolBar 18.png|640px|center|New Toolbar]]

Revision as of 22:27, 2 March 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

Synopsis

This tutorial shows you the customization of toolbars. Tools (inclusive Macro-tools) can used in different workbenches. In an example a Macro becomes a Macro-tool by creation of a Menu text, a Tool tip and an Icon. Afterwards this Macro-tool becomes part of an extra toolbar in a workbench.

Use

1. Find the Customize Menu

  • Click Main Menu → Tools → Customize,
Customize
Customize
  • or right click on any toolbar.
Right mouse click
Right mouse click
  • The Customize window appears.
The Customize window appears
The Customize window appears

2. Make a Macro to a Macro-Tool

  • Select the "Macro" tab.
  • To add an icon for the provided macro click the Pixmap button (labelled ... ).
Select a toolbar
Select a toolbar
  • Search for an appropriate icon from amongst FreeCAD's existing icons,

      [or add your own icon by clicking Add icons...].                  (expand for an example)

Add icon
Add icon

     [You will get a file selection window, select your custom image file (PNG format, 64x64 pixels)]

Get a file
Get a file
  • Select your icon and click 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