Customize Toolbars/es: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
Line 2: Line 2:


==Synopsis==
==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 a custom icon or not.
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.


==Use==
==Use==


'''1''' : Click '''Menu → Tools → Customize'''
'''1''' : Click {{MenuCommand|Menu → Tools → Customize}}




Line 12: Line 12:
{{clear}}
{{clear}}


or right click on any toolbar
or put you on a Toolbar and click the right mouse button


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


the window Customize appears
the Customize window appears


[[File:CustomizeToolBar 03.png|640px|center|The window Customize appears]]
[[File:CustomizeToolBar 03.png|640px|center|The Customize window appears]]
{{clear}}
{{clear}}


'''2''' : select the tab Macro
'''2''' : select the "Macro" tab


'''3''' : to select an toolbar icon for your macro click the Pixmap button (labelled {{KEY|... }})
'''3''' : to add a toolbar icon for your macro click the Pixmap button (labelled {{KEY|... }})


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


'''4''' : search for an icon amongst the icons already in FreeCAD,
'''4''' : search for an appropriate icon from amongst FreeCAD's existing icons,


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


'''5''' : if your icon is not here then click the {{KEY|Add icons...}} button for adding one or more icons in your library (collapse to see)
'''5''' : or add your own icon by clicking {{KEY|Add icons...}} (expand for an example)


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


'''5b''' : you will get a file selection window, select your image file which must be in the PNG format and must be 64x64 pixels
'''5b''' : you will get a file selection window, select your custom image file (PNG format, 64x64 pixels)


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


'''6''' : select your icon and click the {{KEY|OK}} button
'''6''' : select your icon and click {{KEY|OK}}


[[File:CustomizeToolBar 07.png|640px|center|Select your icon]]
[[File:CustomizeToolBar 07.png|640px|center|Select your icon]]
Line 65: Line 65:
{{clear}}
{{clear}}


'''10''' : your button is created
'''10''' : your button has now been created


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


'''11''' : create a Toolbar for the button
'''11''' : create a toolbar for the button


'''12''' : click the tab '''Toolbars''' and your workbench (here '''Part''')
'''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 {{KEY|[[File:Freecad.svg|16px]] Global }} toolbar. If your toolbar is attached to this bar, it will always remain visible
Since version 0.15 there is a {{KEY|[[File:Freecad.svg|16px]] Global }} toolbar. If your toolbar is docked in this bar, it will always remain visible


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


'''13''' : in left window select the Tab '''Macros''' and "Macros"
'''13''' : in the dropdown on the left select '''Macros'''


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


'''14''' : now your macro and it's icon appears
'''14''' : your macro and its icon appears in the list


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


'''15''' : Click the button {{KEY|New...}} (you can choose your ToolBar here the ToolBar is attached to the Part Workbench)
'''15''' : Click the button {{KEY|New...}} (you can choose your toolbar here and it will be attached to the Part Workbench)


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


'''16''' : in the window "New Toolbar" enter the name for your ToolBar and click {{KEY|OK}}
'''16''' : in the window "New Toolbar" enter the name for your toolbar and click {{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}}


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


'''18''' : select your macro with it's icon in the left window and then click the {{KEY|Button}} with the right pointing arrow
'''18''' : To add your customized macro to the new toolbar, select it in the left window and then click the {{KEY|Button}} with the arrow pointing right


[[File:CustomizeToolBar 16.png|640px|center|Select your macro]]
[[File:CustomizeToolBar 16.png|640px|center|Select your macro]]
Line 113: Line 113:
{{clear}}
{{clear}}


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


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

Revision as of 10:15, 26 November 2016

Tutorial
Tema
SampleTopic
Nivel
Beginner
Tiempo para completar
5 minutes
Autores
Mario52
Versión de FreeCAD
All
Archivos de ejemplos
None
Ver también
None

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.

Use

1 : Click 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 : select the "Macro" tab

3 : to add a toolbar icon for your macro click the Pixmap button (labelled ... )

Select a toolbar
Select a toolbar

4 : search for an appropriate icon from amongst FreeCAD's existing icons,

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

Add icon
Add icon

5b : you will get a file selection window, select your custom image file (PNG format, 64x64 pixels)

Get a file
Get a file

6 : select your icon and click OK

Select your icon
Select your icon

7 : the icon you selected is now displayed next to the Pixmap button labelled ...

Your icon is displayed
Your icon is displayed

8 : Choose your 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); there are other optional fields for your Button

9 : Click the button Add

Click the button
Click the button

10 : your button has now been created

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 : To add your customized macro to the new toolbar, select it in the left window and then click the Button with the arrow pointing right

Select your macro
Select your macro

19 : you have now created a toolbar called "Camera"

20 : click the Close button

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 : enjoy !