Dostosowanie pasków narzędzi

From FreeCAD Documentation
Revision as of 14:25, 10 November 2020 by Kaktus (talk | contribs) (Created page with "      [lub dodaj swoją własną ikonkę klikając w przycisk {{KEY|Folder ikonek ...}}].                  (expand...")
Ćwiczenie
Temat
Przykład
Poziom trudności
początkujący
Czas wykonania
5 minut
Autorzy
Mario52
Wersja FreeCAD
Wszystkie
Pliki z przykładami
Nie dołączono
Zobacz również
-

Streszczenie

Ten poradnik pokazuje, jak dostosować paski narzędzi do własnych potrzeb. Narzędzia (włącznie z Makro-narzędziami) mogą być używane w różnych Środowiskach pracy. Na przykład Makropolecenie staje się Makro-Narzędziem poprzez utworzenie Tekstu menu, Porady dla narzędzia i Ikonki. Następnie to Makro-narzędzie staje się częścią dodatkowego paska narzędzi w środowisku pracy.

Użycie

1. Znajdź menu Dostosuj

  • Kliknij w Menu główne → Narzędzia → Dostosuj,
Dostosuj
Dostosuj
  • lub kliknij prawym przyciskiem myszki na dowolnym pasku narzędzi.
Szybkie kliknięcie prawym przyciskiem myszki.
Szybkie kliknięcie prawym przyciskiem myszki.
  • Pojawia się okienko modyfikacji.
Pojawi się okno Dostosuj
Pojawi się okno Dostosuj

2. Zrób z makra narzędzie

  • Wybierz zakładkę "Makrodefinicje".
  • Aby dodać ikonę dla dostarczonej makrodefinicji kliknij przycisk Obrazek (oznaczony ... ).
Wybór paska narzędzi
Wybór paska narzędzi
  • Wybierz odpowiadająca Ci ikonę, spośród dostępnych ikon programu FreeCAD,

      [lub dodaj swoją własną ikonkę klikając w przycisk Folder ikonek ...].                  (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

Notes

See also Interface Customization.